#How to import a structure from a .nbt file?

1 messages · Page 1 of 1 (latest)

dry parrot
#

Hey I want to import a structure into Blockbench, for that I tried to use this extension, but all what it does is generate a 2 empty groups called structure and that's it. I can't even delete these groups. Is there any fix for that?

Thanks ~Mqx

thorny crowBOT
#

Welcome to the help forum! Once your question has been resolved, please mark the post as closed by typing !close.

dry parrot
#

This is the structure I want to import. This structure was saved in 1.20.1.

whole rivet
#

i think its problem with your nbt file . cause it also didnt work for me

#

or maybe it doesnt support 1.20.1 , idk

elder berry
#

Were there any errors? (Either in an extra window or in the console (Ctrl+Shift+I))?

elder berry
#

@dry parrot

dry parrot
dry parrot
dry parrot
#

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
elder berry
#

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?

dry parrot
#

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

thorny crowBOT
#

Channel closed ----------

worn pine
# dry parrot I can try to get a newer version

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.
elder berry
#

Might be that the plugin isn't updated for 5.0+ Blockbench yet too.

worn pine
#

And yes the plugin isn't updated

worn pine
# elder berry > I was wondering what you meant by updating the assets to a new version Yeah, w...

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...

elder berry
#

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)

worn pine
elder berry
#

And it throws no other errors after you try to load a structure?

worn pine
# elder berry 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...
elder berry
#

(Assuming the mod uses normal block models and not some entity renderers)

worn pine
elder berry
worn pine
#

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.

elder berry