-
Notifications
You must be signed in to change notification settings - Fork 24
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
adjustments to allow structures to specify needed biome size
added "needed_space" to the json format for jigsaws. This allows specifying how many blocks around the chosen location must be the correct biome. This has been implemented in the ocean village, with a distance of 32 blocks, to prevent cases of it spawning in the edge of a beach.
- Loading branch information
Showing
4 changed files
with
204,778 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
136 changes: 136 additions & 0 deletions
136
src/main/resources/data/pokecube_legends/structures/village_ocean.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,136 @@ | ||
{ | ||
"pools": [ | ||
{ | ||
"name":"pokecube_legends:village/ocean/town_centers", | ||
"rigid":true, | ||
"ignoreAir":false, | ||
"options":[ | ||
"pokecube_legends:village/ocean/town_centers/center_1;{\"extra\":{\"markers_to_air\":true}}" | ||
] | ||
}, | ||
{ | ||
"name":"pokecube_legends:village/ocean/town_centers/bottom_1", | ||
"rigid":true, | ||
"ignoreAir":false, | ||
"options":[ | ||
"pokecube_legends:village/ocean/town_centers/bottom_1;{\"extra\":{\"markers_to_air\":true}}" | ||
] | ||
}, | ||
{ | ||
"name":"pokecube_legends:village/ocean/town_centers/bottom_2", | ||
"rigid":true, | ||
"ignoreAir":false, | ||
"options":[ | ||
"pokecube_legends:village/ocean/town_centers/bottom_2;{\"extra\":{\"markers_to_air\":true}}" | ||
] | ||
}, | ||
{ | ||
"name":"pokecube_legends:village/ocean/terminators", | ||
"rigid":true, | ||
"options":[ | ||
"pokecube_legends:village/ocean/terminators/terminator_01" | ||
] | ||
}, | ||
{ | ||
"name":"pokecube_legends:village/ocean/streets", | ||
"rigid":true, | ||
"ignoreAir":false, | ||
"options":[ | ||
"pokecube_legends:village/ocean/streets/road_1;{\"weight\":3,\"extra\":{\"markers_to_air\":true}}", | ||
"pokecube_legends:village/ocean/streets/road_2;{\"weight\":5,\"extra\":{\"markers_to_air\":true}}", | ||
"pokecube_legends:village/ocean/streets/road_close;{\"weight\":2,\"extra\":{\"markers_to_air\":true}}" | ||
] | ||
}, | ||
{ | ||
"name":"pokecube_legends:village/ocean/pokecenter/path", | ||
"rigid":true, | ||
"options":[ | ||
"pokecube_legends:village/ocean/pokecenter/path" | ||
] | ||
}, | ||
{ | ||
"name":"pokecube_legends:village/ocean/gym/path", | ||
"rigid":true, | ||
"options":[ | ||
"pokecube_legends:village/ocean/gym/path" | ||
] | ||
}, | ||
{ | ||
"name":"pokecube_legends:village/ocean/gym/aether_path", | ||
"rigid":true, | ||
"options":[ | ||
"pokecube_legends:village/ocean/gym/aether_path" | ||
] | ||
}, | ||
{ | ||
"name":"pokecube_legends:village/ocean/room", | ||
"rigid":true, | ||
"options":[ | ||
"pokecube_legends:village/ocean/room/room_1;{\"weight\":5}", | ||
"pokecube_legends:village/ocean/room/room_2;{\"weight\":5}", | ||
"pokecube_legends:village/ocean/room/room_3;{\"weight\":5}", | ||
"pokecube_legends:village/ocean/room/room_4;{\"weight\":5}" | ||
] | ||
}, | ||
{ | ||
"name":"pokecube_legends:village/ocean/room_base", | ||
"rigid":true, | ||
"options":[ | ||
"pokecube_legends:village/ocean/room_base/room_1;{\"weight\":5}", | ||
"pokecube_legends:village/ocean/room_base/room_2;{\"weight\":3}" | ||
] | ||
}, | ||
{ | ||
"name":"pokecube_legends:village/ocean/top", | ||
"rigid":true, | ||
"options":[ | ||
"pokecube_legends:village/ocean/top/aether_top_1", | ||
"pokecube_legends:village/ocean/top/aether_top_2" | ||
] | ||
}, | ||
{ | ||
"name":"pokecube_legends:village/ocean/houses", | ||
"ignoreAir":false, | ||
"rigid":true, | ||
"options":[ | ||
"pokecube_legends:village/ocean/houses/house_close;{\"weight\":3,\"extra\":{\"markers_to_air\":true}}", | ||
"pokecube_legends:village/ocean/houses/house_1;{\"weight\":8,\"extra\":{\"markers_to_air\":true}}", | ||
"pokecube_legends:village/ocean/houses/house_2;{\"weight\":8,\"extra\":{\"markers_to_air\":true}}", | ||
"pokecube_legends:village/ocean/houses/house_3;{\"weight\":8,\"extra\":{\"markers_to_air\":true}}", | ||
"pokecube_legends:village/ocean/houses/house_4;{\"weight\":8,\"extra\":{\"markers_to_air\":true}}", | ||
"pokecube_legends:village/ocean/houses/house_5;{\"weight\":6,\"extra\":{\"markers_to_air\":true}}", | ||
"pokecube_legends:village/ocean/pokecenter/center_01;{\"flag\":\"pokecenter\"}", | ||
"pokecube_legends:village/ocean/gym/aether_base;{\"flag\":\"gym\"}" | ||
] | ||
} | ||
], | ||
"jigsaws": [ | ||
{ | ||
"name":"pokecube_legends:village/ocean", | ||
"root":"pokecube_legends:village/ocean/town_centers", | ||
"chance":1, | ||
"distance":32, | ||
"separation":12, | ||
"size":6, | ||
"priority":10, | ||
"biomeType":"beach", | ||
"base_under":false, | ||
"needed_space": 32, | ||
"needed_once":[ | ||
"pokecenter", | ||
"gym" | ||
], | ||
"dimBlacklist":[ | ||
"the_nether", | ||
"the_end" | ||
], | ||
"spawn":{ | ||
"values":{ | ||
"biomes":"warm_ocean", | ||
"typesBlacklist":"cold", | ||
"categoryBlacklist":"the_end,nether,icy,beach" | ||
} | ||
} | ||
} | ||
] | ||
} |
Oops, something went wrong.