Item effects wont work

Started by Leethelemur on

Topic category: Help with Minecraft modding (Java Edition)

Joined Nov 2022
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Item effects wont work

So currently in my mod, I am implementing a Trinket system. In this system, you can craft 9 different Trinkets and activate 1 at a time by holding it in your main hand. The first Trinket is a ruby that gives you Regeneration. I worked on the code for that and it worked well. I went to do the other do which is gold that gives you Luck and a skull that gives you Bad Omen. I did the exact same thing that I did for the ruby which works for the other two but they won't work for some reason. 

 

 

Gold code that does not work

 

 

 

 

 

Ruby code