#How to import a structure from a .nbt file?
1 messages · Page 1 of 1 (latest)
Welcome to the help forum! Once your question has been resolved, please mark the post as closed by typing !close.
This is the structure I want to import. This structure was saved in 1.20.1.
i think its problem with your nbt file . cause it also didnt work for me
or maybe it doesnt support 1.20.1 , idk
Were there any errors? (Either in an extra window or in the console (Ctrl+Shift+I))?
@dry parrot
I haven’t checked the console but there were no error windows…
I will check the console when I am at home
Here is the console error:
Action structure_importer has a duplicate ID
BarItem @ actions.js:12
Uncaught Error: File not found: potted_cherry_sapling.json VM347:1494
getResourcePath @ VM347:1494
loadBlockstate @ VM347:1498
buildStructure @ VM347:1374
(anonymous) @ VM347:763
nbt.parse @ VM347:604
onConfirm @ VM347:762
close @ dialog.js:691
(anonymous) @ dialog.js:779
seems like it doesn't know what a potted_cherry_sapling is
Did you make sure to load in an up to date resource pack?
Yes the assets folder that I have provided if from the current version
I can try to get a newer version
1 sec
Okay for some reason now it works... Thanks for the reminder to update the assets. I thought they were up to date but apparently they were not...
👍
!close
Channel closed ----------
Hello,
I have the same problem, but I was wondering what you meant by updating the assets to a new version because I tried re-extracting my 1.20.4 assets (the version of my NBT file) and even taking assets from versions 1.21+ and it still doesn't work. Here is my error in the Blockbench DevTools console:
BarItem @ actions.js:13```
Thank you for your response if you can help me.
I was wondering what you meant by updating the assets to a new version
Yeah, what you did (making sure that the pack and nbt file are from the same verson)
That error sounds like there is two plugins wit the ID structure_importer installed 🤔? (unless I'm misreading that error)
Might be that the plugin isn't updated for 5.0+ Blockbench yet too.
I'm using Blockbench portable 4.12.6 because it's not work in Blockbench 5.0+
And yes the plugin isn't updated
Do you think we will have to wait for the plugin to be updated?
This ‘duplicated ID’ problem is still bothering me. I don't understand, is it a problem with the plugin? I checked the ‘app.asar’ and ‘action.js’ files, and it is only there once.
Similarly, the second option from Mqx was to update the assets, and I also checked and tested with several types of assets, but it still doesn't work.
What a headache this BlockBench error is !
-# Ohh, soory for the ping...
Actually, looking at the plugin code, that's an error the plugin itself throws, but it's moreso a debug message than an error it seems?
Basically just says that the menu entry for the plugin already exists. Doesn't seem to affect the functionality it seems.
Though at least on 5.0.3 it does throw errors when I try to load a structure in general (something about "fs" not being specified)
That's why I switched to version 4.12.6 portable, which supports ‘fs’ (NodeJS/Electron file system).
And it throws no other errors after you try to load a structure?
I tried importing a larger structure and it works (by which I mean that I only get the .png texture files from my resource pack or the basic Minecraft one) with another error (which I understand) :
dark_oak_table.json```
It can't find this block because it's a mod block.
However, does that mean that it didn't work because the structure was too small?
I'm going to test it with a large structure and without modded blocks...
It shouldn't care about overall structure size (as long as it's not massive).
And yeah, it won't be able to load modded blocks unless you add the mods resource pack
(Assuming the mod uses normal block models and not some entity renderers)
If size doesn't matter, why didn't the structure and textures load? (for the first one I wanted to import)
Because there were no modded blocks or entity (unless glass panes are considered entity,? I don't know...).
nah, glass panes aren't entities
Did it throw any errors in the first structure?
Yes, the ‘duplicated ID’ error, that's why the structure wasn't loading (at least I assume so...). Otherwise, there were no other errors.
Ah, well, you see, I just loaded a larger structure without modded blocks, and it works.
Therefore, Blockbench or the plugin imposes a minimum size limit.
As I said before that "duplicate ID" error is just a message from the plugin itself. It just means some MenuBar entry is already there, so it doesn't add the MenuBar entry again.
It shouldn't affect the loading part. If there were errors in the loading part they should only show up after you tried to import something, not when the plugin itself loaded.
Ok, thanks for your help