#Structure generation problem
1 messages · Page 1 of 1 (latest)
but
Somehow structures override eachother and the drops from the chests spill out so i was wondering if anyone could help
The structures also override eachother everytime you rejoin. It's very confusing to me
You do realise local variables are… local? You dont have to give each one a unique name
Why do you have 3 lines for setting the {gx} variables to 0? One would work
You could also combine the else and if statements, else if {g1} = 2:
.
Also you can combine those events
As for why the overlap, could it have anything to do with the fact that if the chunk contains andesite youre pasting ALL structures there?
Alright 1st You're right i'll change that. 2nd I'm setting the variable to 0 because you can't do cancel event in a chunk load there's probably another way to stop the skript but i just used set {ex} to 0 because that was how i wanted to end the skript. 3rd i could definitely try that.
I think you misunderstood because it only pastes a structure when there's not andesite in the chunk
Ah, yes. Well same thing. If theres no andesite theres a chance you spawn all the structures at once in the same location (as long as the variables allow it)
Ohh right, so how do i make this not happen?
- combine events and conditions
- pick one structure
Wait so i can only have one structure to generate?
I've made this skript but now everything just generates at 0 0😭

just used broadcast "%{blahblahvariable}%"
👀 if event-shunck contains andesite: stop
or even better, stop if event-chunk contains andesite
o
also, you can just set {_x} and {_z} once before
still does it😭
not in every section
uhh q2e is basically the checker for when 2 structures are trying to spawn the same place
and honestly, why not just place structure (random element of {list::*}) at %location%
because i need specific rarity
then use a random integer
but just one
then you can get rid of those useless g variables
if {_structure} is between 1 and 5:
broadcast "5 percent"
else if {_structure} is between 6 and 30:
broadcast "25 percent"
else:
broadcast "70 percent"```
...
Chests have very unique NBT data so I’d try to just give the chest its loot right after it spawns instead of right when it spawns
This isn't quite my problem though because the structures overwrite eachother whenever you rejoin. They only need to generate once
Then do this
Thank you, it finally works.