Mojira Archive
MCM-753

Interact add_items crashes when evaluating loot table with set_actor_id

Partner Rank: 3

Verification builds: 1.13.0.2, 1.12
Regression builds: None, this has always been broken (feature added in 1.12)

Summary: If a loot table that uses set_actor_id in order to make an entity drop its "own" egg is used in an interact with add_items, the game crashes.

Impact: This prevents a small mechanic in an upcoming map.

Repro Steps:

  1. Download and open the attached world
  2. Hold the stone shovel and right-click on a pig

Expected Results: Pig spawn egg is added to inventory.

Observed Results: Game crashes.

Screenshots/Videos attached: No

Notes: The behavior pack allows tests for all loot table evaluations on an entity. Everything else works fine, including spawn_items on an interact.

Component Works? Test
minecraft:behavior.drop_item_for Left-click with wooden sword
minecraft:behavior.sneeze Left-click with stone sword
minecraft:equipment Left-click with iron sword
minecraft:loot Left-click with diamond sword
minecraft:interact > spawn_items Right-click with wooden shovel
minecraft:interact > add_items Right-click with stone shovel

 

Fixed

[Mod] tryashtar

2019-07-24, 11:32 PM

2019-08-14, 08:32 PM

2019-08-14, 08:32 PM

0

0

Future Release

-