Jump to content

Leaderboard

Popular Content

Showing content with the highest reputation on 11/17/20 in all areas

  1. Here is what I would do: override the canInteractWith() method in your custom container, and return false if the player is no longer holding your storage item.
    1 point
  2. You could perhaps store the buttons you want to change in an extra list, and then just iterate through that list and update the buttons when you want to perform the update.
    1 point
  3. You cannot have a global variable as a counter, since that will mess things up if several players use your item at the same time. I would recommend adding a capability, either to the player or to your custom item, which could hold your timer. You can read more about capabilities here.
    1 point
  4. What's the condition of changing the texts? If it's your own screen I think Screen#tick might be what are you looking for.
    1 point
×
×
  • Create New...

Important Information

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