AddedChain
This commit is contained in:
parent
ade863f161
commit
af7fed5674
@ -39,3 +39,4 @@ execute if block ~ ~ ~ minecraft:hopper unless score WrenchRedstone WrenchConfig
|
|||||||
execute if block ~ ~ ~ #minecraft:slabs unless score WrenchSlabs WrenchConfig matches 0 run function wrench:raycast/partialbox/slabs
|
execute if block ~ ~ ~ #minecraft:slabs unless score WrenchSlabs WrenchConfig matches 0 run function wrench:raycast/partialbox/slabs
|
||||||
execute if block ~ ~ ~ #minecraft:stairs unless score WrenchStairs WrenchConfig matches 0 run function wrench:raycast/partialbox/stairs
|
execute if block ~ ~ ~ #minecraft:stairs unless score WrenchStairs WrenchConfig matches 0 run function wrench:raycast/partialbox/stairs
|
||||||
execute if block ~ ~ ~ minecraft:end_rod unless score WrenchRods WrenchConfig matches 0 run function wrench:raycast/partialbox/end_rods
|
execute if block ~ ~ ~ minecraft:end_rod unless score WrenchRods WrenchConfig matches 0 run function wrench:raycast/partialbox/end_rods
|
||||||
|
execute if block ~ ~ ~ minecraft:chain unless score WrenchRods WrenchConfig matches 0 run function wrench:raycast/partialbox/chain
|
||||||
|
4
data/wrench/function/raycast/partialbox/chain.mcfunction
Normal file
4
data/wrench/function/raycast/partialbox/chain.mcfunction
Normal file
@ -0,0 +1,4 @@
|
|||||||
|
#Chain
|
||||||
|
execute if block ~ ~ ~ minecraft:chain[axis=x] if score py WrenchRaycast matches 7..8 if score pz WrenchRaycast matches 7..8 run function wrench:rotate/chain_flip
|
||||||
|
execute if block ~ ~ ~ minecraft:chain[axis=y] if score px WrenchRaycast matches 7..8 if score pz WrenchRaycast matches 7..8 run function wrench:rotate/chain_flip
|
||||||
|
execute if block ~ ~ ~ minecraft:chain[axis=z] if score px WrenchRaycast matches 7..8 if score py WrenchRaycast matches 7..8 run function wrench:rotate/chain_flip
|
5
data/wrench/function/rotate/chain_flip.mcfunction
Normal file
5
data/wrench/function/rotate/chain_flip.mcfunction
Normal file
@ -0,0 +1,5 @@
|
|||||||
|
### Flip Chain
|
||||||
|
|
||||||
|
execute as @s[scores={WrenchSuccess=0}] store result score @s WrenchSuccess run fill ~ ~ ~ ~ ~ ~ minecraft:chain[axis=z] replace minecraft:chain[axis=y]
|
||||||
|
execute as @s[scores={WrenchSuccess=0}] store result score @s WrenchSuccess run fill ~ ~ ~ ~ ~ ~ minecraft:chain[axis=y] replace minecraft:chain[axis=x]
|
||||||
|
execute as @s[scores={WrenchSuccess=0}] store result score @s WrenchSuccess run fill ~ ~ ~ ~ ~ ~ minecraft:chain[axis=x] replace minecraft:chain[axis=z]
|
@ -9,6 +9,7 @@
|
|||||||
"#minecraft:slabs",
|
"#minecraft:slabs",
|
||||||
"#minecraft:stairs",
|
"#minecraft:stairs",
|
||||||
"minecraft:end_rod",
|
"minecraft:end_rod",
|
||||||
|
"minecraft:chain",
|
||||||
"minecraft:piston",
|
"minecraft:piston",
|
||||||
"minecraft:sticky_piston"
|
"minecraft:sticky_piston"
|
||||||
]
|
]
|
||||||
|
Loading…
x
Reference in New Issue
Block a user