From 77acfb40e520bfdec1c914a24784ae8557e0aeef Mon Sep 17 00:00:00 2001 From: Sollace Date: Thu, 16 Apr 2020 00:45:18 +0200 Subject: [PATCH] Add the standard files for fabric to load us --- gradle.properties | 2 +- src/main/resources/fabric.mod.json | 28 ++++++++++++++++++++++++++ src/main/resources/mcmod.info | 16 --------------- src/main/resources/unicopia.mixin.json | 25 +++++++++++++++++++++++ 4 files changed, 54 insertions(+), 17 deletions(-) create mode 100644 src/main/resources/fabric.mod.json delete mode 100644 src/main/resources/mcmod.info create mode 100644 src/main/resources/unicopia.mixin.json diff --git a/gradle.properties b/gradle.properties index 82cefea0..87535fd0 100644 --- a/gradle.properties +++ b/gradle.properties @@ -9,7 +9,7 @@ org.gradle.daemon=false # Mod Properties group=com.minelittlepony - displayname=Unicopia Redux + displayname=Unicopia authors=Sollace description=Magical Abilities for Mine Little Pony! version=3 diff --git a/src/main/resources/fabric.mod.json b/src/main/resources/fabric.mod.json new file mode 100644 index 00000000..0fbd19fd --- /dev/null +++ b/src/main/resources/fabric.mod.json @@ -0,0 +1,28 @@ +{ + "schemaVersion": 1, + "id": "unicopia", + "version": "${version}", + "name": "Unicopia", + "description": "Magical Abilities for Mine Little Pony!", + "authors": [ "Sollace" ], + "mixins": [ + "unicopia.mixin.json" + ], + "license": "MIT", + "environment": "*", + "entrypoints": { + "main": [ + "com.minelittlepony.unicopia.Unicopia" + ], + "client": [ + "com.minelittlepony.unicopia.client.UnicopiaClient" + ] + }, + "depends": { + "fabricloader": ">=0.4.0", + "fabric-api-base": ">=0.1.0", + "fabric-events-lifecycle-v0": ">=0.1.0", + "fabric-keybindings-v0": ">=0.1.0", + "fabric-rendering-v1": ">=0.1.0" + } +} diff --git a/src/main/resources/mcmod.info b/src/main/resources/mcmod.info deleted file mode 100644 index b86a4101..00000000 --- a/src/main/resources/mcmod.info +++ /dev/null @@ -1,16 +0,0 @@ -[ - { - "modid": "unicopia", - "name": "${name}", - "description": "${description}", - "version": "${version}", - "mcversion": "${mcversion}", - "url": "", - "updateUrl": "", - "authorList": ["${author}"], - "credits": "", - "logoFile": "", - "screenshots": [], - "dependencies": [] - } -] diff --git a/src/main/resources/unicopia.mixin.json b/src/main/resources/unicopia.mixin.json new file mode 100644 index 00000000..76e5b42e --- /dev/null +++ b/src/main/resources/unicopia.mixin.json @@ -0,0 +1,25 @@ +{ + "required": true, + "minVersion": "0.7", + "package": "com.minelittlepony.unicopia.mixin", + "refmap": "unicopia.client.mixin.refmap.json", + "compatibilityLevel": "JAVA_8", + "main": [ + "MixinEntity", + "MixinFarmlandBlock", + "MixinHoeItem", + "MixinItemEntity", + "MixinPlayerEntity", + "MixinProjectileEntity", + "Walker" + ], + "client": [ + "client.MixinCamera", + "client.MixinGameRenderer", + "client.MixinKeyboardInput", + "client.MixinMouse" + ], + "injectors": { + "defaultRequire": 1 + } +}