Naiten Posted April 27, 2013 Posted April 27, 2013 Hello. I definitely need one, can you help with that? Quote If i helped you, don't forget pressing "Thank You" button. Thanks for your time.
Raekye Posted April 28, 2013 Posted April 28, 2013 I don't like his website (too awkward to use, prefer static pages) but the 1.4 entity tutorials have been working for me on 1.5 http://wuppy29.blogspot.nl/2012/10/forge-modding-142.html Quote
Naiten Posted May 2, 2013 Author Posted May 2, 2013 Making an item with next code helped me. public boolean onItemUse(ItemStack item, EntityPlayer player, World world, int x, int y, int z, int side, float xOffset, float yOffset, float zOffSet) { if (!player.capabilities.isCreativeMode) { --item.stackSize; } world.playSoundAtEntity(player, "random.bow", 0.5F, 0.4F / (itemRand.nextFloat() * 0.4F + 0.8F)); if (!world.isRemote) { EntityLocoChe ent = new EntityLocoChe(world); ent.setLocationAndAngles(x, y + 1, z, 0F, 0.0F); ent.entityInit(); world.spawnEntityInWorld(ent); return true; } return false; } } Quote If i helped you, don't forget pressing "Thank You" button. Thanks for your time.
Recommended Posts
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.