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

Started by YizuzG on

Topic category: Help with MCreator software

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

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

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 :(

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.