mirror of
https://github.com/LZStealth/armor-statues.git
synced 2025-10-21 03:12:14 +01:00
Optimized random pose
This commit is contained in:
@@ -4,20 +4,27 @@
|
||||
# Entity @s: armor stand
|
||||
#
|
||||
# Summons temp armor stand
|
||||
summon minecraft:armor_stand ~ 0 ~ {NoGravity:1b,Invulnerable:1b,Marker:1b,Invisible:1b,Tags:["as_temp_armor_stand"],DisabledSlots:4144959,Silent:1b}
|
||||
#summon minecraft:armor_stand ~ 0 ~ {NoGravity:1b,Invulnerable:1b,Marker:1b,Invisible:1b,Tags:["as_temp_armor_stand"],DisabledSlots:4144959,Silent:1b}
|
||||
#
|
||||
data modify storage customizable_armor_stands:pose_storage Pose set value {Head:[0.0f,0.001f,0.0f], Body:[0.0f,0.001f,0.0f], LeftArm:[-10.0f,0.001f,-10.0f], RightArm:[-15.0f,0.001f,10.0f], LeftLeg:[-1.0f,0.001f,-1.0f], RightLeg:[1.0f,0.001f,1.0f]}
|
||||
#
|
||||
loot replace entity @e[type=minecraft:armor_stand,tag=as_temp_armor_stand] armor.head loot armor_statues:random_pose
|
||||
#loot replace entity @e[type=minecraft:armor_stand,tag=as_temp_armor_stand] armor.head loot armor_statues:random_pose
|
||||
#
|
||||
# Generate randomizers
|
||||
#
|
||||
execute as @e[type=minecraft:armor_stand,sort=nearest,limit=1,tag=as_temp_armor_stand] run function armor_statues:randomizer/head
|
||||
execute as @e[type=minecraft:armor_stand,sort=nearest,limit=1,tag=as_temp_armor_stand] run function armor_statues:randomizer/body
|
||||
execute as @e[type=minecraft:armor_stand,sort=nearest,limit=1,tag=as_temp_armor_stand] run function armor_statues:randomizer/left_arm
|
||||
execute as @e[type=minecraft:armor_stand,sort=nearest,limit=1,tag=as_temp_armor_stand] run function armor_statues:randomizer/right_arm
|
||||
execute as @e[type=minecraft:armor_stand,sort=nearest,limit=1,tag=as_temp_armor_stand] run function armor_statues:randomizer/left_leg
|
||||
execute as @e[type=minecraft:armor_stand,sort=nearest,limit=1,tag=as_temp_armor_stand] run function armor_statues:randomizer/right_leg
|
||||
#execute as @e[type=minecraft:armor_stand,sort=nearest,limit=1,tag=as_temp_armor_stand] run function armor_statues:randomizer/head
|
||||
#execute as @e[type=minecraft:armor_stand,sort=nearest,limit=1,tag=as_temp_armor_stand] run function armor_statues:randomizer/body
|
||||
#execute as @e[type=minecraft:armor_stand,sort=nearest,limit=1,tag=as_temp_armor_stand] run function armor_statues:randomizer/left_arm
|
||||
#execute as @e[type=minecraft:armor_stand,sort=nearest,limit=1,tag=as_temp_armor_stand] run function armor_statues:randomizer/right_arm
|
||||
#execute as @e[type=minecraft:armor_stand,sort=nearest,limit=1,tag=as_temp_armor_stand] run function armor_statues:randomizer/left_leg
|
||||
#execute as @e[type=minecraft:armor_stand,sort=nearest,limit=1,tag=as_temp_armor_stand] run function armor_statues:randomizer/right_leg
|
||||
function armor_statues:randomizer/head
|
||||
function armor_statues:randomizer/body
|
||||
function armor_statues:randomizer/left_arm
|
||||
function armor_statues:randomizer/right_arm
|
||||
function armor_statues:randomizer/left_leg
|
||||
function armor_statues:randomizer/right_leg
|
||||
#
|
||||
#
|
||||
# Sets random pose
|
||||
#
|
||||
@@ -25,7 +32,7 @@ data modify entity @s Pose set from storage customizable_armor_stands:pose_stora
|
||||
#
|
||||
# Kills temp armor stand
|
||||
#
|
||||
kill @e[type=armor_stand,tag=as_temp_armor_stand]
|
||||
#kill @e[type=armor_stand,tag=as_temp_armor_stand]
|
||||
#
|
||||
# Tag the armor stand as modified
|
||||
#
|
||||
|
Reference in New Issue
Block a user