Skip to content

Commit

Permalink
bug fixes & more catacombs chains
Browse files Browse the repository at this point in the history
  • Loading branch information
AViewFromTheTop committed Nov 22, 2024
1 parent 81a2ed9 commit 6b78ac9
Show file tree
Hide file tree
Showing 12 changed files with 35 additions and 18 deletions.
11 changes: 11 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
Please clear changelog after each release.
Thank you!
Put the changelog BELOW the dashes. ANYTHING ABOVE IS IGNORED
hi
-----------------
- Added 27 new rooms for the Catacombs.
- Chains new generate more commonly in Catacombs.
- Fixed a vanilla bug where Powered Rails, Activator Rails, and Detector Rails wouldn't rotate properly in structure generation.
- Cracked and Chiseled Purpur Blocks can now be broken faster with a pickaxe. ([#10](https://github.com/FrozenBlock/TrailierTales/issues/10))
- Fixed a crash where modded boats that aren't implemented the same way as vanilla cause a crash. ([#9](https://github.com/FrozenBlock/TrailierTales/issues/9))
- Removed the leftover `TRAILIER TALES` subtitle from the main menu.
7 changes: 0 additions & 7 deletions CHANGELOG.txt

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"element": {
"element_type": "minecraft:empty_pool_element"
},
"weight": 80
"weight": 60
},
{
"element": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"element": {
"element_type": "minecraft:empty_pool_element"
},
"weight": 80
"weight": 60
},
{
"element": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"element": {
"element_type": "minecraft:empty_pool_element"
},
"weight": 80
"weight": 60
},
{
"element": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"element": {
"element_type": "minecraft:empty_pool_element"
},
"weight": 80
"weight": 60
},
{
"element": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"element": {
"element_type": "minecraft:empty_pool_element"
},
"weight": 80
"weight": 60
},
{
"element": {
Expand Down
8 changes: 8 additions & 0 deletions src/main/java/net/frozenblock/trailiertales/TTConstants.java
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,14 @@ public static void stopMeasuring(Object object) {
return ResourceLocation.fromNamespaceAndPath(MOD_ID, path);
}

public static @NotNull ResourceLocation idOrDefault(String path, String fallback) {
try {
return id(path);
} catch (IllegalArgumentException ignored) {
return id(fallback);
}
}

@Contract("_ -> new")
public static @NotNull ResourceLocation vanillaId(String path) {
return ResourceLocation.withDefaultNamespace(path);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -126,6 +126,8 @@ protected void addTags(@NotNull HolderLookup.Provider arg) {
.add(TTBlocks.CHORAL_END_STONE_BRICK_SLAB)
.add(TTBlocks.CHORAL_END_STONE_BRICK_WALL)

.add(TTBlocks.CRACKED_PURPUR_BLOCK)
.add(TTBlocks.CHISELED_PURPUR_BLOCK)
.add(TTBlocks.PURPUR_WALL)

.add(TTBlocks.SURVEYOR);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,10 @@ protected BoatRendererMixin(EntityRendererProvider.Context ctx) {
@Contract("_ -> new")
@Unique
private static @NotNull ResourceLocation trailierTales$getBannerBaseTextureLocation(Boat.@NotNull Type type) {
return TTConstants.id("textures/entity/boat_banner_base/" + type.getName() + ".png");
return TTConstants.idOrDefault(
"textures/entity/boat_banner_base/" + type.getName() + ".png",
"textures/entity/boat_banner_base/oak.png"
);
}

@ModifyExpressionValue(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -455,7 +455,7 @@ public static void bootstrapTemplatePool(@NotNull BootstrapContext<StructureTemp
new StructureTemplatePool(
empty,
ImmutableList.of(
Pair.of(StructurePoolElement.empty(), 80),
Pair.of(StructurePoolElement.empty(), 60),
Pair.of(StructurePoolElement.single(string("decoration/chain/chain_1")), 1),
Pair.of(StructurePoolElement.single(string("decoration/chain/chain_2")), 1),
Pair.of(StructurePoolElement.single(string("decoration/chain/chain_3")), 1),
Expand All @@ -472,7 +472,7 @@ public static void bootstrapTemplatePool(@NotNull BootstrapContext<StructureTemp
new StructureTemplatePool(
empty,
ImmutableList.of(
Pair.of(StructurePoolElement.empty(), 80),
Pair.of(StructurePoolElement.empty(), 60),
Pair.of(StructurePoolElement.single(string("decoration/chain/chain_1")), 1),
Pair.of(StructurePoolElement.single(string("decoration/chain/chain_2")), 1),
Pair.of(StructurePoolElement.single(string("decoration/chain/chain_3")), 1),
Expand All @@ -488,7 +488,7 @@ public static void bootstrapTemplatePool(@NotNull BootstrapContext<StructureTemp
new StructureTemplatePool(
empty,
ImmutableList.of(
Pair.of(StructurePoolElement.empty(), 80),
Pair.of(StructurePoolElement.empty(), 60),
Pair.of(StructurePoolElement.single(string("decoration/chain/chain_1")), 1),
Pair.of(StructurePoolElement.single(string("decoration/chain/chain_2")), 1),
Pair.of(StructurePoolElement.single(string("decoration/chain/chain_3")), 1)
Expand All @@ -503,7 +503,7 @@ public static void bootstrapTemplatePool(@NotNull BootstrapContext<StructureTemp
new StructureTemplatePool(
empty,
ImmutableList.of(
Pair.of(StructurePoolElement.empty(), 80),
Pair.of(StructurePoolElement.empty(), 60),
Pair.of(StructurePoolElement.single(string("decoration/chain/chain_1")), 1),
Pair.of(StructurePoolElement.single(string("decoration/chain/chain_2")), 1)
),
Expand All @@ -517,7 +517,7 @@ public static void bootstrapTemplatePool(@NotNull BootstrapContext<StructureTemp
new StructureTemplatePool(
empty,
ImmutableList.of(
Pair.of(StructurePoolElement.empty(), 80),
Pair.of(StructurePoolElement.empty(), 60),
Pair.of(StructurePoolElement.single(string("decoration/chain/chain_1")), 1)
),
StructureTemplatePool.Projection.RIGID
Expand Down
Binary file not shown.

0 comments on commit 6b78ac9

Please sign in to comment.