Skip to content

Commit

Permalink
added sword binding module
Browse files Browse the repository at this point in the history
  • Loading branch information
mickelus committed Aug 27, 2019
1 parent 8413e43 commit 491e269
Show file tree
Hide file tree
Showing 10 changed files with 133 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,7 @@ public ItemSwordModular() {
new BasicModule(pommelKey, "sword/counterweight");
new BasicModule(pommelKey, "sword/grip_loop");
new BasicModule(guardKey, "sword/forefinger_ring");
new BasicModule(guardKey, "sword/binding");
new BasicModule(fullerKey, "sword/reinforced_fuller");

new BasicModule(guardKey, "sword/socket");
Expand Down Expand Up @@ -98,6 +99,7 @@ public void init(PacketHandler packetHandler) {
ItemUpgradeRegistry.instance.registerConfigSchema("sword/counterweight");
ItemUpgradeRegistry.instance.registerConfigSchema("sword/grip_loop");
ItemUpgradeRegistry.instance.registerConfigSchema("sword/forefinger_ring");
ItemUpgradeRegistry.instance.registerConfigSchema("sword/binding");
ItemUpgradeRegistry.instance.registerConfigSchema("sword/reinforced_fuller");

ItemUpgradeRegistry.instance.registerConfigSchema("sword/shared_blade_hone");
Expand Down
11 changes: 11 additions & 0 deletions src/main/resources/assets/tetra/lang/en_US.lang
Original file line number Diff line number Diff line change
Expand Up @@ -732,6 +732,17 @@ reinforced_fuller/fierymetal=Fierymetal reinforced fuller
reinforced_fuller/knightmetal=Knightmetal reinforced fuller

###############################
# SWORD BINDING
###############################
sword_binding_schema.name=Binding
sword_binding_schema.description=Tighten the binding between the hilt and the blade by wrapping it with rope or straps, or by using completely different materials and methods.
sword_binding_schema.slot1=Material

sword_binding/string=String binding
sword_binding/leather=Leather binding
sword_binding/hide=Hide binding
sword_binding/vine=Vine binding
sword_binding/bolt=Bolted

###############################
# FOREFINGER RING
Expand Down
Binary file modified src/main/resources/assets/tetra/textures/gui/glyphs.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
56 changes: 56 additions & 0 deletions src/main/resources/data/tetra/modules/sword/binding.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,56 @@
[
{
"key": "sword_binding/string",
"durability": 12,
"integrity": 1,
"attackSpeed": -0.1,
"glyph": {
"tint": "fefefe",
"textureX": 88,
"textureY": 16
}
},
{
"key": "sword_binding/leather",
"durability": 23,
"integrity": 2,
"attackSpeed": -0.4,
"glyph": {
"tint": "753b26",
"textureX": 88,
"textureY": 16
}
},
{
"key": "sword_binding/hide",
"durability": 18,
"integrity": 2,
"attackSpeed": -0.3,
"glyph": {
"tint": "a88054",
"textureX": 88,
"textureY": 16
}
},
{
"key": "sword_binding/vine",
"durability": 12,
"integrity": 1,
"attackSpeed": -0.2,
"glyph": {
"tint": "445d24",
"textureX": 88,
"textureY": 16
}
},
{
"key": "sword_binding/bolt",
"durability": 12,
"attackSpeed": -0.1,
"glyph": {
"tint": "383838",
"textureX": 80,
"textureY": 16
}
}
]
64 changes: 64 additions & 0 deletions src/main/resources/data/tetra/schemas/sword/binding.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,64 @@
[
{
"key": "sword_binding_schema",
"slots": ["sword/guard"],
"materialSlotCount": 1,
"displayType": "minor",
"glyph": {
"textureX": 88,
"textureY": 16
},
"outcomes": [
{
"material": {
"item": "minecraft:string",
"count": 4
},
"requiredCapabilities": {
"cut": 1
},
"moduleKey": "sword/binding",
"moduleVariant": "sword_binding/string"
},
{
"material": {
"item": "minecraft:leather"
},
"requiredCapabilities": {
"cut": 2
},
"moduleKey": "sword/binding",
"moduleVariant": "sword_binding/leather"
},
{
"material": {
"item": "minecraft:hide",
"count": 2
},
"requiredCapabilities": {
"cut": 2
},
"moduleKey": "sword/binding",
"moduleVariant": "sword_binding/hide"
},
{
"material": {
"item": "minecraft:vine",
"count": 4
},
"requiredCapabilities": {
"cut": 1
},
"moduleKey": "sword/binding",
"moduleVariant": "sword_binding/vine"
},
{
"material": {
"item": "tetra:forged_bolt"
},
"moduleKey": "sword/binding",
"moduleVariant": "sword_binding/bolt"
}
]
}
]

0 comments on commit 491e269

Please sign in to comment.