Skip to content

Commit 389b281

Browse files
buffed underground bastion and fixed icy ruins
1 parent 3c34964 commit 389b281

16 files changed

Lines changed: 72 additions & 44 deletions

File tree

CHANGELOG.md

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,14 @@
22

33
#### Villages:
44
Ocean Village now added! Spawns only in deep ocean biomes. Explore the bottom of the sea to see this village's tragic ending!
5-
Can be located with Dolphins
5+
Can be located with Dolphins
6+
7+
#### Bastions:
8+
Underground Bastions are now a bit more common
9+
10+
#### Ruins:
11+
Land Ruins chests now has an increased chance of having a map to an Underground Bastion
12+
13+
Fixed all 4 Land Ruins types having difficulty spawning
14+
15+
Fixed Icy Land Ruins placing snow layers on top of invalid blocks. Powder Snow may sometimes be two blocks deep now.

src/main/java/com/telepathicgrunt/repurposedstructures/world/features/StructurePowderSnow.java

Lines changed: 12 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
import com.telepathicgrunt.repurposedstructures.world.features.configs.StructureRangeConfig;
77
import net.minecraft.core.BlockPos;
88
import net.minecraft.core.Direction;
9+
import net.minecraft.tags.BlockTags;
910
import net.minecraft.world.level.block.Blocks;
1011
import net.minecraft.world.level.block.SnowLayerBlock;
1112
import net.minecraft.world.level.block.state.BlockState;
@@ -79,18 +80,26 @@ else if (stage == 8) {
7980
chosenBlock = Blocks.SNOW.defaultBlockState().setValue(SnowLayerBlock.LAYERS, (int) Doubles.constrainToRange(stage, 1, 8));
8081
}
8182

82-
if (!isSnowLayer && !chosenBlock.canSurvive(context.level(), mutable)) {
83+
if (currentState.is(Blocks.SNOW) && !chosenBlock.canSurvive(context.level(), mutable)) {
8384
mutable.move(Direction.DOWN);
8485
BlockState belowState = context.level().getBlockState(mutable);
85-
if (belowState.is(Blocks.DIRT_PATH) || belowState.is(Blocks.ICE) || (belowState.is(Blocks.POWDER_SNOW))) {
86+
if (belowState.is(Blocks.DIRT_PATH) || belowState.is(BlockTags.DIRT) || belowState.is(BlockTags.ICE) || (belowState.is(Blocks.POWDER_SNOW))) {
8687
context.level().setBlock(mutable, Blocks.SNOW_BLOCK.defaultBlockState(), 3);
8788
}
8889
mutable.move(Direction.UP);
8990
}
9091

91-
if (isSnowLayer || Blocks.SNOW.canSurvive(Blocks.SNOW.defaultBlockState(), context.level(), mutable)) {
92+
if (Blocks.SNOW.canSurvive(Blocks.SNOW.defaultBlockState(), context.level(), mutable)) {
9293
context.level().setBlock(mutable, chosenBlock, 3);
9394
}
95+
96+
if (currentState.is(Blocks.SNOW_BLOCK) || currentState.is(Blocks.POWDER_SNOW)) {
97+
mutable.move(Direction.DOWN);
98+
BlockState belowState = context.level().getBlockState(mutable);
99+
if (belowState.is(Blocks.DIRT_PATH) || belowState.is(BlockTags.DIRT) || belowState.is(BlockTags.ICE)) {
100+
context.level().setBlock(mutable, Blocks.POWDER_SNOW.defaultBlockState(), 3);
101+
}
102+
}
94103
}
95104
}
96105
}

