Having issues with a custom mod item

Started by ikiba on

Topic category: Help with MCreator software

Joined Sep 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Having issues with a custom mod item

Hello, I am new to the software and trying to make a couple custom items that have effects and sounds when being R clicked, everything i have been wanting to do is working

 

so the issue, I am making this mod for PIxelmon and just as a gimmick I am trying to make a Pokeflute item that will play a song when R clicked, simple enough i got that to work

just a simple item, Event trigger player R Clicks and it plays the Pokeflute sound i made. now onto the second item where things get weird when i test...  I wanted a consumable item that will give 2 minutes of nightvision upon a R click, also easy enough.. did everything i was supposed to and the item works... problem i have is when i click the Pokeflute item now it consumes the Nightvision item automatically, and any item in the game now triggers the nightvision effect as well as playing the Pokeflute theme... what am i doing wrong?

Joined Sep 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Playing around more it seems…
Wed, 09/29/2021 - 10:20

Playing around more it seems like every item made is inheriting eachothers Procedures somehow... 

Joined Aug 2018
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
The global procedure works…
Wed, 09/29/2021 - 10:27

The global procedure works for any item right clicked. Cause its global. Add an if statement that check what kind of item the Player is holding

Joined Aug 2018
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Or dont use the global…
Wed, 09/29/2021 - 10:28

Or dont use the global trigger, and put the events in the events of the item

 

Joined Sep 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
ty that worked  
Wed, 09/29/2021 - 10:45

ty that worked