Game crash when a mob dies containing the minecraft:time_check predicate with period 0.
Steps to reproduce:
Create a new world with the attached datapack enabled.
Run the following commands:
/setblock 0 64 0 minecraft:lava /summon minecraft:pig 0 64 0 {Health:1.0f,DeathLootTable:"test:death_time0"}Wait for the pig to die in the lava and observe the game crash.
Observed result:
The game crashes.
Expected result:
A period of 0 in minecraft:time_check should be rejected.
Thank you for helping us improve Minecraft! We saved your files: