How to not burn item entities on ground?

Started by UndeadGmrDad on

Topic category: Help with modding (Java Edition)

Last seen on 01:58, 4. Feb 2024
Joined Mar 2022
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
How to not burn item entities on ground?

Hello again, so i made a spell that sets all entity iterators on fire, but its burning items on the ground to, how would i go about not burning these items? it would suck if someone killed another player with this spell and burned all their great loot.

Last seen on 01:58, 4. Feb 2024
Joined Mar 2022
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
I figured out a way! it may…
Sun, 03/06/2022 - 04:45

I figured out a way! it may not be a genius way to fix it but heres how I did it. Items on the ground have a height of 0.25 and xp orbs have a height of 0.5. so by adding a simple "if" statement to my entity iterator, i bypassed the items and xp orbs.

If get height of entity iterator > 0.5 do extinguish entity iterator.

So simple, small and effective. Now my future players will be able to loot in peace!

Last seen on 12:31, 22. Jan 2024
Joined Jul 2017
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
that is actually pretty…
Tue, 03/22/2022 - 20:06

that is actually pretty smart but you could've made it so it would check if the target entity is an item or an xp orb and then not burn it

Last seen on 01:58, 4. Feb 2024
Joined Mar 2022
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
I noticed that. learning…
Tue, 03/22/2022 - 20:59

I noticed that. learning mcreator has been a process, but it is alot of fun.

Last seen on 14:59, 17. May 2024
Joined Mar 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
not easier to set iterator…
Wed, 03/23/2022 - 10:14

not easier to set iterator as not item type ?