diff --git a/src/generated/resources/data/naturesaura/tags/blocks/nether_altar_wood.json b/src/generated/resources/data/naturesaura/tags/blocks/nether_altar_wood.json new file mode 100644 index 00000000..4fec4854 --- /dev/null +++ b/src/generated/resources/data/naturesaura/tags/blocks/nether_altar_wood.json @@ -0,0 +1,7 @@ +{ + "replace": false, + "values": [ + "minecraft:crimson_planks", + "minecraft:warped_planks" + ] +} \ No newline at end of file diff --git a/src/main/java/de/ellpeck/naturesaura/blocks/multi/Multiblocks.java b/src/main/java/de/ellpeck/naturesaura/blocks/multi/Multiblocks.java index 34321134..6bf3deff 100644 --- a/src/main/java/de/ellpeck/naturesaura/blocks/multi/Multiblocks.java +++ b/src/main/java/de/ellpeck/naturesaura/blocks/multi/Multiblocks.java @@ -7,6 +7,7 @@ import de.ellpeck.naturesaura.api.multiblock.IMultiblock; import de.ellpeck.naturesaura.api.multiblock.Matcher; import de.ellpeck.naturesaura.blocks.BlockNatureAltar; import de.ellpeck.naturesaura.blocks.ModBlocks; +import de.ellpeck.naturesaura.data.BlockTagProvider; import de.ellpeck.naturesaura.recipes.ModRecipes; import net.minecraft.block.Blocks; import net.minecraft.block.SaplingBlock; @@ -36,7 +37,7 @@ public final class Multiblocks { ALTAR_PATTERN, 'C', Blocks.RED_NETHER_BRICKS, 'B', Blocks.NETHER_BRICKS, - 'W', Blocks.CRIMSON_PLANKS, + 'W', Matcher.tag(Blocks.CRIMSON_PLANKS, BlockTagProvider.NETHER_ALTAR_WOOD), 'M', ModBlocks.GOLD_NETHER_BRICK, '0', ModBlocks.NATURE_ALTAR.getDefaultState().with(BlockNatureAltar.NETHER, true), ' ', Matcher.wildcard()); diff --git a/src/main/java/de/ellpeck/naturesaura/data/BlockTagProvider.java b/src/main/java/de/ellpeck/naturesaura/data/BlockTagProvider.java index 83d66408..4f0531bc 100644 --- a/src/main/java/de/ellpeck/naturesaura/data/BlockTagProvider.java +++ b/src/main/java/de/ellpeck/naturesaura/data/BlockTagProvider.java @@ -1,12 +1,19 @@ package de.ellpeck.naturesaura.data; +import de.ellpeck.naturesaura.NaturesAura; import de.ellpeck.naturesaura.blocks.ModBlocks; +import net.minecraft.block.Block; +import net.minecraft.block.Blocks; import net.minecraft.data.BlockTagsProvider; import net.minecraft.data.DataGenerator; import net.minecraft.tags.BlockTags; +import net.minecraft.util.ResourceLocation; import net.minecraftforge.common.Tags; public class BlockTagProvider extends BlockTagsProvider { + + public static final Tags.IOptionalNamedTag NETHER_ALTAR_WOOD = BlockTags.createOptional(new ResourceLocation(NaturesAura.MOD_ID, "nether_altar_wood")); + public BlockTagProvider(DataGenerator generatorIn) { super(generatorIn); } @@ -21,5 +28,6 @@ public class BlockTagProvider extends BlockTagsProvider { this.getOrCreateBuilder(BlockTags.SLABS).add(ModBlocks.ANCIENT_SLAB, ModBlocks.INFUSED_SLAB, ModBlocks.INFUSED_BRICK_SLAB); this.getOrCreateBuilder(Tags.Blocks.DIRT).add(ModBlocks.NETHER_GRASS); this.getOrCreateBuilder(BlockTags.SMALL_FLOWERS).add(ModBlocks.END_FLOWER, ModBlocks.AURA_BLOOM); + this.getOrCreateBuilder(NETHER_ALTAR_WOOD).add(Blocks.CRIMSON_PLANKS, Blocks.WARPED_PLANKS); } } diff --git a/src/main/resources/data/naturesaura/patchouli_books/book/en_us/entries/using/crimson_altar.json b/src/main/resources/data/naturesaura/patchouli_books/book/en_us/entries/using/crimson_altar.json index 9b015901..c25751e5 100644 --- a/src/main/resources/data/naturesaura/patchouli_books/book/en_us/entries/using/crimson_altar.json +++ b/src/main/resources/data/naturesaura/patchouli_books/book/en_us/entries/using/crimson_altar.json @@ -17,7 +17,7 @@ { "type": "multiblock", "multiblock_id": "naturesaura:nether_altar", - "text": "How to assemble the $(item)Crimson Altar$()" + "text": "How to assemble the $(item)Crimson Altar$(). The $(item)Crimson Planks$() can be replaced with $(item)Warped Planks$()." }, { "type": "crafting",