How to change provided item ?

Started by MISHRED on Thu, 03/26/2020 - 11:05

Topic category: Help with modding (Java Edition)

Last seen on 11:25, 2. Apr 2020
Joined Jun 2018
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
How to change provided item ?
Thu, 03/26/2020 - 11:05

Hey! Imma new at MCreator. i want to make a flip knife, which open then i rightclick, holding in mainhand closed flip knife.
my procedure is:
(global event: when rightclick on air)
remove 1 (flip_knife_closed) from provided players inventory
add 1 (flpp_knife_opened) to provided players inventory
BUT! 
When i rightclick on air, my flip knife removes from hand on a second, and again adds to my hand, and i cannot get my opened flip knife
Please help me ;)

Last seen on 14:16, 24. Jun 2021
Joined Jun 2017
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
Hmmm same problem here, I…
Sun, 05/03/2020 - 04:23

Hmmm same problem here, I think the problem is because when it changed to opened mod and right after that, changed to closed mod. It was to fast that you think it doesnt change. I still dont know if there any good solution :((

 

Last seen on 14:16, 24. Jun 2021
Joined Jun 2017
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
Klemen, you have any good…
Mon, 05/04/2020 - 16:10

Klemen, you have any good ways to do this ?