Skip to content

Instantly share code, notes, and snippets.

@hUwUtao
Last active January 11, 2024 17:37
Show Gist options
  • Save hUwUtao/945c96e900f90a7f260a35578e75955b to your computer and use it in GitHub Desktop.
Save hUwUtao/945c96e900f90a7f260a35578e75955b to your computer and use it in GitHub Desktop.
Các câu lệnh mycommands armstand config của Team Fuho

Các lệnh sửa armorstand thủ công

  • Dành cho server chạy MyCommands

Lưu ý

Lệnh sẽ lựa chọn thực thể armor_stand gần nhất, tối đa 1, trong bán kính giới hạn 1

Các lệnh

  • /aspawn: Tạo armstand, không rơi, trọng tâm vào khối đang đứng
  • /anset <NBT> (1|0): Sửa đổi giá trị có/không cấu hình armstand

    Câu lênh nhận 1 - có, và 0 - không

    Các NBT nhị phân của armstand

    • Invulnerable: Không thể đánh (không cần thiết khi Invisible)
    • NoGravity: Không thể rơi (Mặc định)
    • ShowArms: Hiện cánh tay (Mặc định, không cần thiết khi Invisible)
    • Invisible: Ẩn thân, không thể bị đánh?, không ẩn giáp và đồ trên tay
    • Small: Kiểu bé, có mô hình tương tự Zombie Bé
    • OnGround: Ở trên mặt đất?
    • NoBasePlate: Không có đế

    Ví dụ, muốn ẩn một armstand: /anset Invisible 1

  • /alate <x> <y> <z>: Di chuyển tương đối

    Ví dụ: /alate 0 0 -1 sẽ tương đương với /tp ~ ~ ~-1, hoặc /alate 0 1 0 sẽ làm armstand bay lên 1 block, không rơi là hành vi mặc định

    Cụ thể hơn, x/y/z là phần sau phép tương đương ~ Tips căn chỉnh: Viết 1 lệnh di chuyển theo 1 hướng cố dịnh, ví dụ /alate .5 0 0, sau đó / + up + enter liên tục để thực hiện căn chỉnh nhanh chóng

  • /ashead: Sao chép vật thể trên tay người chơi sang đầu của armstand
  • /arot <x> <y> <z>: Xoay đầu armstand

    [!NOTE] Giá trị lưu trữ tuyệt đối, không tương đối

  • /armrf: Xóa armstand

  • Viết tắt: armstand - armorstand - armor stand
aspawn:
command: /aspawn
type: RUN_COMMAND
runcmd:
- '/execute at @s align xyz run summon minecraft:armor_stand ~.5 ~ ~.5 {NoGravity:1b}'
anset:
command: /anset
type: RUN_COMMAND
runcmd:
- '/data modify entity @e[type=minecraft:armor_stand,distance=..2,sort=nearest,limit=1] $arg1 set value $arg2b'
alate:
command: /alate
type: RUN_COMMAND
runcmd:
- '/execute as @e[type=minecraft:armor_stand,distance=..1,limit=1] at @s run tp @s ~$arg1 ~$arg2 ~$arg3'
ashead:
command: /ashead
type: RUN_COMMAND
runcmd:
- '/data modify entity @e[type=minecraft:armor_stand,distance=..2,sort=nearest,limit=1] ArmorItems insert 3 from entity @p SelectedItem'
arot:
command: /arot
type: RUN_COMMAND
runcmd:
- '/data modify entity @e[type=minecraft:armor_stand,distance=..1,limit=1] Pose merge value {Head:[$arg1f,$arg2f,$arg3f]}'
armrf:
command: /armrf
type: RUN_COMMAND
runcmd:
- '/minecraft:kill @e[type=minecraft:armor_stand,distance=..1,limit=1]'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment