개인 자료란 (JE)

  서버 커뮤니티

Profile 이한다 대표칭호 없음
Profile

질문하기 스크립트

플레이어를 죽이면 그 플레이어의 머리를 얻고 싶어요!

2024.04.02 조회 수 40 추천 수 0
이해도 입문자 
게임버전 (JE) 1.20.1 
게임버전 (BE) 관련없음 
스크립트 버전 2.8.3 
스크립트 애드온 skbee, skellett, skrayfall, skUtilities 

"참수도" 라는 검으로 플레이어를 죽이면 10% 확률로 죽인 플레이어의 머리 아이템이 드롭되는 스크립트를 짜고싶은데 자꾸 오류가 떠서 질문 드립니다.. ㅠ


on death:

    if {event-entity} is a player:

        if {event-entity's damager} is a player:

            if {event-entity's damager's tool} is diamond sword named "참수도":

                chance of 10%:

                    make {a head of event-entity} drop


5개의 댓글

세찐찐
2024.04.02

흠 코드가 좀 잘못되있어서 고쳐서 적어드리겠습니다

 

on death of player:

@if attacker’s tool is diamond sword named “참수도“:

@@chance of 10%:

@@@drop 1 of victim’s skull at event-location

 

(@는 탭입니다)

이한다
2024.04.05
@세찐찐

코드에서 퍼센트를 100%로 하고 테스트 하였는데 머리가 안나옵니다 ㅠㅠ

이한다
2024.04.05
@세찐찐

on death of player:

 

if attacker's tool is a diamond sword named "&2참수도":

 

chance of 100%:

 

drop 1 of victim's skull at event-location

 

이렇게 사용했는데 머리가 안나오네용 ㅇㅅㅇ

toco
28 일 전

머리 제대로 드랍 되었나요? 에러는 안 떳는데 머리 드랍이 안되네요

이한다
25 일 전
@toco

저도 에러는 안뜨는데 머리드랍이 안됩니다 ㅠ

뉴스 및 창작물
/files/thumbnails/487/784/003/262x150.crop.jpg?20240508233607

모드

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

학교가기싫다

2024-05-08

0

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

업데이트

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

학교가기싫다

2024-05-06

0

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

레드스톤

레이저 클리너

GlassesFilm

2024-05-05

1

/files/thumbnails/576/775/003/262x150.crop.jpg?20240426232553

아티클

이달의 블록: 단단한 진흙

학교가기싫다

2024-04-26

0

/files/thumbnails/115/774/003/262x150.crop.jpg?20240428135129

업데이트

마인크래프트 1.20.5 정식 업데이트

학교가기싫다

2024-04-24

0