Jump to content

minecraftchest2

Members
  • Posts

    2
  • Joined

  • Last visited

Converted

  • Gender
    Male

minecraftchest2's Achievements

Tree Puncher

Tree Puncher (2/8)

0

Reputation

  1. Figured out my problem. I wasn't calling the class in the registration.
  2. 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.
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.