Posted May 16May 16 I'm trying to make a block that sends me to a new dimension, but when I try right clicking it, nothing happens.I've put a few debug messages to send a message to the chat or to show up in the logs when right clicked. Right now I am using: ``` public ActionResultType onBlockActivated(BlockState state, World worldIn, BlockPos pos, PlayerEntity player, Hand handIn, BlockRayTraceResult hit) // Client-side: Only show a status message if (worldIn.isRemote()) { player.sendStatusMessage(new StringTextComponent("Client: Block activated!"), true); return ActionResultType.SUCCESS; } // Server-side logic below player.sendMessage(new StringTextComponent("blockActivated"), player.getUniqueID()); } I am getting a warning _"Overrides deprecated method in 'net.minecraft.block.AbstractBlock'"_ is deprecated, but I'm not sure what to use instead. Edited May 16May 16 by minecraftchest2 removed extra indentation
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.