개인 자료란 (JE)

  서버 커뮤니티

Profile ysj5896 대표칭호 없음
Profile

질문하기 스크립트

아머스탠드

2023.11.30 조회 수 17 추천 수 0
이해도 초보자 
게임버전 (JE) 1.19.3 
게임버전 (BE) 관련없음 

다른 플레이어가 소환한 아머스탠드의 화살을 맞은 플레이어 죽으면 소환한 플레이어의 킬로 설정할 수 있나요?


코드 :

on entity shoot bow:

    spawn armor stand at location of player

    set {_armorstand} to last spawned entity

    set {_x} to x-coordinate of player

    set {_y} to y-coordinate of player

    set {_z} to z-coordinate of player

    set {_world} to world of player

    set {_yaw} to yaw of player

    add 25 to {_yaw}

    set {_pitch} to pitch of player

    set {_location} to location({_x}, {_y}, {_z}, {_world}, {_yaw}, {_pitch})

    teleport {_armorstand} to {_location}

    make {_armorstand} shoot an arrow at speed 3

    add -45 to {_yaw}

    set {_location} to location({_x}, {_y}, {_z}, {_world}, {_yaw}, {_pitch})

    teleport {_armorstand} to {_location}

    make {_armorstand} shoot an arrow at speed 3

    #add -25 to {_yaw}

    #set {_location} to location({_x}, {_y}, {_z}, {_world}, {_yaw}, {_pitch})

    #teleport {_armorstand} to {_location}

    #make {_armorstand} shoot an arrow at speed 3

    kill {_armorstand}

    wait 5 second

    delete arrows 

Warning
댓글이 없습니다.

새로운 댓글을 등록해 주세요!

뉴스 및 창작물
/files/thumbnails/268/789/003/262x150.crop.jpg?20240515192032

레드스톤

벌레먹은 돌 빠르게 제거하는 법

GlassesFilm

2024-05-15

0

/files/thumbnails/797/788/003/262x150.crop.jpg?20240515090924

건축

마인크래프트로 구현한 카르카손 보드게임

Warak

2024-05-15

1

/files/thumbnails/487/784/003/262x150.crop.jpg?20240508233607

모드

Windows Borderless 모드에서 악성코드 발견 3

학교가기싫다

2024-05-08

1

/files/thumbnails/384/778/003/262x150.crop.jpg?20240512002324

업데이트

마인크래프트 자바 에디션 스냅샷 24w18a

학교가기싫다

2024-05-06

0

/files/thumbnails/855/781/003/262x150.crop.jpg?20240505141129

레드스톤

레이저 클리너

GlassesFilm

2024-05-05

1