마인크래프트 커맨드로 콘웨이의 인생게임 만들기

Поделиться
HTML-код
  • Опубликовано: 10 ноя 2024

Комментарии • 2

  • @Pur_Jun
    @Pur_Jun  Год назад

    기본 세팅
    기본 칸 만들기: /summon minecraft:marker ~ ~ ~ {Tags:[cell]}
    생사여부 저장 스코어보드: /scoreboard objectives add l dummy
    인접 칸 정보 저장 스코어보드: /scoreboard objectives add j dummy
    l 스코어보드 결정 커맨드:
    execute as @e[tag=cell] at @s if block ~ ~ ~ minecraft:black_concrete run scoreboard players set @s l 0
    execute as @e[tag=cell] at @s if block ~ ~ ~ minecraft:white_concrete run scoreboard players set @s l 1
    메인 커맨드
    인접칸 정보 저장
    죽은 칸 주변:
    execute as @e[tag=cell,scores={l=0}] at @s if block ~ ~ ~1 minecraft:white_concrete run scoreboard players add @s j 1
    execute as @e[tag=cell,scores={l=0}] at @s if block ~1 ~ ~ minecraft:white_concrete run scoreboard players add @s j 1
    execute as @e[tag=cell,scores={l=0}] at @s if block ~ ~ ~-1 minecraft:white_concrete run scoreboard players add @s j 1
    execute as @e[tag=cell,scores={l=0}] at @s if block ~-1 ~ ~ minecraft:white_concrete run scoreboard players add @s j 1
    execute as @e[tag=cell,scores={l=0}] at @s if block ~1 ~ ~1 minecraft:white_concrete run scoreboard players add @s j 1
    execute as @e[tag=cell,scores={l=0}] at @s if block ~-1 ~ ~-1 minecraft:white_concrete run scoreboard players add @s j 1
    execute as @e[tag=cell,scores={l=0}] at @s if block ~-1 ~ ~1 minecraft:white_concrete run scoreboard players add @s j 1
    execute as @e[tag=cell,scores={l=0}] at @s if block ~1 ~ ~-1 minecraft:white_concrete run scoreboard players add @s j 1
    살아있는 칸 주변:
    execute as @e[tag=cell,scores={l=1}] at @s if block ~ ~ ~1
    minecraft:white_concrete run scoreboard players add @s j 1
    execute as @e[tag=cell,scores={l=1}] at @s if block ~1 ~ ~
    minecraft:white_concrete run scoreboard players add @s j 1
    execute as @e[tag=cell,scores={l=1}] at @s if block ~ ~ ~-1
    minecraft:white_concrete run scoreboard players add @s j 1
    execute as @e[tag=cell,scores={l=1}] at @s if block ~-1 ~ ~
    minecraft:white_concrete run scoreboard players add @s j 1
    execute as @e[tag=cell,scores={l=1}] at @s if block ~1 ~ ~1
    minecraft:white_concrete run scoreboard players add @s j 1
    execute as @e[tag=cell,scores={l=1}] at @s if block ~-1 ~ ~-1
    minecraft:white_concrete run scoreboard players add @s j 1
    execute as @e[tag=cell,scores={l=1}] at @s if block ~-1 ~ ~1
    minecraft:white_concrete run scoreboard players add @s j 1
    execute as @e[tag=cell,scores={l=1}] at @s if block ~1 ~ ~-1 minecraft:white_concrete run scoreboard players add @s j 1
    블럭 바꾸기
    execute at @e[scores={j=..1,l=1}] run setblock ~ ~ ~ minecraft:black_concrete
    execute at @e[scores={j=4..,l=1}] run setblock ~ ~ ~ minecraft:black_concrete
    인접 칸 정보 리셋
    scoreboard players set @e[tag=cell] j 0

  • @nickwhat1
    @nickwhat1 11 месяцев назад

    와 이게임이 마크도 되다니