#Is there a way to make a structure always face the same way when spawned in?
1 messages · Page 1 of 1 (latest)
yea not possible, just checked
(or postgen)
They aren't structures
because they're configured features
is that similler to structure generation?
no...
Only in that they use JSONs
but @spiral mica is the expert here, I'm just recently learning it :P
like in theory
can the game not take the structure I made and spawn it as a feature?
There is one feature that can place structure files, fossil, but it can be tricky to work with. It is possible to make it generate on the surface rather than underground but it requires some extra and frankly non-intuitive work to do so
Actually fossils would probably rotate it too
umm unless...
You use the structure to place a marker, that then gets replaced by the actual strucutre using post worldgen
like jigsaw blocks?
no by running a function that checks for all the marker entities and then at that location place a structure using
/place
sorry I need to get used to my new keyboard...
only if you're not placing too many... otherwise, it would lag the heck out of your game
have you ever played with functions in a datapack?
oh I was kinda hopeing it would spawn a lot
nope
aah.. yea not the best option then
yeah fair
weird that you can't control rotation with structures
but then again it is a sandbox game who knows how the world will look like
true
I think the bigger issue is just some blockstates not rotating correctly
There's little reason for structures to not rotate when generated, in theory as long as everything in them rotates right
I think you might want to give the fossil feature a try, maby they do rotate the chorus correctly...
guess I can try, but I'm really new to this sorta thing, took me a while to even get the structure to spawn
No problem, we (not me, I'm bad at worldgen xD) will guide you
where are the actual features saved?
like structures are in the structure folder but where are the features?
# Minecraft Datapack folder structure
# Last updated: Jul 1, 2024
.
├── pack.mcmeta
├── pack.png
└── data
└── <namespace>
├── advancement
├── enchantment
├── enchantment_provider
├── function
├── item_modifier
├── loot_table
├── predicate
├── recipe
├── structure
├── chat_type
├── damage_type
├── trim_material
├── trim_pattern
├── jukebox_song
├── painting_variant
├── wolf_variant
├── tags
| ├── banner_pattern
│ ├── block
│ ├── cat_variant
│ ├── damage_type
│ ├── entity_type
│ ├── fluid
│ ├── function
│ ├── game_event
│ ├── instrument
│ ├── item
│ ├── painting_variant
│ ├── point_of_interest_type
│ └── worldgen
├── dimension
├── dimension_type
└── worldgen
├── biome
├── configured_carver
├── configured_feature
├── density_function
├── noise
├── noise_settings
├── placed_feature
├── processor_list
├── structure
├── structure_set
├── template_pool
├── world_preset
└── flat_level_generator_preset
View this guide on datapack.wiki: https://datapack.wiki/guide/worldgen/custom-worldgen/
You want the Biomes and Features sections of this guide
oh I think I'm starting to get it
hypotheticaly what I have to do is include a file for the end biomes, that has a list of all the feature
add my feature to that list along with the rest
and make it spawn in the same way the fossil spawns
wait does that mean that minecraft just generated different trees every time it has to spawn one in?
they all look the same
seems like a waste creating them again and again
also quick question before I dive deeper into this
can features contain jigsaw blocks?
(assuming they are like the fossil and not a usual feature)
I think I found a very stupid way to make the structure work when rotated
They're generated by data instead of needing to have a bunch of structures saved. It's way faster and allows a greater degree of variance and configurability
Chorus trees aren't Tree Features, but the reason Tree Features are so good is largely the reason most of Minecraft is generated with features--they're fast and give Mojang a lot of control without needing to hand build anything
https://youtu.be/QIz_gS5pZ-U?si=p0YDkzMLseVpuS_k
#minecraft #worldgen #techdemo
Join my Patreon: https://www.patreon.com/kanokarob
Trees are awesome, let me show you why!
Join the New in Town Discord! Check it out: https://discord.gg/KvdmxHM
Follow me on Twitter!: https://twitter.com/kanokarobgaming
Find my Data Packs: https://modrinth.com/user/kanokarob
0:00 - Intro
0:25 - Researching Featu...
They can contain them but won't use them
then yeah faeture won't do the trick
I decided to try and replace every joint piece in the tree with a all direction plant block
if the blockstates want to rebel and not update I will use that for my advantage
looks prectcly the same as well so no issue there
well that worked like a charm
thanks for assisting!
gonna stick to structures a bit more before trying features lol
this function would be run every tick? is there a guide on postgen about?
Please don't necro other people's posts. You will get more immediate and accurate help opening your own