Skip to content

Commit

Permalink
1.20.1
Browse files Browse the repository at this point in the history
4.2.7

Fixed missing bow tag
Sorted duplication in all torch tags
  • Loading branch information
xanthian committed Feb 11, 2024
1 parent e75d8fd commit 16cf30e
Show file tree
Hide file tree
Showing 19 changed files with 93 additions and 93 deletions.
2 changes: 1 addition & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ loader_version=0.15.6
#Fabric api
fabric_version=0.91.0+1.20.1
# Mod Properties
mod_version=4.2.6
mod_version=4.2.7
maven_group=xanthian
archives_base_name=vsas

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
"replace": false,
"values": [
"#vsas:soul_campfires",
"#vsas:soul_torches"
"#vsas:soul_torches",
"#vsas:wall_soul_torches"
]
}
18 changes: 4 additions & 14 deletions src/main/generated/data/vsas/tags/blocks/redstone_torches.json
Original file line number Diff line number Diff line change
@@ -1,25 +1,15 @@
{
"replace": false,
"values": [
"vsas:torches/wall_spruce_redstone_torch",
"vsas:torches/wall_acacia_redstone_torch",
"vsas:torches/bamboo_redstone_torch",
"vsas:torches/wall_crimson_redstone_torch",
"vsas:torches/warped_redstone_torch",
"vsas:torches/wall_mangrove_redstone_torch",
"vsas:torches/crimson_redstone_torch",
"vsas:torches/cherry_redstone_torch",
"vsas:torches/dark_oak_redstone_torch",
"vsas:torches/wall_birch_redstone_torch",
"vsas:torches/bamboo_redstone_torch",
"vsas:torches/birch_redstone_torch",
"vsas:torches/jungle_redstone_torch",
"vsas:torches/wall_cherry_redstone_torch",
"vsas:torches/wall_warped_redstone_torch",
"vsas:torches/acacia_redstone_torch",
"vsas:torches/wall_bamboo_redstone_torch",
"vsas:torches/spruce_redstone_torch",
"vsas:torches/wall_dark_oak_redstone_torch",
"vsas:torches/mangrove_redstone_torch",
"vsas:torches/wall_jungle_redstone_torch"
"vsas:torches/warped_redstone_torch",
"vsas:torches/crimson_redstone_torch",
"vsas:torches/cherry_redstone_torch"
]
}
12 changes: 1 addition & 11 deletions src/main/generated/data/vsas/tags/blocks/soul_torches.json
Original file line number Diff line number Diff line change
@@ -1,21 +1,11 @@
{
"replace": false,
"values": [
"vsas:torches/wall_warped_soul_torch",
"vsas:torches/wall_spruce_soul_torch",
"vsas:torches/wall_acacia_soul_torch",
"vsas:torches/wall_mangrove_soul_torch",
"vsas:torches/birch_soul_torch",
"vsas:torches/spruce_soul_torch",
"vsas:torches/warped_soul_torch",
"vsas:torches/wall_cherry_soul_torch",
"vsas:torches/crimson_soul_torch",
"vsas:torches/wall_dark_oak_soul_torch",
"vsas:torches/wall_bamboo_soul_torch",
"vsas:torches/wall_crimson_soul_torch",
"vsas:torches/wall_jungle_soul_torch",
"vsas:torches/birch_soul_torch",
"vsas:torches/jungle_soul_torch",
"vsas:torches/wall_birch_soul_torch",
"vsas:torches/bamboo_soul_torch",
"vsas:torches/dark_oak_soul_torch",
"vsas:torches/acacia_soul_torch",
Expand Down
12 changes: 1 addition & 11 deletions src/main/generated/data/vsas/tags/blocks/torches.json
Original file line number Diff line number Diff line change
@@ -1,25 +1,15 @@
{
"replace": false,
"values": [
"vsas:torches/wall_cherry_torch",
"vsas:torches/birch_torch",
"vsas:torches/mangrove_torch",
"vsas:torches/cherry_torch",
"vsas:torches/crimson_torch",
"vsas:torches/acacia_torch",
"vsas:torches/wall_crimson_torch",
"vsas:torches/wall_jungle_torch",
"vsas:torches/wall_acacia_torch",
"vsas:torches/wall_mangrove_torch",
"vsas:torches/birch_torch",
"vsas:torches/wall_dark_oak_torch",
"vsas:torches/wall_spruce_torch",
"vsas:torches/wall_warped_torch",
"vsas:torches/warped_torch",
"vsas:torches/wall_birch_torch",
"vsas:torches/dark_oak_torch",
"vsas:torches/jungle_torch",
"vsas:torches/bamboo_torch",
"vsas:torches/wall_bamboo_torch",
"vsas:torches/spruce_torch"
]
}
12 changes: 7 additions & 5 deletions src/main/generated/data/vsas/tags/blocks/wall_soul_torches.json
Original file line number Diff line number Diff line change
@@ -1,13 +1,15 @@
{
"replace": false,
"values": [
"vsas:torches/wall_warped_soul_torch",
"vsas:torches/wall_spruce_soul_torch",
"vsas:torches/wall_acacia_soul_torch",
"vsas:torches/wall_mangrove_soul_torch",
"vsas:torches/wall_cherry_soul_torch",
"vsas:torches/wall_dark_oak_soul_torch",
"vsas:torches/wall_birch_soul_torch",
"vsas:torches/wall_bamboo_soul_torch",
"vsas:torches/wall_crimson_soul_torch",
"vsas:torches/wall_dark_oak_soul_torch",
"vsas:torches/wall_jungle_soul_torch",
"vsas:torches/wall_mangrove_soul_torch",
"vsas:torches/wall_spruce_soul_torch",
"vsas:torches/wall_warped_soul_torch"
"vsas:torches/wall_jungle_soul_torch"
]
}
15 changes: 15 additions & 0 deletions src/main/generated/data/vsas/tags/items/bows.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
{
"replace": false,
"values": [
"vsas:bows/warped_bow",
"vsas:bows/cherry_bow",
"vsas:bows/bamboo_bow",
"vsas:bows/jungle_bow",
"vsas:bows/birch_bow",
"vsas:bows/mangrove_bow",
"vsas:bows/acacia_bow",
"vsas:bows/crimson_bow",
"vsas:bows/oak_bow",
"vsas:bows/dark_oak_bow"
]
}
18 changes: 4 additions & 14 deletions src/main/generated/data/vsas/tags/items/redstone_torches.json
Original file line number Diff line number Diff line change
@@ -1,25 +1,15 @@
{
"replace": false,
"values": [
"vsas:torches/spruce_redstone_torch",
"vsas:torches/acacia_redstone_torch",
"vsas:torches/bamboo_redstone_torch",
"vsas:torches/crimson_redstone_torch",
"vsas:torches/warped_redstone_torch",
"vsas:torches/mangrove_redstone_torch",
"vsas:torches/crimson_redstone_torch",
"vsas:torches/cherry_redstone_torch",
"vsas:torches/dark_oak_redstone_torch",
"vsas:torches/birch_redstone_torch",
"vsas:torches/bamboo_redstone_torch",
"vsas:torches/birch_redstone_torch",
"vsas:torches/jungle_redstone_torch",
"vsas:torches/cherry_redstone_torch",
"vsas:torches/warped_redstone_torch",
"vsas:torches/acacia_redstone_torch",
"vsas:torches/bamboo_redstone_torch",
"vsas:torches/spruce_redstone_torch",
"vsas:torches/dark_oak_redstone_torch",
"vsas:torches/mangrove_redstone_torch",
"vsas:torches/jungle_redstone_torch"
"vsas:torches/warped_redstone_torch",
"vsas:torches/crimson_redstone_torch",
"vsas:torches/cherry_redstone_torch"
]
}
12 changes: 1 addition & 11 deletions src/main/generated/data/vsas/tags/items/soul_torches.json
Original file line number Diff line number Diff line change
@@ -1,21 +1,11 @@
{
"replace": false,
"values": [
"vsas:torches/warped_soul_torch",
"vsas:torches/spruce_soul_torch",
"vsas:torches/acacia_soul_torch",
"vsas:torches/mangrove_soul_torch",
"vsas:torches/birch_soul_torch",
"vsas:torches/spruce_soul_torch",
"vsas:torches/warped_soul_torch",
"vsas:torches/cherry_soul_torch",
"vsas:torches/crimson_soul_torch",
"vsas:torches/dark_oak_soul_torch",
"vsas:torches/bamboo_soul_torch",
"vsas:torches/crimson_soul_torch",
"vsas:torches/jungle_soul_torch",
"vsas:torches/birch_soul_torch",
"vsas:torches/jungle_soul_torch",
"vsas:torches/birch_soul_torch",
"vsas:torches/bamboo_soul_torch",
"vsas:torches/dark_oak_soul_torch",
"vsas:torches/acacia_soul_torch",
Expand Down
12 changes: 1 addition & 11 deletions src/main/generated/data/vsas/tags/items/torches.json
Original file line number Diff line number Diff line change
@@ -1,25 +1,15 @@
{
"replace": false,
"values": [
"vsas:torches/cherry_torch",
"vsas:torches/birch_torch",
"vsas:torches/mangrove_torch",
"vsas:torches/cherry_torch",
"vsas:torches/crimson_torch",
"vsas:torches/acacia_torch",
"vsas:torches/crimson_torch",
"vsas:torches/jungle_torch",
"vsas:torches/acacia_torch",
"vsas:torches/mangrove_torch",
"vsas:torches/birch_torch",
"vsas:torches/dark_oak_torch",
"vsas:torches/spruce_torch",
"vsas:torches/warped_torch",
"vsas:torches/warped_torch",
"vsas:torches/birch_torch",
"vsas:torches/dark_oak_torch",
"vsas:torches/jungle_torch",
"vsas:torches/bamboo_torch",
"vsas:torches/bamboo_torch",
"vsas:torches/spruce_torch"
]
}
15 changes: 15 additions & 0 deletions src/main/generated/data/vsas/tags/items/wall_soul_torches.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
{
"replace": false,
"values": [
"vsas:torches/warped_soul_torch",
"vsas:torches/spruce_soul_torch",
"vsas:torches/acacia_soul_torch",
"vsas:torches/mangrove_soul_torch",
"vsas:torches/cherry_soul_torch",
"vsas:torches/dark_oak_soul_torch",
"vsas:torches/birch_soul_torch",
"vsas:torches/bamboo_soul_torch",
"vsas:torches/crimson_soul_torch",
"vsas:torches/jungle_soul_torch"
]
}
11 changes: 11 additions & 0 deletions src/main/java/net/xanthian/vsas/ClientInitialise.java
Original file line number Diff line number Diff line change
Expand Up @@ -96,5 +96,16 @@ public void onInitializeClient() {
for (Block torch : Torches.MOD_TORCHES.values()) {
BlockRenderLayerMap.INSTANCE.putBlock(torch, RenderLayer.getCutout());
}
for (Block redstonetorch : RedstoneTorches.MOD_REDSTONE_WALL_TORCHES.values()) {
BlockRenderLayerMap.INSTANCE.putBlock(redstonetorch, RenderLayer.getCutout());
}

for (Block soultorch : SoulTorches.MOD_SOUL_WALL_TORCHES.values()) {
BlockRenderLayerMap.INSTANCE.putBlock(soultorch, RenderLayer.getCutout());
}

for (Block torch : Torches.MOD_WALL_TORCHES.values()) {
BlockRenderLayerMap.INSTANCE.putBlock(torch, RenderLayer.getCutout());
}
}
}
3 changes: 2 additions & 1 deletion src/main/java/net/xanthian/vsas/blocks/RedstoneTorches.java
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@ public class RedstoneTorches {
public static final Block WARPED_REDSTONE_TORCH = new VariantRedstoneTorchBlock();
public static final Block WALL_WARPED_REDSTONE_TORCH = new VariantWallRedstoneTorchBlock();
public static Map<Identifier, Block> MOD_REDSTONE_TORCHES = Maps.newHashMap();
public static Map<Identifier, Block> MOD_REDSTONE_WALL_TORCHES = Maps.newHashMap();

public static void registerRedstoneTorchBlocks() {
initTorchBlock("torches/acacia_redstone_torch", ACACIA_REDSTONE_TORCH, "torches/wall_acacia_redstone_torch", WALL_ACACIA_REDSTONE_TORCH);
Expand All @@ -55,7 +56,7 @@ private static void initTorchBlock(String torchName, Block torch, String wallTor
Identifier identifier = new Identifier(Initialise.MOD_ID, torchName);
Identifier identifier2 = new Identifier(Initialise.MOD_ID, wallTorchName);
MOD_REDSTONE_TORCHES.put(identifier, torch);
MOD_REDSTONE_TORCHES.put(identifier2, wallTorch);
MOD_REDSTONE_WALL_TORCHES.put(identifier2, wallTorch);
Registry.register(Registries.BLOCK, new Identifier(Initialise.MOD_ID, torchName), torch);
Registry.register(Registries.BLOCK, new Identifier(Initialise.MOD_ID, wallTorchName), wallTorch);
Registry.register(Registries.ITEM, new Identifier(Initialise.MOD_ID, torchName), new VerticallyAttachableBlockItem(torch, wallTorch, new FabricItemSettings(), Direction.DOWN));
Expand Down
3 changes: 2 additions & 1 deletion src/main/java/net/xanthian/vsas/blocks/SoulTorches.java
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@ public class SoulTorches {
public static final Block WARPED_SOUL_TORCH = new VariantSoulTorchBlock();
public static final Block WALL_WARPED_SOUL_TORCH = new VariantWallSoulTorchBlock();
public static Map<Identifier, Block> MOD_SOUL_TORCHES = Maps.newHashMap();
public static Map<Identifier, Block> MOD_SOUL_WALL_TORCHES = Maps.newHashMap();

public static void registerSoulTorchBlocks() {
initTorchBlock("torches/acacia_soul_torch", ACACIA_SOUL_TORCH, "torches/wall_acacia_soul_torch", WALL_ACACIA_SOUL_TORCH);
Expand All @@ -55,7 +56,7 @@ private static void initTorchBlock(String torchName, Block torch, String wallTor
Identifier identifier = new Identifier(Initialise.MOD_ID, torchName);
Identifier identifier2 = new Identifier(Initialise.MOD_ID, wallTorchName);
MOD_SOUL_TORCHES.put(identifier, torch);
MOD_SOUL_TORCHES.put(identifier2, wallTorch);
MOD_SOUL_WALL_TORCHES.put(identifier2, wallTorch);
Registry.register(Registries.BLOCK, new Identifier(Initialise.MOD_ID, torchName), torch);
Registry.register(Registries.BLOCK, new Identifier(Initialise.MOD_ID, wallTorchName), wallTorch);
Registry.register(Registries.ITEM, new Identifier(Initialise.MOD_ID, torchName), new VerticallyAttachableBlockItem(torch, wallTorch, new FabricItemSettings(), Direction.DOWN));
Expand Down
3 changes: 2 additions & 1 deletion src/main/java/net/xanthian/vsas/blocks/Torches.java
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
public class Torches {

public static Map<Identifier, Block> MOD_TORCHES = Maps.newHashMap();
public static Map<Identifier, Block> MOD_WALL_TORCHES = Maps.newHashMap();
public static final Block ACACIA_TORCH = new VariantTorchBlock();
public static final Block WALL_ACACIA_TORCH = new VariantWallTorchBlock();
public static final Block BAMBOO_TORCH = new VariantTorchBlock();
Expand Down Expand Up @@ -55,7 +56,7 @@ private static void initTorchBlock(String torchName, Block torch, String wallTor
Identifier identifier = new Identifier(Initialise.MOD_ID, torchName);
Identifier identifier2 = new Identifier(Initialise.MOD_ID, wallTorchName);
MOD_TORCHES.put(identifier, torch);
MOD_TORCHES.put(identifier2, wallTorch);
MOD_WALL_TORCHES.put(identifier2, wallTorch);
Registry.register(Registries.BLOCK, new Identifier(Initialise.MOD_ID, torchName), torch);
Registry.register(Registries.BLOCK, new Identifier(Initialise.MOD_ID, wallTorchName), wallTorch);
Registry.register(Registries.ITEM, new Identifier(Initialise.MOD_ID, torchName), new VerticallyAttachableBlockItem(torch, wallTorch, new FabricItemSettings(), Direction.DOWN));
Expand Down
14 changes: 4 additions & 10 deletions src/main/java/net/xanthian/vsas/datagen/BlockTagGenerator.java
Original file line number Diff line number Diff line change
Expand Up @@ -81,22 +81,16 @@ protected void configure(RegistryWrapper.WrapperLookup arg) {
getOrCreateTagBuilder(SOUL_TORCHES)
.add(block);
}
for (Block block : SoulTorches.MOD_SOUL_WALL_TORCHES.values()) {
getOrCreateTagBuilder(WALL_SOUL_TORCHES)
.add(block);
}

for (Block block : Torches.MOD_TORCHES.values()) {
getOrCreateTagBuilder(TORCHES)
.add(block);
}

getOrCreateTagBuilder(WALL_SOUL_TORCHES)
.add(SoulTorches.WALL_ACACIA_SOUL_TORCH)
.add(SoulTorches.WALL_BIRCH_SOUL_TORCH)
.add(SoulTorches.WALL_CRIMSON_SOUL_TORCH)
.add(SoulTorches.WALL_DARK_OAK_SOUL_TORCH)
.add(SoulTorches.WALL_JUNGLE_SOUL_TORCH)
.add(SoulTorches.WALL_MANGROVE_SOUL_TORCH)
.add(SoulTorches.WALL_SPRUCE_SOUL_TORCH)
.add(SoulTorches.WALL_WARPED_SOUL_TORCH);

getOrCreateTagBuilder(BlockTags.AXE_MINEABLE)
.addTag(LADDERS)
.addTag(CAMPFIRES)
Expand Down
11 changes: 10 additions & 1 deletion src/main/java/net/xanthian/vsas/datagen/ItemTagGenerator.java
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@
public class ItemTagGenerator extends FabricTagProvider.ItemTagProvider {

private static final TagKey<Item> ARROWS = TagKey.of(Registries.ITEM.getKey(), new Identifier(MOD_ID, "arrows"));
private static final TagKey<Item> BOWS = TagKey.of(Registries.ITEM.getKey(), new Identifier(MOD_ID, "bows"));
private static final TagKey<Item> WOODEN_AXES = TagKey.of(Registries.ITEM.getKey(), new Identifier(MOD_ID, "wooden_axes"));
private static final TagKey<Item> STONE_AXES = TagKey.of(Registries.ITEM.getKey(), new Identifier(MOD_ID, "stone_axes"));
private static final TagKey<Item> IRON_AXES = TagKey.of(Registries.ITEM.getKey(), new Identifier(MOD_ID, "iron_axes"));
Expand Down Expand Up @@ -48,6 +49,7 @@ public class ItemTagGenerator extends FabricTagProvider.ItemTagProvider {
private static final TagKey<Item> NETHERITE_SHOVELS = TagKey.of(Registries.ITEM.getKey(), new Identifier(MOD_ID, "netherite_shovels"));
private static final TagKey<Item> SOUL_CAMPFIRES = TagKey.of(Registries.ITEM.getKey(), new Identifier(MOD_ID, "soul_campfires"));
private static final TagKey<Item> SOUL_TORCHES = TagKey.of(Registries.ITEM.getKey(), new Identifier(MOD_ID, "soul_torches"));
private static final TagKey<Item> WALL_SOUL_TORCHES = TagKey.of(Registries.ITEM.getKey(), new Identifier(MOD_ID, "wall_soul_torches"));
private static final TagKey<Item> STONE_SWORDS = TagKey.of(Registries.ITEM.getKey(), new Identifier(MOD_ID, "stone_swords"));
private static final TagKey<Item> NETHERITE_SWORDS = TagKey.of(Registries.ITEM.getKey(), new Identifier(MOD_ID, "netherite_swords"));
private static final TagKey<Item> TORCHES = TagKey.of(Registries.ITEM.getKey(), new Identifier(MOD_ID, "torches"));
Expand Down Expand Up @@ -130,6 +132,10 @@ protected void configure(RegistryWrapper.WrapperLookup arg) {
getOrCreateTagBuilder(SOUL_TORCHES)
.add(block.asItem());
}
for (Block block : SoulTorches.MOD_SOUL_WALL_TORCHES.values()) {
getOrCreateTagBuilder(WALL_SOUL_TORCHES)
.add(block.asItem());
}

for (Block block : Torches.MOD_TORCHES.values()) {
getOrCreateTagBuilder(TORCHES)
Expand Down Expand Up @@ -157,6 +163,8 @@ protected void configure(RegistryWrapper.WrapperLookup arg) {
}

for (Item item : Bows.MOD_BOWS.values()) {
getOrCreateTagBuilder(BOWS)
.add(item);
getOrCreateTagBuilder(C_BOWS)
.add(item);
getOrCreateTagBuilder(ARCHER_AFHA)
Expand Down Expand Up @@ -547,7 +555,8 @@ protected void configure(RegistryWrapper.WrapperLookup arg) {

getOrCreateTagBuilder(ItemTags.PIGLIN_REPELLENTS)
.addTag(SOUL_CAMPFIRES)
.addTag(SOUL_TORCHES);
.addTag(SOUL_TORCHES)
.addTag(WALL_SOUL_TORCHES);


getOrCreateTagBuilder(C_JOB_SITE)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -103,6 +103,7 @@ public void generateTranslations(TranslationBuilder translationBuilder) {
translationBuilder.add(block, generateBlockDisplayName("torches/", block));
}


for (Block block : Torches.MOD_TORCHES.values()) {
translationBuilder.add(block, generateBlockDisplayName("torches/", block));
}
Expand Down
Loading

0 comments on commit 16cf30e

Please sign in to comment.