Data structure packs - Need some helplive_help

16bitmap4/24/20 7:31 pm
2 emeralds 173 5
3/11/2022 10:00 am
Hello there!

My name is 16Bitmap. I'm kind of new to all this datapack creation and also to the planet minecraft forum as you might have seen.

During this strange period of COVID I'm trying to learn some stuff that I've always wanted to learn. Create custom data packs.

I've chosen to start with the thing I would like the most and then work through everything I need next to that and maybe more. Structure packs.

So I want to add more structures that I've made myself to the minecraft world. I know there are a few packs that already do this and I'm using them as my example to learn from. Tho, when I don't know what I'm reading it tends to be a bit hard.

I would love it so much if someone would be able to help me a bit here and there with some code or maybe jump in on the project.

Things I'm stuck on right now:
- How do I control the amount of spawning in the world?
- How do I let the structure know if it can spawn underground/on the surface/floating/halfway underground?

Packs that I'm trying to learn from:
- https://www.planetminecraft.com/data-pack/fancystructures-for-1-14-wip/
- https://www.planetminecraft.com/data-pack/your-structures-datapack/
- https://www.tyruswoo.com/minecraft/ (Tyruswoo game changer datapack series)

I would love to hear from you guys. I'm available here or on discord if needed. You can send me a PM or just react here!

Thanks a lot!

Posted by avatar
Level 42 : Master Artist

Create an account or sign in to comment.


03/11/2022 10:00 am
Level 9 : Apprentice Explorer
MechaKillerRichMC avatar
This page will help you update your data pack to 1.18.2 with the new custom structure format.


04/29/2020 7:04 am
Level 47 : Master Modder
Oskyyr avatar
Hey i also worked with random generation and custom structures and will post my knowledge about this.

As much as i know you can't change the world generation at all.
The datapacks summon random armor stands with custom names and tags to detect them later.

Then you run a function which detect these armor stands and use

/execute @e[‚Äčname="dungeon"] run function datapack:generate (example)

to place at the position of the armor stand structure blocks and redstone block to active the structure block.

The structure block load pre-build structures into the game.

So first of all you build the structures you want to add.
Store them in structure blocks.

create "random" amror stand generator functions

create armor stnad detection functions

create generate functions

I personally added in the default structures from minecraft armor stands so my
dungeons always generate when the minecraft world generation place the structure.
05/09/2020 5:50 pm
Level 42 : Master Artist
16bitmap avatar
I've found out I'm way too much on a beginner level to start programming a whole new datapack for myself. I have found someone that has a datapack where I can add my own structures to.

So it does the armour stand spreading thing for me and I do the buildings and how and where they spawn.

And while doing that learning something about how to write the code. So thats nice!

Thanks for the help but untill I'm ready for the big code stuff I'm gonna use that stuff!
05/22/2020 4:10 pm
Level 47 : Master Unicorn
JDawgtor avatar
If you want help with data pack development, I have a few youtube channels I recommend for you.

-Cloudwolf (explains very advanced topics pretty simply, and has some begginer stuff too)
-Code Zealot (has tutorials on the very basics of data packs and commands)
-Timber Forge (has tutorials on data packs meant to be for custom "mods", i.e custom blocks, custom mobs, custom items etc.)
-BronGhast014 (lots of data pack, and resource pack tutorials)

Hope this helped :D
04/29/2020 11:59 am
Level 47 : Master Modder
Oskyyr avatar
u can use /spreadplayers to spread armor stands and this make the "random" feature
Planet Minecraft


© 2010 - 2023