Entity resolution pin: an interval that always elapses, so the spawn effect is part of the pinned spec

This commit is contained in:
piexel committed 2026-10-10 08:29:05 +02:00
1 parent 2c7b0cd1f7
commit ee2818514f
1 file changed
+2 -2
@@ -52,7 +52,7 @@ public class EntityResolutionPinTest {
"loot": {"tables": ["zombie/drops", "zombie/rare"]},
"passengers": [{"type": "minecraft:chicken", "baby": true, "helmet": {"type": "bread"}}],
"leashHolder": {"type": "minecraft:bat", "attributes": [{"attribute": "max_health", "name": "tiny", "minAmount": 1, "maxAmount": 3}]},
"spawnEffect": {"sound": "entity.zombie.ambient", "particleEffect": "SMOKE", "particleCount": 3, "interval": 0, "chance": 1},
"spawnEffect": {"sound": "entity.zombie.ambient", "particleEffect": "SMOKE", "particleCount": 3, "interval": 1, "chance": 1},
"spawnEffectRiseOutOfGround": true,
"rawCommands": [{"commands": ["say hello {x}"], "delay": 5, "repeat": true, "repeatDelay": 40}]}
""";
@@ -68,6 +68,6 @@ public class EntityResolutionPinTest {
EntitySpec spec = new EntityResolution(new LootItems(registry, false), world).resolve(entity, new RNG(STREAM_SEED));
assertEquals(1726532922, spec.toString().hashCode());
assertEquals(-819231818, spec.toString().hashCode());
}
}