Skip to content

Commit

Permalink
update copycats compat, fixes #11
Browse files Browse the repository at this point in the history
  • Loading branch information
Amronos committed Jul 13, 2024
1 parent 34ff30c commit fef2ccf
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 2 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
{
"replace": true,
"values": [
{
"id": "copycats:copycat_stairs",
"required": false
},
{
"id": "create_connected:copycat_stairs",
"required": false
}
]
}
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,8 @@ public ModItemTagGenerator(PackOutput p_275343_, CompletableFuture<HolderLookup.

@Override
protected void addTags(HolderLookup.Provider provider) {
this.tag(ForgeTags.Items.PLASTIC_SHEET)
this.tag(ForgeTags.Items.PLASTIC)
.addOptional(new ResourceLocation("pneumaticcraft", "plastic"))
.addOptional(new ResourceLocation("tfmg", "plastic_sheet"))
;


Expand All @@ -44,5 +43,10 @@ protected void addTags(HolderLookup.Provider provider) {
this.tag(CopycatsTags.Items.COPYCAT_SLAB)
.addOptional(new ResourceLocation("create_dd", "copycat_slab"))
;
this.tag(CopycatsTags.Items.COPYCAT_STAIRS)
.replace(true)
.addOptional(new ResourceLocation("copycats", "copycat_stairs"))
.addOptional(new ResourceLocation("create_connected", "copycat_stairs"))
;
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ public static class Items {
public static final TagKey<Item> COPYCAT_BOX = tag("copycat_box");
public static final TagKey<Item> COPYCAT_CATWALK = tag("copycat_catwalk");
public static final TagKey<Item> COPYCAT_SLAB = tag("copycat_slab");
public static final TagKey<Item> COPYCAT_STAIRS = tag("copycat_stairs");

private static TagKey<Item> tag(String name) {
return ItemTags.create(new ResourceLocation("copycats", name));
Expand Down

0 comments on commit fef2ccf

Please sign in to comment.