[SPIGOT-735] Cannot make Dogs/Ocelots sit or turn 'angry'. Created: 24/Mar/15  Updated: 15/Apr/15  Resolved: 15/Apr/15

Status: Closed
Project: Spigot
Component/s: None
Affects Version/s: None
Fix Version/s: None

Type: Bug
Reporter: Henry Daeche Assignee: Unassigned
Resolution: Won't Fix Votes: 0
Labels: bug, bukkit, spigot

Plugin: Citizens2

 Description   

I am using Citizens 2.0.15, their very latest Dev Build with Spigot 1.8.3.

I try and make a cat NPC sit and it does not work, I have been ensured by the Citizens Team that it is a Spigot/Bukkit issue, see here - https://github.com/CitizensDev/Citizens2/issues/286#issuecomment-84558079

Another bug, I cannot make Wolves angry using Citizens also, see here - https://github.com/CitizensDev/Citizens2/issues/291



 Comments   
Comment by Thinkofname [ 15/Apr/15 ]

Doesn't look broken to me. Feel free to correct me if i'm wrong

Comment by Henry Daeche [ 24/Mar/15 ]

Thanks.

Comment by Sycholic [ 24/Mar/15 ]

http://pastebin.com/NDH6Ve3G irc chat log of what was found out, if I see McMonkey awake on IRC I'll let eir know. might wanna open a ticket @ https://github.com/mcmonkey4eva/Sentry about it

Comment by Thomas Edwards [ 24/Mar/15 ]

Ah.
I've been messing around with the basic Spigot API

Here are some findings:
dave.setTarget(dave);
dave.setAngry(false);
Setting a target but setting them to not be Angry has them target the specified entity but do not look angry.

Not having setAngry or setting them to angry shows them to angry.

Is it possible Citizens isn't setting them to Angry properly or at all?

Just a suggestion. But using the Spigot API I'm able to spawn a wolf and set it to target and be angry just fine.

Comment by Henry Daeche [ 24/Mar/15 ]

Thing is though is that the NPC Wolf is constantly targeting players, so it has a target.

Comment by Thomas Edwards [ 24/Mar/15 ]

The reason this happens is stated in this bug report:
https://bugs.mojang.com/browse/MC-33558

As Jeb mentions:
"Summoning an angry wolf will immediately make it non-angry since it doesn't have a target."

TL;DR:
The wolf needs a target for it to be Angry. So when it spawns angry with no target, it'll instantly revert to being Passive.

Comment by Henry Daeche [ 24/Mar/15 ]

No, that works ok. I mean when using Citizens and they are NPCs not normal mobs. When you type the command to make them angry, you see them for a split second but then they revert back to passive wolves.

The Citizens command is /npc wolf -a.

Comment by Sycholic [ 24/Mar/15 ]

spawned a couple of wolves, smacked them with some arrows all would attack. make sure you are not in creative mode they wont turn hostile.

Comment by SpigotMC [ 24/Mar/15 ]

Your build is not the latest and therefore may be the reason you are having this issue. Spigot is 1 version(s) behind. CraftBukkit is 6 version(s) behind. This message was automatically generated and is not guaranteed to be a solution to your issue.

Generated at Sat Apr 05 06:16:34 UTC 2025 using Jira 10.3.3#10030003-sha1:d220e3fefc8dfc6d47f522d3b9a20c1455e12b7b.