Game crash when trying to set nearest mob on fire

Started by myxical on

Topic category: Help with modding (Java Edition)

Last seen on 23:47, 20. Jan 2024
Joined May 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Game crash when trying to set nearest mob on fire

I made a block that sets the nearest entity on fire. Works, but crashes if no mob is nearby. How to fix it?

Last seen on 22:29, 27. Mar 2024
Joined Nov 2019
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
by chance is it burning an…
Fri, 06/04/2021 - 04:23

by chance is it burning an item? because that crashes the game, make sure you add a if the entity is an not an item set it on fire, if its not that still do it, it saves you from that later

Last seen on 22:29, 27. Mar 2024
Joined Nov 2019
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
oh also you could just make…
Fri, 06/04/2021 - 04:24

oh also you could just make it activate when there is a mob nearby, make it so the procedure only works if there are entities nearby