make your item spawns the minecrafts extructure block at the desire position
gets the block entity from that block and use the block entity to load and spawns the extructure
Thanks for the help,
I solved it now and the problem was the Amendments mod. I put all mods one by one into the folder and tested if it crashes my game and amendments was the one that crashed it
Make sure Java is running via Nvidia GPU:
https://windowsreport.com/minecraft-not-using-gpu/
If there is no change, add the crash-report or latest.log with sites like
https://paste.ee/