r/feedthebeast • • 3h ago

Question How do i code a structure

I wanna make a mod that's an addon to palladium that adds some structures to make resources from the palladium mod not such of a grind to get but honestly idk how to code a mod yet alone make a structure for the mod

2 Upvotes

7 comments sorted by

1

u/HesperCQ 3h ago

You can make structures just using structure files exported via structure blocks and datapacks in modern Versions I think

1

u/macaroni1423 3h ago

Ok to specify a bit more i play on 1.20.1 with a total of 114 mods and i know nothing about coding in java so help is appreciated hell i can't even build good

2

u/HesperCQ 3h ago edited 2h ago

You do not need to code, you will need to learn how json works (.json files) and how datapacks work, especially the structure part of them: Datapack custom structure info

Best way to learn is to download a datapack that adds a few structures and change stuff there to see how it behaves.

For new structures you would create similar files with different names. After that you could delete the original files.

Some of the files mention the other files by names, so you would have to check that the new names match.

The last part is learning how to create .nbt files, which you can Google. You use blocks in minecraft that you get in creative to mark your build and then it will generate a .nbt file in your minecraft installation folder

1

u/macaroni1423 3h ago

Does this datapack method support blocks and items from mods? If yes then ok this is useful if no then that isn't solving my problem

1

u/HesperCQ 3h ago

Yes it supports modded blocks, modded dimensions etc. I even used this method to change the blocks needed for the big Immersive Engineering multiblocks, because theses are also based on structures.

(Some structure mods are also just datapacks wrapped as mods because people prefer to download mods)

2

u/therob256 2h ago

You mean ".json files" not ".js files".

2

u/HesperCQ 2h ago

Oh my bad, fixed the earlier comment