Started by
UndeadGmrDad
on
Topic category: Help with Minecraft modding (Java Edition)
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.
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!
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
I noticed that. learning mcreator has been a process, but it is alot of fun.
not easier to set iterator as not item type ?