mojira.dev
MC-313768

Killing a mob whose death loot table has time_check period 0 crashes the game

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.

Attachments

Comments 1

Thank you for helping us improve Minecraft! We saved your files:

[media]

BugTracker - BugTX

(Unassigned)

Unconfirmed

26.3

Retrieved