Skip to content

Commit

Permalink
feat: Allow warp stone to be enchanted with Mending #885
Browse files Browse the repository at this point in the history
  • Loading branch information
BlayTheNinth committed Aug 19, 2024
1 parent 0eb0edb commit 90821db
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"values": [
"waystones:warp_stone"
]
}
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@
import net.fabricmc.fabric.api.datagen.v1.provider.FabricTagProvider;
import net.minecraft.core.HolderLookup;
import net.minecraft.core.registries.Registries;
import net.minecraft.resources.ResourceLocation;
import net.minecraft.tags.TagKey;
import net.minecraft.world.item.Item;
import net.minecraft.world.level.block.Block;

Expand All @@ -19,6 +21,7 @@ public ModItemTagProvider(FabricDataOutput output, CompletableFuture<HolderLooku

@Override
protected void addTags(HolderLookup.Provider lookup) {
getOrCreateTagBuilder(TagKey.create(Registries.ITEM, ResourceLocation.withDefaultNamespace("enchantable/durability"))).add(ModItems.warpStone);
getOrCreateTagBuilder(ModItemTags.SCROLLS).add(ModItems.warpScroll, ModItems.returnScroll, ModItems.boundScroll);
getOrCreateTagBuilder(ModItemTags.WARP_SCROLLS).add(ModItems.warpScroll);
getOrCreateTagBuilder(ModItemTags.RETURN_SCROLLS).add(ModItems.returnScroll);
Expand Down

0 comments on commit 90821db

Please sign in to comment.