From a100d988f275c9ae434d641437e4807c1287a25f Mon Sep 17 00:00:00 2001 From: Linnea Gräf Date: Wed, 20 Nov 2024 20:36:16 +0100 Subject: Make block drop osmething --- .../nea/funnyteleporters/FunnyDropTableProvider.java | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 src/main/java/moe/nea/funnyteleporters/FunnyDropTableProvider.java (limited to 'src/main/java/moe/nea/funnyteleporters/FunnyDropTableProvider.java') diff --git a/src/main/java/moe/nea/funnyteleporters/FunnyDropTableProvider.java b/src/main/java/moe/nea/funnyteleporters/FunnyDropTableProvider.java new file mode 100644 index 0000000..cf2643a --- /dev/null +++ b/src/main/java/moe/nea/funnyteleporters/FunnyDropTableProvider.java @@ -0,0 +1,18 @@ +package moe.nea.funnyteleporters; + +import net.fabricmc.fabric.api.datagen.v1.FabricDataOutput; +import net.fabricmc.fabric.api.datagen.v1.provider.FabricBlockLootTableProvider; +import net.minecraft.registry.RegistryWrapper; + +import java.util.concurrent.CompletableFuture; + +public class FunnyDropTableProvider extends FabricBlockLootTableProvider { + protected FunnyDropTableProvider(FabricDataOutput dataOutput, CompletableFuture registryLookup) { + super(dataOutput, registryLookup); + } + + @Override + public void generate() { + addDrop(FunnyRegistry.COLOURED_CHEST); + } +} -- cgit