-
Notifications
You must be signed in to change notification settings - Fork 754
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Implement tool definition module for changng interactions
By default, most tools allow any interaction modifier to act Slimestaffs support both left and right click interaction, they use a worktable recipe to choose which interaction on a per modifier basis Shields support left click interaction, and also have a single right click modifier for blocking. They use a more restricted version of the module
- Loading branch information
1 parent
e660a36
commit 56844a7
Showing
30 changed files
with
433 additions
and
28 deletions.
There are no files selected for viewing
21 changes: 21 additions & 0 deletions
21
...resources/data/tconstruct/recipes/tools/modifiers/worktable/attack_modifier_clearing.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
{ | ||
"type": "tconstruct:modifier_set_worktable", | ||
"data_key": "tconstruct:attack_modifiers", | ||
"tools": { | ||
"tag": "tconstruct:modifiable/interactable/dual" | ||
}, | ||
"inputs": [ | ||
{ | ||
"item": "minecraft:lever" | ||
}, | ||
{ | ||
"item": "minecraft:lever" | ||
} | ||
], | ||
"modifier_predicate": { | ||
"type": "tconstruct:tag", | ||
"tag": "tconstruct:dual_interaction" | ||
}, | ||
"add_to_set": false, | ||
"allow_traits": false | ||
} |
18 changes: 18 additions & 0 deletions
18
.../resources/data/tconstruct/recipes/tools/modifiers/worktable/attack_modifier_setting.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
{ | ||
"type": "tconstruct:modifier_set_worktable", | ||
"data_key": "tconstruct:attack_modifiers", | ||
"tools": { | ||
"tag": "tconstruct:modifiable/interactable/dual" | ||
}, | ||
"inputs": [ | ||
{ | ||
"item": "minecraft:lever" | ||
} | ||
], | ||
"modifier_predicate": { | ||
"type": "tconstruct:tag", | ||
"tag": "tconstruct:dual_interaction" | ||
}, | ||
"add_to_set": true, | ||
"allow_traits": false | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
17 changes: 17 additions & 0 deletions
17
src/generated/resources/data/tconstruct/tinkering/tags/modifiers/dual_interaction.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
{ | ||
"replace": false, | ||
"values": [ | ||
"tconstruct:bucketing", | ||
"tconstruct:glowing", | ||
"tconstruct:firestarter", | ||
"tconstruct:stripping", | ||
"tconstruct:tilling", | ||
"tconstruct:pathing", | ||
"tconstruct:shears", | ||
"tconstruct:harvest", | ||
{ | ||
"id": "tconstruct:pockets", | ||
"required": false | ||
} | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -39,6 +39,8 @@ | |
public class TinkerHooks { | ||
private TinkerHooks() {} | ||
|
||
public static void init() {} | ||
|
||
|
||
/* General */ | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.