diff options
author | Linnea Gräf <nea@nea.moe> | 2024-04-01 21:57:16 +0200 |
---|---|---|
committer | Linnea Gräf <nea@nea.moe> | 2024-04-01 21:57:16 +0200 |
commit | ab30c1128b42eed24d0decf9ecf9e6a2c98a79e2 (patch) | |
tree | e0b23161678b97c09e89fda00dfa5f3d7569238f /src/main/kotlin/moe/nea/potatocrime/PotatoCrime.kt | |
parent | 0fe5e487922a6ff50b9c415b9384157fbd64b2b5 (diff) | |
download | potato-crimes-ab30c1128b42eed24d0decf9ecf9e6a2c98a79e2.tar.gz potato-crimes-ab30c1128b42eed24d0decf9ecf9e6a2c98a79e2.tar.bz2 potato-crimes-ab30c1128b42eed24d0decf9ecf9e6a2c98a79e2.zip |
Add potato guard
Diffstat (limited to 'src/main/kotlin/moe/nea/potatocrime/PotatoCrime.kt')
-rw-r--r-- | src/main/kotlin/moe/nea/potatocrime/PotatoCrime.kt | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/main/kotlin/moe/nea/potatocrime/PotatoCrime.kt b/src/main/kotlin/moe/nea/potatocrime/PotatoCrime.kt index a421e35..5d0cddc 100644 --- a/src/main/kotlin/moe/nea/potatocrime/PotatoCrime.kt +++ b/src/main/kotlin/moe/nea/potatocrime/PotatoCrime.kt @@ -1,7 +1,9 @@ package moe.nea.potatocrime +import moe.nea.potatocrime.entity.PotatoGuardEntity import moe.nea.potatocrime.registry.PotatoRegistry import net.fabricmc.api.ModInitializer +import net.fabricmc.fabric.api.`object`.builder.v1.entity.FabricDefaultAttributeRegistry import org.slf4j.LoggerFactory object PotatoCrime : ModInitializer { @@ -15,5 +17,6 @@ object PotatoCrime : ModInitializer { // Proceed with mild caution. logger.info("Hello Fabric world!") PotatoRegistry.registerAll() + FabricDefaultAttributeRegistry.register(PotatoRegistry.potatoGuard, PotatoGuardEntity.createMobAttributes()) } }
\ No newline at end of file |