deathButFunny - RedWirePlatinumTwo/RedWiresMinecraftMod GitHub Wiki
Description
So basically, when this is enabled it takes Flowey's death in the Undertale Genocide Package and turns it into an absolute joke. This is originally a shitpost roblox exploit script I made, but I re-made it for my mod because yeah. What this actually does is play the flowey audio, disables AI for the entities, and then "kills" it like 7 more times while spawning red carpets that cannot be picked up (fake blood). When an entity is doing the death thing, all damage source types are blocked exceptgeneric_kill.
Warning: Slimes/Magma cubes cannot be (initially) spawned with No AI when this is enabled. I have this set to turn off on spawn because if a larger slime is killed, the smaller slimes will also spawn in with no AI.
While the entity does the modified death, isAlive() and canBeSeenAsEnemy() for the entity will always return false.
5.4.1: Creepers will no longer detonate themselves during the funny death phase.
5.4.2: This gamerule no longer applies to the Ender Dragon.
5.4.8: Entities about to do the funny death will have the Glowing effect for 4s before getting damaged.
5.6.2: Zombie Villagers can no longer be (initially) spawned with AI disabled if this gamerule is enabled.
8.1.3: Entities doing the custom death will no longer be "attacked" by other entities considering that it's already dead.
8.1.4: Changed exiting and rejoining a world while an entity is doing the custom death so it will drop its loot on death depending on the custom death phase.