Posted October 27, 20168 yr this code appears to respond twice. I assume once is from the Client and once from the server? @Override public boolean onBlockActivated(World worldIn, BlockPos pos, IBlockState state, EntityPlayer playerIn, EnumHand hand, @Nullable ItemStack heldItem, EnumFacing side, float hitX, float hitY, float hitZ) { System.out.println("clicked"); return true; } Disclaimer: I been told to keep my opinions to myself, to shut up and that I am spreading lies and misinformation or even that my methods are unorthodox and or too irregular. Here are my suggestions take it or leave it.
October 27, 20168 yr Block#onBlockActivated can be called up to four times per click: once per hand on both the client and server. Return true when an action has been taken to prevent the next hand from being processed; return false if nothing was done and the next hand should be processed. Please don't PM me to ask for help. Asking your question in a public thread preserves it for people who are having the same problem in the future.
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.