Problem using a 'key' to use a block's functionality

Started by ImDiensteDesKGB on

Topic category: Help with Minecraft modding (Java Edition)

Active 2 years ago
Joined May 2023
Points:
222

User statistics:

  • Modifications: 0
  • Forum topics: 1
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 0
Problem using a 'key' to use a block's functionality

Hello, i am trying to make a block that 'mints' coins.
To mint coins you need to have a key in your inventory.
 Minting the coin takes 2 "celestium fragments"
Right now i am not trying to implement the fact that the fragments are consumed.
I just want to count the number of celestium fragments the player has and if they have more than two and the player has the key item, it will spawn a coin

Here is my procedure to execute when my 'minting table' is right clicked, when i right click it it sends the message "+1 nb frags" but not "spawn gem" and nothing is spawned
Could anybody tell me whats wrong and how can i fix it please