1.0.12
All checks were successful
SorceryCraft/pipeline/head This commit looks good

Update Mappings
Add API Docs
This commit is contained in:
TheBrokenRail 2020-03-08 11:34:47 -04:00
parent 516d7909f1
commit 963900a65d
6 changed files with 79 additions and 74 deletions

View File

@ -1,5 +1,9 @@
### Changelog
**1.0.12**
* Update Mappings
* Add API Docs
**1.0.11**
* Allow Spells to Affect Blocks
* Add Cooling Spell

View File

@ -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"
}
```

View File

@ -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

View File

@ -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"
}

View File

@ -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"
}
}

View File

@ -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
}
}