Skip to content

Commit

Permalink
2.0.5
Browse files Browse the repository at this point in the history
  • Loading branch information
ICY105 committed Sep 18, 2018
1 parent f317a1e commit e100bd5
Show file tree
Hide file tree
Showing 25 changed files with 1,057 additions and 64 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ execute if score @s mech_data matches 1001 run summon armor_stand ~ ~ ~ {Tags:["
execute if entity @s[scores={mech_data=1002},tag=!mech_operator] run summon armor_stand ~ ~ ~ {Tags:["mech_storage3","mech_power_storage"],Marker:1b,Invisible:1,Invulnerable:1,NoGravity:1,DisabledSlots:2039583,ArmorItems:[{},{},{},{id:diamond_shovel,Count:1b,tag:{mech_power:0,mech_gridid:0,Unbreakable:1,Damage:19}}]}
execute if entity @s[scores={mech_data=1002},tag=mech_operator] run summon armor_stand ~ ~ ~ {Tags:["mech_storage3","mech_power_storage","mech_storage_creative"],Marker:1b,Invisible:1,Invulnerable:1,NoGravity:1,DisabledSlots:2039583,ArmorItems:[{},{},{},{id:diamond_shovel,Count:1b,tag:{mech_power:0,mech_gridid:0,Unbreakable:1,Enchantments:[{id:1,lvl:1}],Damage:19}}]}

execute if score @s mech_data matches 1003 run summon armor_stand ~ ~ ~ {Tags:["mech_storageq","mech_power_storage"],Marker:1b,Invisible:1,Invulnerable:1,NoGravity:1,DisabledSlots:2039583,ArmorItems:[{},{},{},{id:diamond_shovel,Count:1b,tag:{Enchantments:[{id:1,lvl:1}],Unbreakable:1,Damage:28}}]}
execute if score @s mech_data matches 1003 run summon armor_stand ~ ~ ~ {Tags:["mech_storageq","mech_power_storage"],Marker:1b,Invisible:1,Invulnerable:1,NoGravity:1,DisabledSlots:2039583,ArmorItems:[{},{},{},{id:diamond_shovel,Count:1b,tag:{Enchantments:[{id:"minecraft:binding_curse",lvl:1s}],Unbreakable:1,Damage:28}}]}
execute if score @s mech_data matches 1003 run scoreboard players set @e[tag=mech_storageq,distance=..0.5] mech_data 0

execute if score @s mech_data matches 1000..1003 run setblock ~ ~ ~ minecraft:barrier
Expand Down
45 changes: 27 additions & 18 deletions data/mechanization/functions/base/tools/manual/close.mcfunction
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
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
Loading

0 comments on commit e100bd5

Please sign in to comment.