How do i get a mob to steal the object in my hand?

Started by YizuzG on

Topic category: Help with MCreator software

Last seen on 17:56, 25. Jan 2020
Joined Jan 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
How do i get a mob to steal the object in my hand?

Hi, first of all, sorry for my basic english but i dont speak this language and im using the translator hahaha.

 

Okay, my question is this, if there is any way for me to steal the object (diamond, iron, gold, swords, etc) in my hand when a mob hits me

Last seen on 15:45, 10. Apr 2024
Joined Sep 2019
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Not sure. Maybe go on the…
Tue, 01/21/2020 - 18:43

Not sure. Maybe go on the creator forum

Last seen on 17:56, 25. Jan 2020
Joined Jan 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
I managed to make a…
Tue, 01/21/2020 - 18:53

Form

I managed to make a structure but it steals those from all your inventory, not just the one from hand :(

Last seen on 10:54, 17. Apr 2021
Joined Jan 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
You could change it so it…
Tue, 01/21/2020 - 21:07

You could change it so it just steals the item in the first hotbar slot, and if that slot is empty moves onto the second. Shouldn't be that hard for you.