-
Notifications
You must be signed in to change notification settings - Fork 30
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
21 changed files
with
317 additions
and
26 deletions.
There are no files selected for viewing
1 change: 0 additions & 1 deletion
1
src/main/generated/data/wilderwild/tags/worldgen/biome/entity/spawn/penguin.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 |
---|---|---|
@@ -1,6 +1,5 @@ | ||
{ | ||
"values": [ | ||
"minecraft:snowy_beach", | ||
"minecraft:frozen_ocean", | ||
"minecraft:deep_frozen_ocean" | ||
] | ||
|
File renamed without changes.
2 changes: 2 additions & 0 deletions
2
src/main/generated/data/wilderwild/tags/worldgen/biome/feature/has_frozen_plain_grass.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
1 change: 1 addition & 0 deletions
1
...in/generated/data/wilderwild/tags/worldgen/biome/feature/has_frozen_plain_tall_grass.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
11 changes: 11 additions & 0 deletions
11
src/main/generated/data/wilderwild/tags/worldgen/biome/feature/has_snowy_plains_flowers.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,11 @@ | ||
{ | ||
"values": [ | ||
"minecraft:snowy_plains", | ||
"minecraft:snowy_taiga", | ||
"minecraft:ice_spikes", | ||
{ | ||
"id": "wilderwild:snowy_old_growth_pine_taiga", | ||
"required": false | ||
} | ||
] | ||
} |
61 changes: 61 additions & 0 deletions
61
src/main/generated/data/wilderwild/worldgen/configured_feature/flower_snowy_plains.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,61 @@ | ||
{ | ||
"type": "minecraft:flower", | ||
"config": { | ||
"feature": { | ||
"feature": { | ||
"type": "minecraft:simple_block", | ||
"config": { | ||
"to_place": { | ||
"type": "minecraft:noise_provider", | ||
"noise": { | ||
"amplitudes": [ | ||
1.0 | ||
], | ||
"firstOctave": 0 | ||
}, | ||
"scale": 0.048833333, | ||
"seed": 5050, | ||
"states": [ | ||
{ | ||
"Name": "wilderwild:seeding_dandelion" | ||
}, | ||
{ | ||
"Name": "wilderwild:seeding_dandelion" | ||
}, | ||
{ | ||
"Name": "wilderwild:seeding_dandelion" | ||
}, | ||
{ | ||
"Name": "wilderwild:seeding_dandelion" | ||
}, | ||
{ | ||
"Name": "minecraft:poppy" | ||
}, | ||
{ | ||
"Name": "minecraft:poppy" | ||
}, | ||
{ | ||
"Name": "minecraft:poppy" | ||
}, | ||
{ | ||
"Name": "wilderwild:seeding_dandelion" | ||
} | ||
] | ||
} | ||
} | ||
}, | ||
"placement": [ | ||
{ | ||
"type": "minecraft:block_predicate_filter", | ||
"predicate": { | ||
"type": "minecraft:matching_blocks", | ||
"blocks": "minecraft:air" | ||
} | ||
} | ||
] | ||
}, | ||
"tries": 32, | ||
"xz_spread": 7, | ||
"y_spread": 3 | ||
} | ||
} |
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
19 changes: 19 additions & 0 deletions
19
src/main/generated/data/wilderwild/worldgen/placed_feature/flower_snowy_plains.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,19 @@ | ||
{ | ||
"feature": "wilderwild:flower_snowy_plains", | ||
"placement": [ | ||
{ | ||
"type": "minecraft:rarity_filter", | ||
"chance": 8 | ||
}, | ||
{ | ||
"type": "minecraft:in_square" | ||
}, | ||
{ | ||
"type": "minecraft:heightmap", | ||
"heightmap": "WORLD_SURFACE_WG" | ||
}, | ||
{ | ||
"type": "minecraft:biome" | ||
} | ||
] | ||
} |
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
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
53 changes: 53 additions & 0 deletions
53
src/main/java/net/frozenblock/wilderwild/mixin/entity/penguin/BlocksMixin.java
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,53 @@ | ||
/* | ||
* Copyright 2025 FrozenBlock | ||
* This file is part of Wilder Wild. | ||
* | ||
* This program is free software; you can redistribute it and/or | ||
* modify it under the terms of the GNU Lesser General Public | ||
* License as published by the Free Software Foundation; either | ||
* version 3 of the License, or (at your option) any later version. | ||
* | ||
* This program is distributed in the hope that it will be useful, | ||
* but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | ||
* Lesser General Public License for more details. | ||
* | ||
* You should have received a copy of the GNU Lesser General Public License | ||
* along with this program; if not, see <https://www.gnu.org/licenses/>. | ||
*/ | ||
|
||
package net.frozenblock.wilderwild.mixin.entity.penguin; | ||
|
||
import net.frozenblock.wilderwild.registry.WWEntityTypes; | ||
import net.minecraft.core.BlockPos; | ||
import net.minecraft.world.entity.EntityType; | ||
import net.minecraft.world.level.BlockGetter; | ||
import net.minecraft.world.level.block.Blocks; | ||
import net.minecraft.world.level.block.state.BlockState; | ||
import org.spongepowered.asm.mixin.Mixin; | ||
import org.spongepowered.asm.mixin.injection.At; | ||
import org.spongepowered.asm.mixin.injection.Inject; | ||
import org.spongepowered.asm.mixin.injection.callback.CallbackInfoReturnable; | ||
|
||
@Mixin(Blocks.class) | ||
public class BlocksMixin { | ||
|
||
@Inject(method = "method_26128", at = @At("HEAD"), cancellable = true) | ||
private static void wilderWild$allowPenguinSpawnA( | ||
BlockState blockState, BlockGetter blockGetter, BlockPos blockPos, EntityType entityType, CallbackInfoReturnable<Boolean> info | ||
) { | ||
if (entityType == WWEntityTypes.PENGUIN) { | ||
info.setReturnValue(true); | ||
} | ||
} | ||
|
||
@Inject(method = "method_26132", at = @At("HEAD"), cancellable = true) | ||
private static void wilderWild$allowPenguinSpawnB( | ||
BlockState blockState, BlockGetter blockGetter, BlockPos blockPos, EntityType entityType, CallbackInfoReturnable<Boolean> info | ||
) { | ||
if (entityType == WWEntityTypes.PENGUIN) { | ||
info.setReturnValue(true); | ||
} | ||
} | ||
|
||
} |
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
Oops, something went wrong.