//structure generates empty chests
wizjany opened this issue ยท 0 comments
WorldEdit Version
7.3.10-SNAPSHOT, 7.3.8
Platform Version
Paper 1.21.4, Fabric 1.21
Confirmations
- I am using the most recent Minecraft release.
- I am using a version of WorldEdit compatible with my Minecraft version.
- I am using the latest or recommended version of my platform software.
- I am NOT using a hybrid server, e.g. a server that combines Bukkit and Forge. Examples include Arclight, Mohist, and Cardboard.
- I am NOT using a fork of WorldEdit, such as FastAsyncWorldEdit (FAWE) or AsyncWorldEdit (AWE)
Bug Description
Chests (and possible other blocks) generated via the //structure
command don't have loot tables, and thus are empty.
Expected Behavior
Chests generate with loot.
Reproduction Steps
//structure desert_pyramid
(or anything else that spawns with a chest with loot)- Open chests, see that they are all empty. Can be verified by checking NBT before opening chest (should have loot table tag, see below).
Anything Else?
Tested on 1.21.4 adapters, which have a small change to the generate signature, but reproduced in 1.21.
This may (probably does) affect any other blocks with NBT in structures.
This was previously fixed (for paper only) in d1221cf, but since the re-enabling of the buffering extents, the BE is never created as the block doesn't get set to the world til the ES is closed, so getBlockEntity returns null.