Posted August 15, 201312 yr Hey there, I am not sure if I am looking for the right sort of tutorials to do this, so I thought best to ask the experts I have been looking for a hook tutorial to edit what Zombie Pigmen wield. Instead of holding Golden Swords I want to have them hold signs... but I can't seem to figure out how to do that Thanks for your help -Jordan Why bother?
August 15, 201312 yr Author Woah woah waoh... slow down I do what and what now So I do @Subscribe EntityJoinWorld in my @Init statement in the main class file? then: if entity = pigzombie setCurrentItemOnArmor Item.sign ? Why bother?
August 15, 201312 yr //In a class: @ForgeSubscribe public void pigZombieJoinWorld(EntityJoinWorldEvent event) { if(event.entity instanceof EntityPigZombie && !event.isCanceled()) ((EntityPigZombie) event.entity).setCurrentItemOrArmor(0, new ItemStack(Item.sign)); } Register the event with: MinecraftForge.EVENT_BUS.register(new FooClazz());
August 15, 201312 yr Look into how events work mate^^ Also I do know which tutorials you need;) http://courses.vswe.se/ Start there, they go to very advance stuff very quickly. If you guys dont get it.. then well ya.. try harder...
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.