From 963900a65dec74495b3da7cfdc424f952a93aadd Mon Sep 17 00:00:00 2001 From: TheBrokenRail Date: Sun, 8 Mar 2020 11:34:47 -0400 Subject: [PATCH] 1.0.12 Update Mappings Add API Docs --- CHANGELOG.md | 4 ++ README.md | 13 ++-- gradle.properties | 4 +- .../assets/sorcerycraft/lang/en_us.json | 44 ++++++------- src/main/resources/fabric.mod.json | 62 +++++++++---------- src/main/resources/sorcerycraft.mixins.json | 26 ++++---- 6 files changed, 79 insertions(+), 74 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 1085941..19b81f6 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,9 @@ ### Changelog +**1.0.12** +* Update Mappings +* Add API Docs + **1.0.11** * Allow Spells to Affect Blocks * Add Cooling Spell diff --git a/README.md b/README.md index e1782a3..1d17bf0 100644 --- a/README.md +++ b/README.md @@ -83,18 +83,18 @@ This removes the specified spell from the item in the player's main hand. 1. Add Dependency to Gradle ```gradle repositories { - maven { url 'https://jitpack.io' } + maven { url 'https://jitpack.io' } } dependencies { - modImplementation 'com.thebrokenrail:sorcerycraft:VERSION' + modImplementation 'com.thebrokenrail:sorcerycraft:VERSION' } ``` 2. Add Dependency to ```fabric.mod.json``` ```json { - "depends": { - "sorcerycraft": "VERSION" - } + "depends": { + "sorcerycraft": "VERSION" + } } ``` 3. Create a class extending ```com.thebrokenrail.sorcerycraft.spell.registry.Spell``` @@ -122,6 +122,7 @@ This removes the specified spell from the item in the player's main hand. @Override public ItemStack getItemCost() { // Return the item(s) required to make ExampleSpell in a Casting Table + // Return ItemStack.EMPTY if an item is not required } @Override @@ -142,7 +143,7 @@ This removes the specified spell from the item in the player's main hand. 5. Add Spell Translation ```json { - "spell.modid.example_spell": "Example" + "spell.modid.example_spell": "Example" } ``` diff --git a/gradle.properties b/gradle.properties index 3a23bcb..2ddb697 100644 --- a/gradle.properties +++ b/gradle.properties @@ -6,11 +6,11 @@ org.gradle.jvmargs = -Xmx1G minecraft_version = 20w10a curseforge_id = 365308 simple_minecraft_version = 1.16-Snapshot - yarn_mappings = 20w10a+build.7 + yarn_mappings = 20w10a+build.12 loader_version = 0.7.8+build.186 # Mod Properties - mod_version = 1.0.11 + mod_version = 1.0.12 maven_group = com.thebrokenrail archives_base_name = sorcerycraft diff --git a/src/main/resources/assets/sorcerycraft/lang/en_us.json b/src/main/resources/assets/sorcerycraft/lang/en_us.json index 7246e7a..31b7638 100644 --- a/src/main/resources/assets/sorcerycraft/lang/en_us.json +++ b/src/main/resources/assets/sorcerycraft/lang/en_us.json @@ -1,24 +1,24 @@ { - "item.sorcerycraft.spell": "Spell", - "block.sorcerycraft.casting_table": "Casting Table", - "itemGroup.sorcerycraft.spells": "SorceryCraft", - "container.sorcerycraft.casting_table": "Casting Table", - "container.sorcerycraft.spells": "Spells", - "chat.sorcerycraft.new_spell": "%s has learned the spell %s", - "entity.sorcerycraft.spell": "Spell", - "command.sorcerycraft.spell.cleared_spells": "All spells cleared from %s", - "command.sorcerycraft.spell.listing_spells": "%s knows the following spells:", - "command.sorcerycraft.spell.unknown_spell": "Unknown spell: %s", - "command.sorcerycraft.spell.not_holding_spell": "%s is not holding a Spell", - "command.sorcerycraft.spell.applied_spell": "Applied Spell %s", - "command.sorcerycraft.spell.removed_spell": "Removed Spell %s", - "spell.sorcerycraft.damage_spell": "Damage", - "spell.sorcerycraft.heal_spell": "Heal", - "spell.sorcerycraft.dissolve_spell": "Dissolve", - "spell.sorcerycraft.steadfast_spell": "Steadfast", - "spell.sorcerycraft.flame_spell": "Flame", - "spell.sorcerycraft.levitate_spell": "Levitate", - "spell.sorcerycraft.teleport_spell": "Teleport", - "spell.sorcerycraft.inward_spell": "Inward", - "spell.sorcerycraft.cooling_spell": "Cooling" + "item.sorcerycraft.spell": "Spell", + "block.sorcerycraft.casting_table": "Casting Table", + "itemGroup.sorcerycraft.spells": "SorceryCraft", + "container.sorcerycraft.casting_table": "Casting Table", + "container.sorcerycraft.spells": "Spells", + "chat.sorcerycraft.new_spell": "%s has learned the spell %s", + "entity.sorcerycraft.spell": "Spell", + "command.sorcerycraft.spell.cleared_spells": "All spells cleared from %s", + "command.sorcerycraft.spell.listing_spells": "%s knows the following spells:", + "command.sorcerycraft.spell.unknown_spell": "Unknown spell: %s", + "command.sorcerycraft.spell.not_holding_spell": "%s is not holding a Spell", + "command.sorcerycraft.spell.applied_spell": "Applied Spell %s", + "command.sorcerycraft.spell.removed_spell": "Removed Spell %s", + "spell.sorcerycraft.damage_spell": "Damage", + "spell.sorcerycraft.heal_spell": "Heal", + "spell.sorcerycraft.dissolve_spell": "Dissolve", + "spell.sorcerycraft.steadfast_spell": "Steadfast", + "spell.sorcerycraft.flame_spell": "Flame", + "spell.sorcerycraft.levitate_spell": "Levitate", + "spell.sorcerycraft.teleport_spell": "Teleport", + "spell.sorcerycraft.inward_spell": "Inward", + "spell.sorcerycraft.cooling_spell": "Cooling" } \ No newline at end of file diff --git a/src/main/resources/fabric.mod.json b/src/main/resources/fabric.mod.json index 31d7258..6a9d9e5 100644 --- a/src/main/resources/fabric.mod.json +++ b/src/main/resources/fabric.mod.json @@ -1,34 +1,34 @@ { - "schemaVersion": 1, - "id": "sorcerycraft", - "version": "${version}", - "name": "SorceryCraft", - "description": "Cast Spells in Minecraft!", - "authors": [ - "TheBrokenRail" - ], - "contact": { - "homepage": "https://thebrokenrail.com/", - "sources": "https://gitea.thebrokenrail.com/TheBrokenRail/SorceryCraft.git", - "issues": "https://gitea.thebrokenrail.com/TheBrokenRail/SorceryCraft/issues" - }, - "license": "MIT", - "icon": "assets/sorcerycraft/textures/block/casting_table.png", - "environment": "*", - "entrypoints": { - "main": [ - "com.thebrokenrail.sorcerycraft.SorceryCraft" + "schemaVersion": 1, + "id": "sorcerycraft", + "version": "${version}", + "name": "SorceryCraft", + "description": "Cast Spells in Minecraft!", + "authors": [ + "TheBrokenRail" ], - "client": [ - "com.thebrokenrail.sorcerycraft.SorceryCraft" - ] - }, - "mixins": [ - "sorcerycraft.mixins.json" - ], - "depends": { - "fabricloader": ">=0.7.4", - "fabric": "*", - "minecraft": "1.16.x" - } + "contact": { + "homepage": "https://thebrokenrail.com/", + "sources": "https://gitea.thebrokenrail.com/TheBrokenRail/SorceryCraft.git", + "issues": "https://gitea.thebrokenrail.com/TheBrokenRail/SorceryCraft/issues" + }, + "license": "MIT", + "icon": "assets/sorcerycraft/textures/block/casting_table.png", + "environment": "*", + "entrypoints": { + "main": [ + "com.thebrokenrail.sorcerycraft.SorceryCraft" + ], + "client": [ + "com.thebrokenrail.sorcerycraft.SorceryCraft" + ] + }, + "mixins": [ + "sorcerycraft.mixins.json" + ], + "depends": { + "fabricloader": ">=0.7.4", + "fabric": "*", + "minecraft": "1.16.x" + } } diff --git a/src/main/resources/sorcerycraft.mixins.json b/src/main/resources/sorcerycraft.mixins.json index 4166340..018166d 100644 --- a/src/main/resources/sorcerycraft.mixins.json +++ b/src/main/resources/sorcerycraft.mixins.json @@ -1,15 +1,15 @@ { - "required": true, - "package": "com.thebrokenrail.sorcerycraft.mixin", - "compatibilityLevel": "JAVA_8", - "client": [ - "MixinClientPlayNetworkHandler" - ], - "mixins": [ - "MixinPlayerEntity", - "MixinServerPlayerEntity" - ], - "injectors": { - "defaultRequire": 1 - } + "required": true, + "package": "com.thebrokenrail.sorcerycraft.mixin", + "compatibilityLevel": "JAVA_8", + "client": [ + "MixinClientPlayNetworkHandler" + ], + "mixins": [ + "MixinPlayerEntity", + "MixinServerPlayerEntity" + ], + "injectors": { + "defaultRequire": 1 + } } \ No newline at end of file