-
[1.7.10] can someone suggest a good tutorial for nbt with itemstacks
Name says it all.
-
[1.7.10] how to change a item's texture in game.
thanks but I knew all that I just do not know how to change the texture.
-
[1.7.10] how to change a item's texture in game.
how do I return a different texture.
-
[1.7.10] how to change a item's texture in game.
I would like to change the texture of a item when the player right clicks. I can detect when a player clicks, but I can not change the texture.
-
[1.7.10] when i override "onItemRightClick()" my code runs more then once
I fixed my problem, old code... @Override public ItemStack onItemRightClick(ItemStack itemStack, World world, EntityPlayer player) { System.out.println("test"); return itemStack; } new code... @Override public ItemStack onItemRightClick(ItemStack itemStack, World world, EntityPlayer player) { if (!world.isRemote) { System.out.println("test"); // more code here } return itemStack; }
-
[1.7.10] I can not get "setBlock(x, y, z, block)" to work
I got it to work by add "!world.isremote" tests to where "onCast()" is called.
-
[1.7.10] I can not get "setBlock(x, y, z, block)" to work
I have tried it as if (!world.isRemote) and if (world.isRemote) and it still will not work.
-
[1.7.10] I can not get "setBlock(x, y, z, block)" to work
like this? @Override public boolean onCast(EntityPlayer player, int x, int y, int z) { y += 1; World world = player.worldObj; if (!world.isRemote) { if (world.getBlock(x, y, z) == Blocks.water) { world.setBlock(x, y, z, Blocks.ice); } return true; } return false; }
-
[1.7.10] I can not get "setBlock(x, y, z, block)" to work
it Is called in the "onItemUse()" method of a item. p.s. I am new to minecraft modding.
-
[1.7.10] when i override "onItemRightClick()" my code runs more then once
the name says it all, and some code ... @Override public ItemStack onItemRightClick(ItemStack itemStack, World world, EntityPlayer player) { System.out.println("test"); return itemStack; }
-
[1.7.10] I can not get "setBlock(x, y, z, block)" to work
when I use setBlock the block appears then disappears. this is my code ... public boolean onCast(EntityPlayer player, int x, int y, int z) { y += 1; World world = player.worldObj; if (world.getBlock(x, y, z) == Blocks.water) { world.setBlock(x, y, z, Blocks.ice); return true; } return false; } the x, y, z is the block the player right clicks.
IPS spam blocked by CleanTalk.