Create

Create

86M Downloads

Clipboards are incorrectly marked as NBT safe

rybot666 opened this issue ยท 0 comments

commented

Describe the Bug

Clipboards are incorrectly marked as NBT-safe, despite copying an item stack blindly from their NBT data. This means that printing a malicious schematic containing a clipboard block can spawn any item once the clipboard is broken.

Reproduction Steps

  1. Take a schematic of a placed clipboard block
  2. Open it in an NBT editor
  3. Modify the Item tag of the clipboard block entity to contain whatever you want
  4. Print the schematic with a schematicannon
  5. Break the placed clipboard

Expected Result

The NBT should be verified to make sure the item is actually a clipboard.

Screenshots and Videos

No response

Crash Report or Log

No response

Operating System

Windows 10

Mod Version

0.5.1f

Minecraft Version

1.20.1

Forge Version

36.2.0

Other Mods

No response

Additional Context

No response