src/main/resources/data/repurposed_structures/loot_tables/chests/ruins/land_cold/large.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@
105105
]
106106
},
107107
{
108-
"rolls": 2,
108+
"rolls": 3,
109109
"entries": [
110110
{
111111
"name": "minecraft:fishing_rod",
@@ -215,7 +215,7 @@
215215
{
216216
"name": "minecraft:map",
217217
"type": "minecraft:item",
218-
"weight": 1,
218+
"weight": 2,
219219
"functions": [
220220
{
221221
"function": "minecraft:exploration_map",

src/main/resources/data/repurposed_structures/loot_tables/chests/ruins/land_cold/small.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@
9595
]
9696
},
9797
{
98-
"rolls": 1,
98+
"rolls": 2,
9999
"entries": [
100100
{
101101
"name": "minecraft:fishing_rod",
@@ -190,7 +190,7 @@
190190
{
191191
"name": "minecraft:map",
192192
"type": "minecraft:item",
193-
"weight": 1,
193+
"weight": 2,
194194
"functions": [
195195
{
196196
"function": "minecraft:exploration_map",

src/main/resources/data/repurposed_structures/loot_tables/chests/ruins/land_hot/large.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@
105105
]
106106
},
107107
{
108-
"rolls": 2,
108+
"rolls": 3,
109109
"entries": [
110110
{
111111
"name": "minecraft:compass",
@@ -200,7 +200,7 @@
200200
{
201201
"name": "minecraft:map",
202202
"type": "minecraft:item",
203-
"weight": 1,
203+
"weight": 2,
204204
"functions": [
205205
{
206206
"function": "minecraft:exploration_map",

src/main/resources/data/repurposed_structures/loot_tables/chests/ruins/land_hot/small.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,7 @@
110110
]
111111
},
112112
{
113-
"rolls": 1,
113+
"rolls": 2,
114114
"entries": [
115115
{
116116
"name": "minecraft:compass",
@@ -205,7 +205,7 @@
205205
{
206206
"name": "minecraft:map",
207207
"type": "minecraft:item",
208-
"weight": 1,
208+
"weight": 2,
209209
"functions": [
210210
{
211211
"function": "minecraft:exploration_map",

src/main/resources/data/repurposed_structures/loot_tables/chests/ruins/land_icy/large.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@
105105
]
106106
},
107107
{
108-
"rolls": 2,
108+
"rolls": 3,
109109
"entries": [
110110
{
111111
"name": "minecraft:stone_shovel",
@@ -205,7 +205,7 @@
205205
{
206206
"name": "minecraft:map",
207207
"type": "minecraft:item",
208-
"weight": 1,
208+
"weight": 2,
209209
"functions": [
210210
{
211211
"function": "minecraft:exploration_map",

src/main/resources/data/repurposed_structures/loot_tables/chests/ruins/land_icy/small.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@
9595
]
9696
},
9797
{
98-
"rolls": 1,
98+
"rolls": 2,
9999
"entries": [
100100
{
101101
"name": "minecraft:stone_shovel",
@@ -200,7 +200,7 @@
200200
{
201201
"name": "minecraft:map",
202202
"type": "minecraft:item",
203-
"weight": 1,
203+
"weight": 2,
204204
"functions": [
205205
{
206206
"function": "minecraft:exploration_map",

src/main/resources/data/repurposed_structures/loot_tables/chests/ruins/land_warm/large.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@
105105
]
106106
},
107107
{
108-
"rolls": 2,
108+
"rolls": 3,
109109
"entries": [
110110
{
111111
"name": "minecraft:fishing_rod",
@@ -195,7 +195,7 @@
195195
{
196196
"name": "minecraft:map",
197197
"type": "minecraft:item",
198-
"weight": 1,
198+
"weight": 2,
199199
"functions": [
200200
{
201201
"function": "minecraft:exploration_map",

src/main/resources/data/repurposed_structures/loot_tables/chests/ruins/land_warm/small.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@
9595
]
9696
},
9797
{
98-
"rolls": 1,
98+
"rolls": 2,
9999
"entries": [
100100
{
101101
"name": "minecraft:fishing_rod",
@@ -170,7 +170,7 @@
170170
{
171171
"name": "minecraft:map",
172172
"type": "minecraft:item",
173-
"weight": 1,
173+
"weight": 2,
174174
"functions": [
175175
{
176176
"function": "minecraft:exploration_map",

0 commit comments

Comments
 (0)