burn mobs around the player

Started by TZO_Ghoul on Sat, 10/03/2020 - 22:33

Topic category: User side tutorials

Last seen on 00:33, 4. Dec 2020
Joined Nov 2019
User points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
burn mobs around the player
Sat, 10/03/2020 - 22:33

I really need to know how to set fire to mobs around the player in a 5 by 5 by 5 block area 

Last seen on 18:34, 2. Dec 2020
Joined Jun 2019
User points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
Under whatever trigger you…
Sat, 10/03/2020 - 23:46

Under whatever trigger you want it to be (when item in inventory tick, when right clicked with item, ect), you can have it set fire to the closest entity in a radius simply using the "Get nearest entity at X: Y: Z: in square cube with side (4) of type _____".
But I assume you mean all mobs in the radius.

This'll be a little trickier, but one way you could do it is by having it run a command like "effect give @e[distance=0.01..5] mod_id_thing:CustomPotionName", and then have said custom potion do nothing except set entities with the potion effect on fire. By putting a "set entity on fire for ___" in a procedure triggered by the start of the potion being added. It could then be set to be an instant potion, and/or remove itself right after setting an entity on fire by having it run a command of something like "effect clear @e[limit=1] mod_id_thing:CustomPotionName".

Though, This might be more complicated that it has to be.