How do i set fire with a custom sword?

Started by aabss on

Topic category: Help with Minecraft modding (Java Edition)

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