burn mobs around the player [SOLVED]

Started by TZO_Ghoul on

Topic category: User side tutorials

Joined Nov 2019
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
burn mobs around the player [SOLVED]
Fri, 08/16/2024 - 09:07 (edited)

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

Edited by TZO_Ghoul on Fri, 08/16/2024 - 09:07
Joined Jun 2019
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • 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.

Joined Jul 2023
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
@Klemen where is entity…
Wed, 07/26/2023 - 13:10

@Klemen where is entity iderator

 

Joined Jul 2023
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
nvm i found it  
Wed, 07/26/2023 - 13:11

nvm i found it