Hello, I currently have 2 questions. Let me explain what I'm trying to do. I want to spawn in a snowman when a command is executed and then edit that snowman's snowball power (Like is there a SnowballThrowEvent/ProjectileThrowEvent or something) I want to get the player the snowball hits and do things to the player. Second this is I want to know how to make the snowman hostile, setTarget(PLAYER); doesn't seem to work. Here's my class so far: Code:java if(cmd.getName().equalsIgnoreCase("spawnsnowmantest")){Player p = (Player)sender;final Snowman IcicleSnowman = (Snowman)p.getWorld().spawn(p.getLocation(), Snowman.class);IcicleSnowman.setCustomName("Icicle"); IcicleSnowman.setTarget(p); //Doesn't seem to work.p.sendMessage("spawned a snowman.");//too lazy to write more advanced or better code since this is just a test.//now here is where I'm stuck. xTrollxDudex Maybe you could help c; Any help would be appreciated. Thanks!
Anyone please? Oh yeah thanks EDIT by Moderator: merged posts, please use the edit button instead of double posting.
Yazan Snow golems can't be made hostile... You will have to mess with a bit of NMS to get that to happen, and modify a few goals to make the snow golem actually throw the snowball at the player you made the snow golem hostile to.
Oh crap not NMS ;/ I'll try the best I can do then get back to you. chasechocolate can you please help me? I know you are very experienced a helpful. I wish I could find a good tutorial to learn packets and NMS, I really can't find any except for trolldude's tutorial :/ (I don't mean it's a bad tutorial but I can't really understand it) EDIT by Moderator: merged posts, please use the edit button instead of double posting.