Jump to content

Leaderboard

Popular Content

Showing content with the highest reputation on 02/17/23 in all areas

  1. I would look at the JukeboxBlock#dropRecording.
    1 point
  2. I'm not sure what that has to do with a different method not returning true. Sorry, thought the version you were using was 1.18. I would recommend using a breakpoint in your IDE to follow the call for the hopper to see where it goes wrong.
    1 point
  3. You should be using events, there is an event for "Player right clicked with an item" (PlayerUseEvent or InteractEvent or something along those lines), and an event to add text to existing item tooltips, although I can't remember what the events actually are off the top of my head. In your event handler, you need to check that the item is a stick, then perform your logic. It means that you don't have to replace the vanilla stick.
    1 point
×
×
  • Create New...

Important Information

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