Posted May 11, 20214 yr Hello there! I'm having some issues using the onBlockActivated method. I cannot find it. It doesnt exist in the super class "Block" nor "AbstractBlock". Im using Minecraft 1.16.5. Is there any Interface i should implement or something? I extended the class ContainerBlock. However, I didnt find this method or similar in any of the related classes. @Override public ActionResultType onBlockActivated(BlockState state, World worldIn, BlockPos pos, PlayerEntity player, Hand handIn, BlockRayTraceResult hit) { return ActionResultType.PASS; } Thank you! n.n
May 12, 20214 yr 9 hours ago, MIssNalgas said: I extended the class ContainerBlock. However, I didnt find this method or similar in any of the related classes. the method is now called "use"
May 13, 20214 yr Author 18 hours ago, Luis_ST said: the method is now called "use" Thanks! this is what i wanted to know n.n
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.