Building Gadgets

Building Gadgets

110M Downloads

Modify the placement logic to fundamentally solve the problem of inconsistency between items and placed blocks

ffcr opened this issue · 0 comments

commented

Building Gadgets Version
1.3.9

Describe the bug
When using Building Gadget, Exchanging Gadget, or Copy Paste Gadget to place blocks that require NBT data (e.g., Mekanism's Fluid Tanks, Cardboard Boxes, or machines with configurations/inventory), the placed blocks only retain the default state of the base block, not the NBT data from the original item consumed from the player's inventory. This results in loss of machine configurations, inventory contents, or custom NBT properties, creating a discrepancy between the consumed item and the placed block.

To Reproduce
Place NBT-dependent blocks (e.g., pre-configured Mekanism machines or filled containers) using any of the gadgets; observe that NBT data (configs, inventory) is missing in the placed blocks.

Expected behavior
Placed blocks should exactly mirror the NBT data of the original item consumed from the player’s inventory, preserving all configurations, inventory contents, and custom properties. This should be achieved by simulating player-like placement logic (similar to the Block Placer in JustDireThings).