Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
"item": "hexcasting:charged_amethyst"
},
"D": {
"tag": "minecraft:creeper_drop_music_discs"
"tag": "c:music_discs"
},
"F": {
"tag": "c:ingots/gold"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@
import net.minecraft.advancements.critereon.ItemPredicate;
import net.minecraft.core.HolderLookup;
import net.minecraft.core.registries.BuiltInRegistries;
import net.minecraft.core.registries.Registries;
import net.minecraft.data.PackOutput;
import net.minecraft.data.recipes.*;
import net.minecraft.resources.ResourceLocation;
Expand Down Expand Up @@ -155,9 +156,8 @@ public void buildRecipes(RecipeOutput recipes) {
ShapedRecipeBuilder.shaped(RecipeCategory.TOOLS, HexItems.ARTIFACT)
.define('F', ingredients.goldIngot())
.define('A', HexItems.CHARGED_AMETHYST)
// why in god's name does minecraft have two different places for item tags
// TODO port: check if good for music discs
.define('D', ItemTags.CREEPER_DROP_MUSIC_DISCS)
// 1.21 removed the vanilla music discs tag so we need to use this instead
.define('D', TagKey.create(Registries.ITEM, ResourceLocation.fromNamespaceAndPath("c","music_discs")))
.pattern(" F ")
.pattern("FAF")
.pattern(" D ")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
"item": "hexcasting:charged_amethyst"
},
"D": {
"tag": "minecraft:creeper_drop_music_discs"
"tag": "c:music_discs"
},
"F": [
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
"item": "hexcasting:charged_amethyst"
},
"D": {
"tag": "minecraft:creeper_drop_music_discs"
"tag": "c:music_discs"
},
"F": {
"tag": "c:ingots/gold"
Expand Down
Loading