Started by
LeftyAtHeart
on
Topic category: Help with MCreator software
my mod is about avenging your iron golem friends, where basically when they die, they drop an item you can combine with iron armor or weapons, and they become golem weapons/armor, i have a script where it drops the item, but it drops it whenever its killed, what is a script to make it drop only when its killed by a zombie, skeleton, spider, or a few others?
If you use the global "entity dies" trigger it gives you the entity that died as the "Event/target Entity" and the entity that killed it as the "Source Entity". You just need to check if the "Event/target Entity" is an Iron Golem and if the "Source Entity" is a zombie, skeleton, spider, or something else, then spawn an item at the provided xyz coordinates.
https://drive.google.com/file/d/1qnFOiQ4jw6Yqe-f90Ct8MvyBB0LZz7kv/view?usp=sharing