Fixes to Schematic Command relating to Entities#2623
Fixes to Schematic Command relating to Entities#2623kitkatod wants to merge 6 commits intoDenizenScript:devfrom
Conversation
…Now functions as expected for any valid yaw value. Update entity rotation mechanism and entity yaw anytime schematic is flipped or rotated, instead of calculating when pasting "how much entity has rotated since creation" then applying. Remove an offset compensation for hanging entities being weird. During testing this has not caused any issues, unsure if this was an issue previously due to incorrect entity rotations.
| // | ||
| // The "create" and "paste" options allow the "entities" argument to be specified - when used, entities will be copied or pasted. | ||
| // At current time, entity types included will be: Paintings, ItemFrames, ArmorStands. | ||
| // At current time, entity types included will be: Paintings, ItemFrames, GlowItemFrames, ArmorStands, and DisplayEntities. |
There was a problem hiding this comment.
Is DisplayEntities implemented?
There was a problem hiding this comment.
Ah good point... Display Entities were already included in the types to be copied so the meta update for it was just to document what already existed. However after adding display entities to the test schematic I'm seeing them getting updated in unexpected ways, losing transformation data, and text_displays losing text.
After disabling the thrown exception on EntityHelper.setStepHeight (not all entity mechanisms are applied otherwise) it does actually spawn display entities, however rotation transformation is still completely lost - wondering if this might be a v1.20.6 issue? I'm not able to spawn in display entities with pitch/yaw ever applied either.
Want me to remove the DisplayEntities note for the moment?
|
Have you tested this very very very thoroughly with item frames in weird positions? There's a lot of obscure hacks in the original code that exist entirely because of incredibly specific edge-case behaviors with item frames |
|
I'm pretty confident in the transformations for item_frame, glow_item_frame, and armor_stand. Attached are the script and schematic I've used during testing, which has a bunch of item frames and armor stands in all sorts of positions. The script pastes 50 copies of the schematic, applying a random transformation to the same schematic between each paste. I did catch a comment in the |

Fixes Schematic Command relating to Entities
Notable potential issues