#Is there a way to make a structure always face the same way when spawned in?

1 messages · Page 1 of 1 (latest)

gusty trout
#

I made a big chorus fruit tree and when it spawns rotated it looks weird, is there a way to make it spawn always facing in the same direction?

spiral mica
#

No

#

Not without mods anyway

lethal girder
#

yea not possible, just checked

spiral mica
#

(or postgen)

gusty trout
#

oh wow that sucks

#

then how come all the normal chorus trees don't break

spiral mica
#

They aren't structures

lethal girder
#

because they're configured features

gusty trout
#

is that similler to structure generation?

lethal girder
spiral mica
#

Only in that they use JSONs

lethal girder
#

but @spiral mica is the expert here, I'm just recently learning it :P

gusty trout
#

like in theory
can the game not take the structure I made and spawn it as a feature?

spiral mica
#

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

gusty trout
#

mmmm I see

#

so im stuck with this then?

spiral mica
#

Actually fossils would probably rotate it too

lethal girder
#

umm unless...
You use the structure to place a marker, that then gets replaced by the actual strucutre using post worldgen

gusty trout
#

like jigsaw blocks?

lethal girder
#

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

gusty trout
#

oh that is an option

#

I don't know how that would look

lethal girder
#

only if you're not placing too many... otherwise, it would lag the heck out of your game

lethal girder
gusty trout
#

oh I was kinda hopeing it would spawn a lot

lethal girder
#

aah.. yea not the best option then

gusty trout
#

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

lethal girder
#

true

spiral mica
#

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

lethal girder
#

I think you might want to give the fossil feature a try, maby they do rotate the chorus correctly...

gusty trout
#

guess I can try, but I'm really new to this sorta thing, took me a while to even get the structure to spawn

lethal girder
gusty trout
#

where are the actual features saved?
like structures are in the structure folder but where are the features?

errant riverBOT
#
# 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
spiral mica
gusty trout
#

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?

spiral mica
#

Of course

#

You thought all trees were structures?

gusty trout
#

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)

gusty trout
#

I think I found a very stupid way to make the structure work when rotated

spiral mica
#

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

▶ Play video
spiral mica
gusty trout
#

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

orchid patrolBOT
waxen saddle
spiral mica