How do i set fire with a custom sword?

Started by aabss on

Topic category: Help with modding (Java Edition)

Last seen on 22:41, 15. May 2022
Joined Feb 2022
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
How do i set fire with a custom sword?
Wed, 02/23/2022 - 18:06 (edited)

I've been trying to figure out how to set a mob on fire when I hit them with a sword, how do I do that? What procedures do I need to do? Or do I need to custom code it? Also how do i give myself fire resistance when I hold my sword

Edited by aabss on Wed, 02/23/2022 - 18:06
Last seen on 04:28, 26. Jan 2024
Joined Oct 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
on your swords trigger of…
Wed, 02/23/2022 - 19:17

on your swords trigger of when entity is hurt with tool,  set entity on fire for # seconds

and for the fire res, on the trigger of tool in hand tick, just add the effect with the add potion effect procedure