-
-
Notifications
You must be signed in to change notification settings - Fork 3
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
oOBoomberOo
committed
Oct 22, 2019
1 parent
ac7ae36
commit ea0ec75
Showing
18 changed files
with
52 additions
and
21 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
2 changes: 2 additions & 0 deletions
2
data/boomber/functions/armor_stand/editor_mage/submit/armor_stand.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
4 changes: 3 additions & 1 deletion
4
data/boomber/functions/armor_stand/editor_node/move.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 +1,3 @@ | ||
tp @s ~ ~ ~ | ||
tp @s ~ ~ ~ | ||
|
||
data merge entity @s {Health: 20.0f} |
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,3 +1,4 @@ | ||
execute at @s anchored eyes positioned ^ ^-0.7 ^ run function boomber:armor_stand/part/part | ||
execute if entity @s[nbt={Small: 0b}] at @s anchored eyes positioned ^ ^-0.7 ^ run function boomber:armor_stand/part/part | ||
execute if entity @s[nbt={Small: 1b}] at @s anchored eyes positioned ^ ^0.2 ^ run function boomber:armor_stand/part/part | ||
execute if entity @e[type=area_effect_cloud, tag=boomber.armor_stand.part, distance=..0.2] run scoreboard players set #bb.ae.part bb.success 5 | ||
function boomber:armor_stand/part/remove |
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,3 +1,4 @@ | ||
execute at @s anchored eyes positioned ^ ^0.1 ^ run function boomber:armor_stand/part/part | ||
execute if entity @s[nbt={Small: 0b}] at @s anchored eyes positioned ^ ^0.1 ^ run function boomber:armor_stand/part/part | ||
execute if entity @s[nbt={Small: 1b}] at @s anchored eyes positioned ^ ^0.60 ^ run function boomber:armor_stand/part/part | ||
execute if entity @e[type=area_effect_cloud, tag=boomber.armor_stand.part, distance=..0.2] run scoreboard players set #bb.ae.part bb.success 6 | ||
function boomber:armor_stand/part/remove |
3 changes: 2 additions & 1 deletion
3
data/boomber/functions/armor_stand/part/check/left_arm.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,3 +1,4 @@ | ||
execute at @s anchored eyes positioned ^0.4 ^-0.33 ^ run function boomber:armor_stand/part/part | ||
execute if entity @s[nbt={Small: 0b}] at @s anchored eyes positioned ^0.4 ^-0.33 ^ run function boomber:armor_stand/part/part | ||
execute if entity @s[nbt={Small: 1b}] at @s anchored eyes positioned ^0.2 ^0.33 ^ run function boomber:armor_stand/part/part | ||
execute if entity @e[type=area_effect_cloud, tag=boomber.armor_stand.part, distance=..0.2] run scoreboard players set #bb.ae.part bb.success 1 | ||
function boomber:armor_stand/part/remove |
3 changes: 2 additions & 1 deletion
3
data/boomber/functions/armor_stand/part/check/left_leg.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,3 +1,4 @@ | ||
execute at @s anchored eyes positioned ^0.15 ^-1 ^ run function boomber:armor_stand/part/part | ||
execute if entity @s[nbt={Small: 0b}] at @s anchored eyes positioned ^0.15 ^-1 ^ run function boomber:armor_stand/part/part | ||
execute if entity @s[nbt={Small: 1b}] at @s anchored eyes positioned ^0.05 ^ ^ run function boomber:armor_stand/part/part | ||
execute if entity @e[type=area_effect_cloud, tag=boomber.armor_stand.part, distance=..0.2] run scoreboard players set #bb.ae.part bb.success 3 | ||
function boomber:armor_stand/part/remove |
3 changes: 2 additions & 1 deletion
3
data/boomber/functions/armor_stand/part/check/right_arm.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,3 +1,4 @@ | ||
execute at @s anchored eyes positioned ^-0.4 ^-0.33 ^ run function boomber:armor_stand/part/part | ||
execute if entity @s[nbt={Small: 0b}] at @s anchored eyes positioned ^-0.4 ^-0.33 ^ run function boomber:armor_stand/part/part | ||
execute if entity @s[nbt={Small: 1b}] at @s anchored eyes positioned ^-0.2 ^0.33 ^ run function boomber:armor_stand/part/part | ||
execute if entity @e[type=area_effect_cloud, tag=boomber.armor_stand.part, distance=..0.2] run scoreboard players set #bb.ae.part bb.success 2 | ||
function boomber:armor_stand/part/remove |
3 changes: 2 additions & 1 deletion
3
data/boomber/functions/armor_stand/part/check/right_leg.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,3 +1,4 @@ | ||
execute at @s anchored eyes positioned ^-0.15 ^-1 ^ run function boomber:armor_stand/part/part | ||
execute if entity @s[nbt={Small: 0b}] at @s anchored eyes positioned ^-0.15 ^-1 ^ run function boomber:armor_stand/part/part | ||
execute if entity @s[nbt={Small: 1b}] at @s anchored eyes positioned ^-0.05 ^ ^ run function boomber:armor_stand/part/part | ||
execute if entity @e[type=area_effect_cloud, tag=boomber.armor_stand.part, distance=..0.2] run scoreboard players set #bb.ae.part bb.success 4 | ||
function boomber:armor_stand/part/remove |
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
2 changes: 2 additions & 0 deletions
2
data/boomber/functions/armor_stand/smart_stand/is_small.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,2 @@ | ||
tag @s remove boomber.armor_stand.small | ||
execute if entity @s[nbt={Small: 1b}] run tag @s add boomber.armor_stand.small |
24 changes: 17 additions & 7 deletions
24
data/boomber/functions/armor_stand/smart_stand/main.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,23 @@ | ||
function boomber:armor_stand/smart_stand/get_orientation | ||
function boomber:armor_stand/smart_stand/is_small | ||
|
||
scoreboard players operation #bb.ae.target_uid bb.ae.uid = @s bb.ae.uid | ||
execute as @a if score @s bb.ae.uid = #bb.ae.target_uid bb.ae.uid at @s anchored eyes positioned ^ ^ ^1.5 run function boomber:armor_stand/player/create_target_point | ||
execute as @s[tag=boomber.armor_stand.edit.left_arm] rotated ~ 0 anchored eyes positioned ^0.4 ^-0.33 ^ run function boomber:armor_stand/smart_stand/part/left_arm | ||
execute as @s[tag=boomber.armor_stand.edit.right_arm] rotated ~ 0 anchored eyes positioned ^-0.4 ^-0.33 ^ run function boomber:armor_stand/smart_stand/part/right_arm | ||
execute as @s[tag=boomber.armor_stand.edit.left_leg] rotated ~ 0 anchored eyes positioned ^0.15 ^-1 ^ run function boomber:armor_stand/smart_stand/part/left_leg | ||
execute as @s[tag=boomber.armor_stand.edit.right_leg] rotated ~ 0 anchored eyes positioned ^-0.15 ^-1 ^ run function boomber:armor_stand/smart_stand/part/right_leg | ||
execute as @s[tag=boomber.armor_stand.edit.body] rotated ~ 0 anchored eyes positioned ^ ^-0.2 ^ run function boomber:armor_stand/smart_stand/part/body | ||
execute as @s[tag=boomber.armor_stand.edit.head] rotated ~ 0 anchored eyes positioned ^ ^-0.2 ^ run function boomber:armor_stand/smart_stand/part/head | ||
execute as @s[tag=boomber.armor_stand.edit.base_plate] rotated ~ 0 run function boomber:armor_stand/smart_stand/part/base_plate | ||
|
||
execute as @s[tag=!boomber.armor_stand.small, tag=boomber.armor_stand.edit.left_arm] rotated ~ 0 anchored eyes positioned ^0.4 ^-0.33 ^ run function boomber:armor_stand/smart_stand/part/left_arm | ||
execute as @s[tag=!boomber.armor_stand.small, tag=boomber.armor_stand.edit.right_arm] rotated ~ 0 anchored eyes positioned ^-0.4 ^-0.33 ^ run function boomber:armor_stand/smart_stand/part/right_arm | ||
execute as @s[tag=!boomber.armor_stand.small, tag=boomber.armor_stand.edit.left_leg] rotated ~ 0 anchored eyes positioned ^0.15 ^-1 ^ run function boomber:armor_stand/smart_stand/part/left_leg | ||
execute as @s[tag=!boomber.armor_stand.small, tag=boomber.armor_stand.edit.right_leg] rotated ~ 0 anchored eyes positioned ^-0.15 ^-1 ^ run function boomber:armor_stand/smart_stand/part/right_leg | ||
execute as @s[tag=!boomber.armor_stand.small, tag=boomber.armor_stand.edit.body] rotated ~ 0 anchored eyes positioned ^ ^-0.2 ^ run function boomber:armor_stand/smart_stand/part/body | ||
execute as @s[tag=!boomber.armor_stand.small, tag=boomber.armor_stand.edit.head] rotated ~ 0 anchored eyes positioned ^ ^-0.2 ^ run function boomber:armor_stand/smart_stand/part/head | ||
execute as @s[tag=!boomber.armor_stand.small, tag=boomber.armor_stand.edit.base_plate] rotated ~ 0 run function boomber:armor_stand/smart_stand/part/base_plate | ||
|
||
execute as @s[tag=boomber.armor_stand.small, tag=boomber.armor_stand.edit.left_arm] rotated ~ 0 anchored eyes positioned ^0.2 ^0.33 ^ run function boomber:armor_stand/smart_stand/part/left_arm | ||
execute as @s[tag=boomber.armor_stand.small, tag=boomber.armor_stand.edit.right_arm] rotated ~ 0 anchored eyes positioned ^-0.2 ^0.33 ^ run function boomber:armor_stand/smart_stand/part/right_arm | ||
execute as @s[tag=boomber.armor_stand.small, tag=boomber.armor_stand.edit.left_leg] rotated ~ 0 anchored eyes positioned ^0.05 ^ ^ run function boomber:armor_stand/smart_stand/part/left_leg | ||
execute as @s[tag=boomber.armor_stand.small, tag=boomber.armor_stand.edit.right_leg] rotated ~ 0 anchored eyes positioned ^-0.05 ^ ^ run function boomber:armor_stand/smart_stand/part/right_leg | ||
execute as @s[tag=boomber.armor_stand.small, tag=boomber.armor_stand.edit.body] rotated ~ 0 anchored eyes positioned ^ ^0.35 ^ run function boomber:armor_stand/smart_stand/part/body | ||
execute as @s[tag=boomber.armor_stand.small, tag=boomber.armor_stand.edit.head] rotated ~ 0 anchored eyes positioned ^ ^0.35 ^ run function boomber:armor_stand/smart_stand/part/head | ||
execute as @s[tag=boomber.armor_stand.small, tag=boomber.armor_stand.edit.base_plate] rotated ~ 0 run function boomber:armor_stand/smart_stand/part/base_plate | ||
|
||
kill @e[type=area_effect_cloud, tag=boomber.armor_stand.target] |
3 changes: 2 additions & 1 deletion
3
data/boomber/functions/armor_stand/smart_stand/toggle.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,3 +1,4 @@ | ||
execute if score #bb.ae.part bb.success matches 1..2 run function boomber:armor_stand/smart_stand/toggle/arms | ||
execute if score #bb.ae.part bb.success matches 5 run function boomber:armor_stand/smart_stand/toggle/body | ||
execute if score #bb.ae.part bb.success matches 5 if score #bb.ae.sneaking bb.variable matches 0 run function boomber:armor_stand/smart_stand/toggle/invisible | ||
execute if score #bb.ae.part bb.success matches 5 if score #bb.ae.sneaking bb.variable matches 1.. run function boomber:armor_stand/smart_stand/toggle/body_size | ||
execute if score #bb.ae.part bb.success matches 7 run function boomber:armor_stand/smart_stand/toggle/base_plate |
3 changes: 0 additions & 3 deletions
3
data/boomber/functions/armor_stand/smart_stand/toggle/body.mcfunction
This file was deleted.
Oops, something went wrong.
3 changes: 3 additions & 0 deletions
3
data/boomber/functions/armor_stand/smart_stand/toggle/body_size.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,3 @@ | ||
execute store result score #bb.ae.body_size bb.success run data get entity @s Small | ||
execute if score #bb.ae.body_size bb.success matches 0 run data merge entity @s {Small: 1b} | ||
execute if score #bb.ae.body_size bb.success matches 1 run data merge entity @s {Small: 0b} |
3 changes: 3 additions & 0 deletions
3
data/boomber/functions/armor_stand/smart_stand/toggle/invisible.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,3 @@ | ||
execute store result score #bb.ae.invisible bb.success run data get entity @s Invisible | ||
execute if score #bb.ae.invisible bb.success matches 0 run data merge entity @s {Invisible: 1b} | ||
execute if score #bb.ae.invisible bb.success matches 1 run data merge entity @s {Invisible: 0b} |