Remove Held Item With Other Similar Items

Started by Fexahex on

Topic category: Help with MCreator software

Last seen on 02:51, 8. Jul 2024
Joined Jul 2024
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Remove Held Item With Other Similar Items

I created an account just to ask this question because it’s genuinely driving me crazy. Please, can anyone tell me how to remove the item the player is currently holding when there are others of the same items in your inventory? Just remove that one specific item from that one specific slot that the player is holding. I’ve tried before but it just removes the first item in the hotbar, not the one I want. 

Last seen on 19:03, 13. Jul 2024
Joined May 2024
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Do a procedure like this: …
Sat, 07/06/2024 - 14:50

Do a procedure like this: (this represents the procedure blocks that you would use in words.)

if item in main hand of entity = _ item AND if _ item in inventory of target entity

then remove item from main hand of entity

 

I can help more later but am a little busy.

-PixelKid