Having a fish mob burn you how?

Started by DevMan_Minecraft on

Topic category: Help with Minecraft modding (Java Edition)

Joined Apr 2019
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Having a fish mob burn you how?

How can I make a fish mob that when you hit it with your barehand it burns you but, when you use anything but your hand it doesn't burn you?

Joined Jan 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
  Put a procedure like this…
Thu, 01/30/2020 - 12:25

 

Put a procedure like this under the mob it's 'When entity is hurt'... statements... checks... :

 

Joined Jan 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
ACtually that wont work with…
Thu, 01/30/2020 - 12:58

ACtually that wont work with the 'provided entity' I believe that will set the fish itself on fire, but I might be wrong there. 

Joined Apr 2019
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
That set's the enity on fire…
Fri, 01/31/2020 - 20:18

That set's the enity on fire and not the player

 

Joined Jan 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Yep, was afraid of that…
Mon, 02/03/2020 - 08:07

Yep, was afraid of that happening (sadly cant test atm) but you can try this one: 

You can then expand on it by adding a Else-statement in the nested If-statement to check for other items in hand.