Having a fish mob burn you how?

Started by DevMan_Minecraft on

Topic category: Help with Minecraft modding (Java Edition)

Active 4 years ago
Joined Apr 2019
Points:
689

User statistics:

  • Modifications: 0
  • Forum topics: 6
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 7
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?

Active 4 years ago
Joined Apr 2019
Points:
689

User statistics:

  • Modifications: 0
  • Forum topics: 6
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 7
can anyone help?
Wed, 01/29/2020 - 22:37

can anyone help?

Active 5 years ago
Joined Jan 2020
Points:
650

User statistics:

  • Modifications: 0
  • Forum topics: 4
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 11
  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... :

 

Active 5 years ago
Joined Jan 2020
Points:
650

User statistics:

  • Modifications: 0
  • Forum topics: 4
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 11
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. 

Active 4 years ago
Joined Apr 2019
Points:
689

User statistics:

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

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

 

Active 5 years ago
Joined Jan 2020
Points:
650

User statistics:

  • Modifications: 0
  • Forum topics: 4
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 11
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.