Skip to content

Commit

Permalink
added duplex binding module
Browse files Browse the repository at this point in the history
  • Loading branch information
mickelus committed Aug 27, 2019

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
1 parent 491e269 commit dcc3056
Showing 10 changed files with 136 additions and 1 deletion.
2 changes: 1 addition & 1 deletion build.gradle
Original file line number Diff line number Diff line change
@@ -11,7 +11,7 @@ apply plugin: 'net.minecraftforge.gradle.forge'
//Only edit below this line, the above code adds and enables the necessary things for Forge to be setup.


version = "0.35.1"
version = "0.36.0"
group= "se.mickelus.tetra" // http://maven.apache.org/guides/mini/guide-naming-conventions.html
archivesBaseName = "tetra-1.12.2"

Original file line number Diff line number Diff line change
@@ -135,6 +135,7 @@ public ItemDuplexToolModular() {
.withRenderLayer(Priority.LOWER);


new BasicModule(bindingKey, "duplex/binding");
new BasicModule(bindingKey, "duplex/socket");

updateConfig(ConfigHandler.honeDuplexBase, ConfigHandler.honeDuplexIntegrityMultiplier);
@@ -200,6 +201,7 @@ public void init(PacketHandler packetHandler) {
ItemUpgradeRegistry.instance.registerReplacementDefinition("pickaxe");
ItemUpgradeRegistry.instance.registerReplacementDefinition("hoe");

ItemUpgradeRegistry.instance.registerConfigSchema("duplex/binding");
ItemUpgradeRegistry.instance.registerConfigSchema("duplex/socket");
}

13 changes: 13 additions & 0 deletions src/main/resources/assets/tetra/lang/en_US.lang
Original file line number Diff line number Diff line change
@@ -1255,6 +1255,19 @@ duplex_socket/pristine_diamond=Socket [§bDiamond+§r]
duplex_socket/pristine_emerald=Socket [§aEmerald+§r]
duplex_socket/pristine_lapis=Socket [§9Lapis+§r]

###############################
# DUPLEX BINDING
###############################
duplex_binding_schema.name=Binding
duplex_binding_schema.description=Bind the tool head to the hilt by binding it with rope or straps, or by using completely different materials and methods.
duplex_binding_schema.slot1=Material

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

###############################
# AXE HEAD
##############################
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/duplex/binding.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,56 @@
[
{
"key": "duplex_binding/string",
"durability": 12,
"integrity": 1,
"attackSpeed": -0.1,
"glyph": {
"tint": "fefefe",
"textureX": 88,
"textureY": 16
}
},
{
"key": "duplex_binding/leather",
"durability": 23,
"integrity": 2,
"attackSpeed": -0.4,
"glyph": {
"tint": "753b26",
"textureX": 88,
"textureY": 16
}
},
{
"key": "duplex_binding/hide",
"durability": 18,
"integrity": 2,
"attackSpeed": -0.3,
"glyph": {
"tint": "a88054",
"textureX": 88,
"textureY": 16
}
},
{
"key": "duplex_binding/vine",
"durability": 12,
"integrity": 1,
"attackSpeed": -0.2,
"glyph": {
"tint": "445d24",
"textureX": 88,
"textureY": 16
}
},
{
"key": "duplex_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/duplex/binding.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,64 @@
[
{
"key": "duplex_binding_schema",
"slots": ["duplex/binding"],
"materialSlotCount": 1,
"displayType": "minor",
"glyph": {
"textureX": 88,
"textureY": 16
},
"outcomes": [
{
"material": {
"item": "minecraft:string",
"count": 4
},
"requiredCapabilities": {
"cut": 1
},
"moduleKey": "duplex/binding",
"moduleVariant": "duplex_binding/string"
},
{
"material": {
"item": "minecraft:leather"
},
"requiredCapabilities": {
"cut": 2
},
"moduleKey": "duplex/binding",
"moduleVariant": "duplex_binding/leather"
},
{
"material": {
"item": "minecraft:hide",
"count": 2
},
"requiredCapabilities": {
"cut": 2
},
"moduleKey": "duplex/binding",
"moduleVariant": "duplex_binding/hide"
},
{
"material": {
"item": "minecraft:vine",
"count": 4
},
"requiredCapabilities": {
"cut": 1
},
"moduleKey": "duplex/binding",
"moduleVariant": "duplex_binding/vine"
},
{
"material": {
"item": "tetra:forged_bolt"
},
"moduleKey": "duplex/binding",
"moduleVariant": "duplex_binding/bolt"
}
]
}
]

0 comments on commit dcc3056

Please sign in to comment.