diff options
author | Linnea Gräf <nea@nea.moe> | 2024-11-20 20:36:16 +0100 |
---|---|---|
committer | Linnea Gräf <nea@nea.moe> | 2024-11-20 20:36:16 +0100 |
commit | a100d988f275c9ae434d641437e4807c1287a25f (patch) | |
tree | 3cf62a6c59331f76ef0d0203df9eefc1a3ee34aa /src/main/java/moe/nea/funnyteleporters/FunnyDropTableProvider.java | |
parent | e82ca08db0ec95130dd152fd8720c82adb82c89e (diff) | |
download | funny-teleporters-a100d988f275c9ae434d641437e4807c1287a25f.tar.gz funny-teleporters-a100d988f275c9ae434d641437e4807c1287a25f.tar.bz2 funny-teleporters-a100d988f275c9ae434d641437e4807c1287a25f.zip |
Make block drop osmething
Diffstat (limited to 'src/main/java/moe/nea/funnyteleporters/FunnyDropTableProvider.java')
-rw-r--r-- | src/main/java/moe/nea/funnyteleporters/FunnyDropTableProvider.java | 18 |
1 files changed, 18 insertions, 0 deletions
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<RegistryWrapper.WrapperLookup> registryLookup) { + super(dataOutput, registryLookup); + } + + @Override + public void generate() { + addDrop(FunnyRegistry.COLOURED_CHEST); + } +} |