GregTechCEu / GregTech

GregTech CE 1.12 fork continuing progression and development
GNU Lesser General Public License v3.0
223 stars 166 forks source link

Support Creative Mode Pick Block #2428

Open ghzdude opened 1 month ago

ghzdude commented 1 month ago

What

Adds support for loading the MTE with a stack's tag when using Ctrl + Pick Block in Creative Mode. There's a small issue where qchest doesn't update it's render correctly when loading from nbt, but otherwise essentially everything works now

Implementation Details

read the stack tag in BlockMachine add more tag key names to GregtechDataCodes

Outcome

MTEs are properly initialized from the stack's NBT when using Ctrl + Pick Block in Creative Mode.

Potential Compatibility Issues

none

ghzdude commented 1 week ago

I can't change what's copied, since vanilla behavior just calls writeToNBT() and places that on the itemstack. Best i could do is pop off trait NBT tags before reading them.