[SPIGOT-5738] If you place a chest down with items using nbt it is emtpy Created: 13/May/20  Updated: 13/May/20  Resolved: 13/May/20

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

Type: Bug Priority: Minor
Reporter: Floris Assignee: Unassigned
Resolution: Duplicate Votes: 0
Labels: BlockEntityTag, NBT, block, bug, chest, nbt, nbtdata, spigot

Issue Links:
Duplicate
duplicates SPIGOT-2266 Can't place place Chests with +NBT as... Open
Version: git-Spigot-2f5d615-d07a78b (MC: 1.15.2)
Plugin: no plugin
Guidelines Read: Yes

 Description   

If I use a command generator to create a chest with items in it and then put it down there are no items in it. In vanilla minecraft if I use the same command and then put it down there is nothing wrong.

This is the command that I am using: give @p minecraft:chest{BlockEntityTag:{Items:[

{Slot:0b,id:"minecraft:dirt",Count:1b}

]}} 1

This works well in creative but not in survival while it works in vanilla minecraft.



 Comments   
Comment by md_5 [ 13/May/20 ]

It's for exploit reasons as blablubbabc says

Comment by Black Hole [ 13/May/20 ]

Vloris This issue might be the most important issue for you at the moment. But it's far from being a major issue. Very few issues are actually considered major.

Comment by blablubbabc [ 13/May/20 ]

If I remember correctly this is intentionally:

https://hub.spigotmc.org/stash/projects/SPIGOT/repos/craftbukkit/commits/a2d26409f702f712525260ab6eddcfc49cf58d50
https://hub.spigotmc.org/stash/projects/SPIGOT/repos/spigot/commits/4165cd8f453f050e18a891297e2f00704e0b379d#CraftBukkit-Patches/0100-Add-creative-mode-NBT-permissions.patch

Spigot limits picking up chests with nbt contents and placing them to creative mode players. The reason for this might be to prevent some sort of exploit usable by players (maybe involving chest recursively containing more chests with lots of contents). However, the relevant Spigot and Mojang issue tickets related to this are non-public.

Comment by Black Hole [ 13/May/20 ]

Please provide the output of the /version command. If you're running some versions behind, please update to the latest version. Also try to reproduce without any plugin.

Please provide a simple command with a single item that works in vanilla 1.15.2 but not in Spigot.

Generated at Thu Apr 03 15:45:25 UTC 2025 using Jira 10.3.3#10030003-sha1:d220e3fefc8dfc6d47f522d3b9a20c1455e12b7b.