-
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
18 changed files
with
95 additions
and
35 deletions.
There are no files selected for viewing
13 changes: 1 addition & 12 deletions
13
data/mechanization/functions/assembly/machines/item_transmitter/insert_item.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,13 +1,2 @@ | ||
|
||
execute in minecraft:overworld run data modify storage du:temp object set from block -29999999 0 1601 Items | ||
data modify block -29999999 0 1601 Items set from storage du:temp object | ||
|
||
execute if score @s mech_data matches 0 positioned ~01 ~ ~ run loot insert ~ ~ ~ mine -29999999 0 1601 minecraft:air{drop_contents:true} | ||
execute if score @s mech_data matches 1 positioned ~ ~ ~-1 run loot insert ~ ~ ~ mine -29999999 0 1601 minecraft:air{drop_contents:true} | ||
execute if score @s mech_data matches 2 positioned ~-1 ~ ~ run loot insert ~ ~ ~ mine -29999999 0 1601 minecraft:air{drop_contents:true} | ||
execute if score @s mech_data matches 3 positioned ~ ~ ~01 run loot insert ~ ~ ~ mine -29999999 0 1601 minecraft:air{drop_contents:true} | ||
execute if score @s mech_data matches 4 positioned ~ ~-1 ~ run loot insert ~ ~ ~ mine -29999999 0 1601 minecraft:air{drop_contents:true} | ||
execute if score @s mech_data matches 5 positioned ~ ~01 ~ run loot insert ~ ~ ~ mine -29999999 0 1601 minecraft:air{drop_contents:true} | ||
|
||
scoreboard players set temp_0 mech_data 0 | ||
scoreboard players set temp_1 mech_data -1 | ||
execute if score temp_1 mech_data matches 1.. run function mechanization:assembly/machines/item_transmitter/insert_item_2 |
13 changes: 13 additions & 0 deletions
13
data/mechanization/functions/assembly/machines/item_transmitter/insert_item_2.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,13 @@ | ||
|
||
execute in minecraft:overworld run data modify storage du:temp object set from block -29999999 0 1601 Items | ||
data modify block -29999999 0 1601 Items set from storage du:temp object | ||
|
||
execute if score @s mech_data matches 0 positioned ~01 ~ ~ run loot insert ~ ~ ~ mine -29999999 0 1601 minecraft:air{drop_contents:true} | ||
execute if score @s mech_data matches 1 positioned ~ ~ ~-1 run loot insert ~ ~ ~ mine -29999999 0 1601 minecraft:air{drop_contents:true} | ||
execute if score @s mech_data matches 2 positioned ~-1 ~ ~ run loot insert ~ ~ ~ mine -29999999 0 1601 minecraft:air{drop_contents:true} | ||
execute if score @s mech_data matches 3 positioned ~ ~ ~01 run loot insert ~ ~ ~ mine -29999999 0 1601 minecraft:air{drop_contents:true} | ||
execute if score @s mech_data matches 4 positioned ~ ~-1 ~ run loot insert ~ ~ ~ mine -29999999 0 1601 minecraft:air{drop_contents:true} | ||
execute if score @s mech_data matches 5 positioned ~ ~01 ~ run loot insert ~ ~ ~ mine -29999999 0 1601 minecraft:air{drop_contents:true} | ||
|
||
scoreboard players set temp_0 mech_data 0 | ||
scoreboard players set temp_1 mech_data -1 |
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
4 changes: 2 additions & 2 deletions
4
data/mechanization/functions/gadgets/machines/tinker_table/modify_tool.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
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
4 changes: 2 additions & 2 deletions
4
data/mechanization/functions/gadgets/upgrades/remove_upgrades_tools.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
5 changes: 4 additions & 1 deletion
5
data/mechanization/functions/gadgets/upgrades/tools/set_upgrades_tools.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,6 +1,9 @@ | ||
function mechanization:gadgets/upgrades/remove_upgrades_tools | ||
|
||
tag @s[nbt={SelectedItem:{ tag:{mech_modifiers:[{tag:{OreDict:["upgradeEmpowered"]}}]}}}] add mech_upgrade_empower | ||
execute store success score temp_0 mech_data run data get entity @s SelectedItem.tag.mech_modifiers[{tag:{OreDict:["upgradeEmpowered"]}}] | ||
execute if data entity @s SelectedItem.tag.mech_modifiers[].tag{OreDict:["upgradeEmpowered"]} if score temp_0 mech_data matches 1 run tag @s add mech_upgrade_empower_1 | ||
execute if data entity @s SelectedItem.tag.mech_modifiers[].tag{OreDict:["upgradeEmpowered"]} if score temp_0 mech_data matches 0 run tag @s add mech_upgrade_empower_2 | ||
|
||
tag @s[nbt={SelectedItem:{ tag:{mech_modifiers:[{tag:{OreDict:["upgradeMagnetic"]}}]}}}] add mech_upgrade_magnetic | ||
tag @s[nbt={SelectedItem:{ tag:{mech_modifiers:[{tag:{OreDict:["upgradeTrash"]}}]}}}] add mech_upgrade_trash | ||
tag @s[nbt={SelectedItem:{ tag:{mech_modifiers:[{tag:{OreDict:["upgradeSmash"]}}]}}}] add mech_upgrade_smash |
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
6 changes: 6 additions & 0 deletions
6
data/mechanization/functions/machines/machines/alloy_furnace/error.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,6 @@ | ||
|
||
playsound minecraft:block.note_block.bit block @a ~ ~ ~ 1 2 | ||
execute if entity @s[tag=!mech_errored] run clone ~ ~ ~ ~ ~ ~ ~ ~ ~ replace force | ||
execute if entity @s[tag=!mech_errored] run data merge block ~ ~ ~ {CustomName:'[{"text":"Error: Missing ","color":"red"},{"translate":"mech.item.machine_upgrade"}]'} | ||
scoreboard players set temp_3 mech_data 1 | ||
tag @s add mech_errored |
Oops, something went wrong.