npc상점 커맨드(be,pe)

Поділитися
Вставка
  • Опубліковано 6 лют 2025
  • #be #pe #minecraft #마인크래프트 #마크 #커맨드 #커맨드블록
    컨텐츠를 바꾸려는데 컨텐츠 추천해주세요!
    |구조물|
    0:54
    |npc 판매 명령어|
    1. tag @initiator[hasitem={item=diamond,quantity=16..}] add sell
    tag @initiator[hasitem={item=diamond,quantity=!16..}] add not_sell
    |npc 구매 명령어|
    1. tag @initiator[hasitem={item=bundle,data=16,quantity=4..}] add buy
    tag @initiator[hasitem={item=bundle,data=16,quantity=!4..}] add not_buy
    |판매 커맨드|
    1. execute as @a[tag=sell] at @s run structure load money ~~~
    (반복,무조건부,항상사용)
    2. execute as @a[tag=sell] at @s run playsound dig.chain @s ~~~ 1 1.6
    (체인,무조건부,항상사용)
    3. clear @a[tag=sell] diamond 0 16
    (체인,무조건부,항상사용)
    4. tag @a remove sell
    (체인,무조건부,항상사용)
    |판매 불가 커맨드|
    1. tellraw @a[tag=not_sell] {"rawtext":[{"text":"§c다이아가 최소 16개여야 합니다"}]}
    (반복,무조건부,항상사용)
    2. playsound note.guitar @a[tag=not_sell]
    (체인,무조건부,항상사용)
    3. tag @a remove not_sell
    (체인,무조건부,항상사용)
    |구매 커맨드|
    1. give @a[tag=buy] apple
    (반복,무조건부,항상사용)
    2. execute as @a[tag=buy] at @s run playsound dig.chain @s ~~~ 1 1.6
    (체인,무조건부,항상사용)
    3. clear @a[tag=buy] bundle 16 4
    (체인,무조건부,항상사용)
    4. tag @a remove buy
    (체인,무조건부,항상사용)
    |구매 불가 커맨드|
    1. tellraw @a[tag=not_buy] {"rawtext":[{"text":"§c다이아몬드로 산 꾸러미가 4개가 있어야 합니다"}]}
    (반복,무조건부,항상사용)
    2. playsound note.guitar @a[tag=not_buy]
    (체인,무조건부,항상사용)
    3. tag @a remove not_buy
    (체인,무조건부,항상사용)

КОМЕНТАРІ • 1

  • @민준은
    @민준은 6 днів тому +1

    혹시 우클릭 감지 모바일로 가능 한건가요? 가능하다면 영상으로...