BentoBox icon indicating copy to clipboard operation
BentoBox copied to clipboard

Item frames in a Blueprint

Open x1p opened this issue 4 years ago • 1 comments

Description

Describe the bug

I'm making an acidisland blueprint. This works fine however hanging itemframes (with items) are not copied. I've read the contents of the blueprint file and there are no itemframes. According to the documentation, entities should be copied. And indeed, animals are being copied. However item frames and their items are not.

/bsb bp copy air - copy the blocks, entities, and air inside the box to the clipboard.
This is important if you plan to paste the island into water (AcidIsland) or rock (CaveBlock).

Can this be fixed or is there a way to somehow add them myself?

Steps to reproduce the behavior

  1. Make an island.
  2. Mark pos1 and pos2
  3. Place the spawn_here sign
  4. Execute acid blueprint copy air
  5. Save the file
  6. Make an island and check result

Expected behavior

Island with item frames and items within

Screenshots and videos (Optional)

2021-04-30_13 09 29

Environment

Output of /bbox version (Mandatory)
[13:11:06 INFO]: Running Invalid (PURPUR) 1.16.5.
[13:11:06 INFO]: BentoBox version: 1.16.2-SNAPSHOT-b2048
[13:11:06 INFO]: Database: JSON
[13:11:06 INFO]: Loaded Game Worlds:
[13:11:06 INFO]: acidisland_world (AcidIsland): Overworld
[13:11:06 INFO]: Loaded Addons:
[13:11:06 INFO]: AcidIsland 1.14.7-SNAPSHOT-b936 (ENABLED)

x1p avatar Apr 30 '21 11:04 x1p

They will need special handling. We'll need to serialize the item frame and then rebuild it when loaded. We'll also need to make sure it has something to attach to before pasting it otherwise it'll pop. I'll investigate.

tastybento avatar May 01 '21 04:05 tastybento