Skip to content

Commit

Permalink
use customitem
Browse files Browse the repository at this point in the history
  • Loading branch information
chochem committed Dec 24, 2024
1 parent eb37df5 commit 5caecd4
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/main/java/com/dreammaster/scripts/ScriptEFR.java
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,13 @@
import static gregtech.api.enums.Mods.EtFuturumRequiem;
import static gregtech.api.enums.Mods.Minecraft;
import static gregtech.api.enums.Mods.Thaumcraft;
import static gregtech.api.util.GTModHandler.getModItem;

import java.util.Arrays;
import java.util.List;

import com.dreammaster.recipes.CustomItem;

import gregtech.api.enums.ItemList;
import gregtech.api.util.GTModHandler;

Expand Down Expand Up @@ -56,7 +59,8 @@ public void loadRecipes() {
for (int i = 0; i < 16; i++) {
addShapelessRecipe(
GTModHandler.getModItem(EtFuturumRequiem.ID, "banner", 1L, i),
createItemStack(Thaumcraft.ID, "blockWoodenDevice", 1, 8, "{color:" + i + "b}", missing));
new CustomItem.NBTItem(getModItem(Thaumcraft.ID, "blockWoodenDevice", 1, 8))
.setNBT("{color:" + i + "b}"));
addShapelessRecipe(
createItemStack(Thaumcraft.ID, "blockWoodenDevice", 1, 8, "{color:" + i + "b}", missing),
GTModHandler.getModItem(EtFuturumRequiem.ID, "banner", 1L, i));
Expand Down

0 comments on commit 5caecd4

Please sign in to comment.