Posted November 28, 201410 yr the name says it all, and some code ... @Override public ItemStack onItemRightClick(ItemStack itemStack, World world, EntityPlayer player) { System.out.println("test"); return itemStack; }
November 28, 201410 yr Hi You might find this link useful (just the first few paragraphs) http://greyminecraftcoder.blogspot.com.au/2013/10/client-server-communication-using.html -TGG
November 28, 201410 yr Author 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; }
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.