if player right clicks an item again it will do something different

Started by ClOud1076 on

Topic category: Help with modding (Java Edition)

Last seen on 11:43, 29. Mar 2024
Joined Mar 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
if player right clicks an item again it will do something different

so what i want is, if the player right clicks an item it will do something like summon a projectile, then when the player right clicks again it will do something different. i dont want it by random chance. hope you guys understand xD

Last seen on 17:21, 27. Apr 2023
Joined Jul 2018
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
You have two possibilities…
Wed, 11/17/2021 - 11:23

You have two possibilities how to make it. First by randomization. The second is made by certain order or pattern. You can run a procedure by clicking the item and change the item NBT number tag at the same time. Then you can check for the NBT tag value and run another procedure.

Last seen on 11:43, 29. Mar 2024
Joined Mar 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Can you give me a procedure?…
Thu, 11/18/2021 - 08:55

Can you give me a procedure? I'm new when it comes to nbts and variables