[SPIGOT-6959] Error in spawn for loot tables Created: 06/Mar/22  Updated: 25/Dec/24  Resolved: 07/Mar/22

Status: Resolved
Project: Spigot
Component/s: None
Affects Version/s: None
Fix Version/s: None

Type: Bug Priority: Minor
Reporter: Doc Assignee: Doc
Resolution: Fixed Votes: 0
Labels: None

Attachments: PNG File image-2022-03-06-13-11-12-674.png    
Issue Links:
Relates
relates to SPIGOT-6366 error when executing "loot spawn ..."... Resolved
Version: CraftBukkit version 3450-Spigot-fb0dd5f-4ed5af5 (MC: 1.18.2) (Implementing API version 1.18.2-R0.1-SNAPSHOT)
Guidelines Read: Yes

 Description   

Currently in NMS exists a validation for avoid make a Item Entity can set a empty ItemStack.

this validation causes inconsistences with loot tables in spawn cases, where for example if you try to spawn a loot table of vanilla for chests you throw a error because the chest has empty itemstacks.

 

Command used in test. 

Note: the loot its random then not in all cases return the error.

/loot spawn ~ ~ ~ loot minecraft:chests/abandoned_mineshaft 

 

Expected:

The command spawn all the content of this loot

 

Currently:

The command throw a error when detect a empty itemstack.



 Comments   
Comment by Doc [ 07/Mar/22 ]

Fix in https://hub.spigotmc.org/stash/projects/SPIGOT/repos/craftbukkit/commits/64db51267aa3e611fb226c5d29d196ea670ebb33

Generated at Sat Dec 13 20:46:39 UTC 2025 using Jira 10.3.13#10030013-sha1:56dd970ae30ebfeda3a697d25be1f6388b68a422.