VanillaPlusPlusFabric/scripts/rope.zs
2025-01-03 18:29:29 -05:00

15 lines
844 B
Text

import crafttweaker.api.recipe.replacement.Replacer;
import crafttweaker.api.predicate.TagPredicate;
import crafttweaker.api.tag.type.KnownTag;
import crafttweaker.api.item.ItemDefinition;
import crafttweaker.api.ingredient.IIngredient;
var ropeTag as KnownTag<ItemDefinition>;
ropeTag = <tag:items:vpp:rope>;
Replacer.create()
.replace<IIngredient>(<recipecomponent:crafttweaker:input/ingredients>, <item:dustydecorations:rope>, ropeTag.asIIngredient())
.replace<IIngredient>(<recipecomponent:crafttweaker:input/ingredients>, <item:beautify:rope>, ropeTag.asIIngredient())
.replace<IIngredient>(<recipecomponent:crafttweaker:input/ingredients>, <item:farmersdelight:rope>, ropeTag.asIIngredient())
.replace<IIngredient>(<recipecomponent:crafttweaker:input/ingredients>, <item:supplementaries:rope>, ropeTag.asIIngredient())
.execute();