-
Bug
-
Resolution: Fixed
-
24w11a, 1.20.5 Pre-Release 1
-
None
-
Plausible
-
Data Packs
-
Normal
-
Platform
In the set_fireworks loot item function, the "mode" field is always required, even when it is only used to apply the optional "explosions" lists.
How to reproduce
- Create a data pack with the following item modifier, I expect it to set the flight duration to 2 and keep the explosions the same
{ "function": "set_fireworks", "flight_duration": 2 }
- The item modifier is invalid
- Add the "mode" field
{ "function": "set_fireworks", "mode": "append", "flight_duration": 2 }
- This makes the item modifier valid again and it behaves as expected. (Internally it appends an empty list of explosions to the existing explosions)