이해도 | 초보자 |
---|---|
게임버전 (JE) | 1.19.2 |
게임버전 (BE) | 관련없음 |
스크립트 애드온 | 없음 |
on block break:
set {_loc} to location of event-block
set {_item} to create item {_event-block}'s type at {_loc} offset by 0.5 in y
set pickup delay of {_item} to 100000 ticks
set {_wolf} to spawn wolf at {_loc}
make {_wolf} a baby
make {_wolf} angry
set max health of {_wolf} to 5
set health of {_wolf} to 5
add potion effect invisibility to {_wolf} for 100000 ticks
set target of {_wolf} to {_item}
set {_p} to closest player to {_wolf}
wait 1 second
while {_wolf} is alive:
if {_p} is within 2 blocks of {_item}:
set {_p_loc} to location of {_p}
set {_v} to vector between {_p_loc} and {_wolf}
teleport {_wolf} to {_p_loc} offset by -0.5 in y
set rotation of {_wolf} to yaw of {_v}
wait 1 tick
{_p} damage 1
else:
wait 1 tick
set pickup delay of {_item} to 0 ticks
구문을 이렇게 만들었는 게 자꾸 에러가 나와여.
재가 만들고 싶은 구문은 아이템이 공격하는 구문입니다
댓글이 없습니다.
새로운 댓글을 등록해 주세요!