Skip to content

Commit

Permalink
fix: add raw tin/silver to raw_materials tag
Browse files Browse the repository at this point in the history
  • Loading branch information
MrTJP committed Mar 23, 2024
1 parent ee1606a commit 911ada0
Show file tree
Hide file tree
Showing 5 changed files with 27 additions and 2 deletions.
3 changes: 3 additions & 0 deletions core/src/main/java/mrtjp/projectred/core/init/CoreTags.java
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,9 @@ public class CoreTags {
public static final TagKey<Item> RED_ALLOY_INGOT_TAG = ItemTags.create(new ResourceLocation("forge:ingots/red_alloy"));
public static final TagKey<Item> ELECTROTINE_ALLOY_INGOT_TAG = ItemTags.create(new ResourceLocation("forge:ingots/electrotine_alloy"));

public static final TagKey<Item> RAW_TIN_TAG = ItemTags.create(new ResourceLocation("forge:raw_materials/tin"));
public static final TagKey<Item> RAW_SILVER_TAG = ItemTags.create(new ResourceLocation("forge:raw_materials/silver"));

public static final TagKey<Item> RUBY_GEM_TAG = ItemTags.create(new ResourceLocation("forge:gems/ruby"));
public static final TagKey<Item> SAPPHIRE_GEM_TAG = ItemTags.create(new ResourceLocation("forge:gems/sapphire"));
public static final TagKey<Item> PERIDOT_GEM_TAG = ItemTags.create(new ResourceLocation("forge:gems/peridot"));
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"values": [
"#forge:raw_materials/tin",
"#forge:raw_materials/silver"
]
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"values": [
"projectred_exploration:raw_silver"
]
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"values": [
"projectred_exploration:raw_tin"
]
}
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,7 @@

import javax.annotation.Nullable;

import static mrtjp.projectred.core.init.CoreTags.SILVER_INGOT_TAG;
import static mrtjp.projectred.core.init.CoreTags.TIN_INGOT_TAG;
import static mrtjp.projectred.core.init.CoreTags.*;
import static mrtjp.projectred.exploration.ProjectRedExploration.MOD_ID;
import static mrtjp.projectred.exploration.init.ExplorationBlocks.*;
import static mrtjp.projectred.exploration.init.ExplorationItems.*;
Expand All @@ -31,6 +30,11 @@ protected void addTags() {
.addTag(TIN_INGOT_TAG)
.addTag(SILVER_INGOT_TAG);

tag(Tags.Items.RAW_MATERIALS)
//Note: Defined in Core
.addTag(RAW_TIN_TAG)
.addTag(RAW_SILVER_TAG);

tag(Tags.Items.ORES)
.addTag(RUBY_ORES_BLOCK_ITEM_TAG)
.addTag(SAPPHIRE_ORES_BLOCK_ITEM_TAG)
Expand Down Expand Up @@ -75,6 +79,8 @@ protected void addTags() {
//Note: Defined in Core
tag(TIN_INGOT_TAG).add(TIN_INGOT_ITEM.get());
tag(SILVER_INGOT_TAG).add(SILVER_INGOT_ITEM.get());
tag(RAW_TIN_TAG).add(RAW_TIN_ITEM.get());
tag(RAW_SILVER_TAG).add(RAW_SILVER_ITEM.get());

tag(RUBY_ORES_BLOCK_ITEM_TAG).add(RUBY_ORE_BLOCK.get().asItem()).add(DEEPSLATE_RUBY_ORE_BLOCK.get().asItem());
tag(SAPPHIRE_ORES_BLOCK_ITEM_TAG).add(SAPPHIRE_ORE_BLOCK.get().asItem()).add(DEEPSLATE_SAPPHIRE_ORE_BLOCK.get().asItem());
Expand Down

0 comments on commit 911ada0

Please sign in to comment.