-
Notifications
You must be signed in to change notification settings - Fork 16
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
25 changed files
with
1,057 additions
and
64 deletions.
There are no files selected for viewing
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
45 changes: 27 additions & 18 deletions
45
data/mechanization/functions/base/tools/manual/close.mcfunction
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 |
---|---|---|
@@ -1,28 +1,37 @@ | ||
tag @s remove mech_manual_open | ||
|
||
execute store result score temp_0 mech_data run data get entity @s Inventory[0].tag.mech_itemid | ||
execute if score temp_0 mech_data matches 1103 store result entity @s Inventory[0].tag.Damage int 1 run data get entity @s Inventory[0].tag.manual.base | ||
execute store result score temp_0 mech_data run data get entity @s Inventory[0].tag.manual.page | ||
execute if score temp_0 mech_data matches 1.. store result score in_0 mech_data run data get entity @s Inventory[0].Slot | ||
execute if score temp_0 mech_data matches 1.. run function mechanization:base/tools/manual/close/close | ||
|
||
execute store result score temp_0 mech_data run data get entity @s Inventory[1].tag.mech_itemid | ||
execute if score temp_0 mech_data matches 1103 store result entity @s Inventory[1].tag.Damage int 1 run data get entity @s Inventory[1].tag.manual.base | ||
execute store result score temp_0 mech_data run data get entity @s Inventory[1].tag.manual.page | ||
execute if score temp_0 mech_data matches 1.. store result score in_0 mech_data run data get entity @s Inventory[1].Slot | ||
execute if score temp_0 mech_data matches 1.. run function mechanization:base/tools/manual/close/close | ||
|
||
execute store result score temp_0 mech_data run data get entity @s Inventory[2].tag.mech_itemid | ||
execute if score temp_0 mech_data matches 1103 store result entity @s Inventory[2].tag.Damage int 1 run data get entity @s Inventory[2].tag.manual.base | ||
execute store result score temp_0 mech_data run data get entity @s Inventory[2].tag.manual.page | ||
execute if score temp_0 mech_data matches 1.. store result score in_0 mech_data run data get entity @s Inventory[2].Slot | ||
execute if score temp_0 mech_data matches 1.. run function mechanization:base/tools/manual/close/close | ||
|
||
execute store result score temp_0 mech_data run data get entity @s Inventory[3].tag.mech_itemid | ||
execute if score temp_0 mech_data matches 1103 store result entity @s Inventory[3].tag.Damage int 1 run data get entity @s Inventory[3].tag.manual.base | ||
execute store result score temp_0 mech_data run data get entity @s Inventory[3].tag.manual.page | ||
execute if score temp_0 mech_data matches 1.. store result score in_0 mech_data run data get entity @s Inventory[3].Slot | ||
execute if score temp_0 mech_data matches 1.. run function mechanization:base/tools/manual/close/close | ||
|
||
execute store result score temp_0 mech_data run data get entity @s Inventory[4].tag.mech_itemid | ||
execute if score temp_0 mech_data matches 1103 store result entity @s Inventory[4].tag.Damage int 1 run data get entity @s Inventory[4].tag.manual.base | ||
execute store result score temp_0 mech_data run data get entity @s Inventory[4].tag.manual.page | ||
execute if score temp_0 mech_data matches 1.. store result score in_0 mech_data run data get entity @s Inventory[4].Slot | ||
execute if score temp_0 mech_data matches 1.. run function mechanization:base/tools/manual/close/close | ||
|
||
execute store result score temp_0 mech_data run data get entity @s Inventory[5].tag.mech_itemid | ||
execute if score temp_0 mech_data matches 1103 store result entity @s Inventory[5].tag.Damage int 1 run data get entity @s Inventory[5].tag.manual.base | ||
execute store result score temp_0 mech_data run data get entity @s Inventory[5].tag.manual.page | ||
execute if score temp_0 mech_data matches 1.. store result score in_0 mech_data run data get entity @s Inventory[5].Slot | ||
execute if score temp_0 mech_data matches 1.. run function mechanization:base/tools/manual/close/close | ||
|
||
execute store result score temp_0 mech_data run data get entity @s Inventory[6].tag.mech_itemid | ||
execute if score temp_0 mech_data matches 1103 store result entity @s Inventory[6].tag.Damage int 1 run data get entity @s Inventory[6].tag.manual.base | ||
execute store result score temp_0 mech_data run data get entity @s Inventory[6].tag.manual.page | ||
execute if score temp_0 mech_data matches 1.. store result score in_0 mech_data run data get entity @s Inventory[6].Slot | ||
execute if score temp_0 mech_data matches 1.. run function mechanization:base/tools/manual/close/close | ||
|
||
execute store result score temp_0 mech_data run data get entity @s Inventory[7].tag.mech_itemid | ||
execute if score temp_0 mech_data matches 1103 store result entity @s Inventory[7].tag.Damage int 1 run data get entity @s Inventory[7].tag.manual.base | ||
execute store result score temp_0 mech_data run data get entity @s Inventory[7].tag.manual.page | ||
execute if score temp_0 mech_data matches 1.. store result score in_0 mech_data run data get entity @s Inventory[7].Slot | ||
execute if score temp_0 mech_data matches 1.. run function mechanization:base/tools/manual/close/close | ||
|
||
execute store result score temp_0 mech_data run data get entity @s Inventory[8].tag.mech_itemid | ||
execute if score temp_0 mech_data matches 1103 store result entity @s Inventory[8].tag.Damage int 1 run data get entity @s Inventory[8].tag.manual.base | ||
execute store result score temp_0 mech_data run data get entity @s Inventory[8].tag.manual.page | ||
execute if score temp_0 mech_data matches 1.. store result score in_0 mech_data run data get entity @s Inventory[8].Slot | ||
execute if score temp_0 mech_data matches 1.. run function mechanization:base/tools/manual/close/close |
9 changes: 9 additions & 0 deletions
9
data/mechanization/functions/base/tools/manual/close/close.mcfunction
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,9 @@ | ||
execute if score in_0 mech_data matches 0 run function mechanization:base/tools/manual/close/close_0 | ||
execute if score in_0 mech_data matches 1 run function mechanization:base/tools/manual/close/close_1 | ||
execute if score in_0 mech_data matches 2 run function mechanization:base/tools/manual/close/close_2 | ||
execute if score in_0 mech_data matches 3 run function mechanization:base/tools/manual/close/close_3 | ||
execute if score in_0 mech_data matches 4 run function mechanization:base/tools/manual/close/close_4 | ||
execute if score in_0 mech_data matches 5 run function mechanization:base/tools/manual/close/close_5 | ||
execute if score in_0 mech_data matches 6 run function mechanization:base/tools/manual/close/close_6 | ||
execute if score in_0 mech_data matches 7 run function mechanization:base/tools/manual/close/close_7 | ||
execute if score in_0 mech_data matches 8 run function mechanization:base/tools/manual/close/close_8 |
Oops, something went wrong.