-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- added spawning in all types of taigas and more rarely in snowy plai…
…ns, frozen rivers, ice spikes and windswept gravelly hills - added sound to braking plushie - removed broken particles of plushie - plushie now drops itself when broken - Fixed animations and models - added plushie to functional itemgroup - added translations
- Loading branch information
1 parent
21bf430
commit a0b2475
Showing
16 changed files
with
186 additions
and
11 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
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
29 changes: 29 additions & 0 deletions
29
src/main/java/net/rotgruengelb/forestal/util/ForestalTags.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,29 @@ | ||
package net.rotgruengelb.forestal.util; | ||
|
||
import net.minecraft.item.Item; | ||
import net.minecraft.registry.RegistryKeys; | ||
import net.minecraft.registry.tag.TagKey; | ||
import net.minecraft.util.Identifier; | ||
import net.minecraft.world.biome.Biome; | ||
import net.rotgruengelb.forestal.Forestal; | ||
|
||
public class ForestalTags { | ||
public static class Biomes { | ||
private static TagKey<Biome> of(String id) { | ||
return TagKey.of(RegistryKeys.BIOME, new Identifier(Forestal.MOD_ID, id)); | ||
} | ||
|
||
public static class SPAWNS_GRIZZLY_BEAR { | ||
public static final TagKey<Biome> COMMON = of("spawns_entity/grizzly_bear/common"); | ||
public static final TagKey<Biome> RARE = of("spawns_entity/grizzly_bear/rare"); | ||
public static final TagKey<Biome> ALL = of("spawns_entity/grizzly_bear"); | ||
} | ||
} | ||
|
||
public static class Items { | ||
|
||
private static TagKey<Item> of(String id) { | ||
return TagKey.of(RegistryKeys.ITEM, new Identifier(Forestal.MOD_ID, id)); | ||
} | ||
} | ||
} |
20 changes: 20 additions & 0 deletions
20
src/main/java/net/rotgruengelb/forestal/world/gen/ForestalEntityGeneration.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,20 @@ | ||
package net.rotgruengelb.forestal.world.gen; | ||
|
||
import net.fabricmc.fabric.api.biome.v1.BiomeModifications; | ||
import net.fabricmc.fabric.api.biome.v1.BiomeSelectors; | ||
import net.minecraft.entity.SpawnGroup; | ||
import net.minecraft.entity.SpawnRestriction; | ||
import net.minecraft.world.Heightmap; | ||
import net.rotgruengelb.forestal.entity.ForestalEntities; | ||
import net.rotgruengelb.forestal.entity.GrizzlyBearEntity; | ||
import net.rotgruengelb.forestal.util.ForestalTags; | ||
|
||
public class ForestalEntityGeneration { | ||
public static void addSpawns() { | ||
BiomeModifications.addSpawn(BiomeSelectors.tag(ForestalTags.Biomes.SPAWNS_GRIZZLY_BEAR.COMMON), SpawnGroup.CREATURE, ForestalEntities.GRIZZLY_BEAR, 30, 1, 2); | ||
|
||
BiomeModifications.addSpawn(BiomeSelectors.tag(ForestalTags.Biomes.SPAWNS_GRIZZLY_BEAR.RARE), SpawnGroup.CREATURE, ForestalEntities.GRIZZLY_BEAR, 7, 1, 1); | ||
|
||
SpawnRestriction.register(ForestalEntities.GRIZZLY_BEAR, SpawnRestriction.Location.ON_GROUND, Heightmap.Type.MOTION_BLOCKING_NO_LEAVES, GrizzlyBearEntity::isValidGrizzlyBearSpawn); | ||
} | ||
} |
8 changes: 8 additions & 0 deletions
8
src/main/java/net/rotgruengelb/forestal/world/gen/ForestalWorldGeneration.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,8 @@ | ||
package net.rotgruengelb.forestal.world.gen; | ||
|
||
public class ForestalWorldGeneration { | ||
|
||
public static void generateModWorldGeneration() { | ||
ForestalEntityGeneration.addSpawns(); | ||
} | ||
} |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
{ | ||
"block.forestal.grizzly_plushie": "Grizzly Bear Plushie", | ||
"entity.forestal.grizzly_bear": "Grizzly Bear", | ||
"item.forestal.grizzly_bear_spawn_egg": "Grizzly Bear Spawn Egg" | ||
} |
Oops, something went wrong.