개인 자료란 (JE)

  서버 커뮤니티

Profile 고사뤼 대표칭호 없음
Profile

질문하기 스크립트

이 스크립트가 작동을 안하는데 수정 좀 해주실 수 있나요?

2023.07.30 조회 수 23 추천 수 0
이해도 입문자 
게임버전 (JE) 관련없음, 1.20.1 
게임버전 (BE) 관련없음 

on damage:

@if victim is an end crystal:

@@if {health::%event-location%} is not set:

@@@cancel event

@@@set {health::%event-location%} to 20

@@@add -1 to {health::%event-location%}

@@@message “남은 체력 : %{health::%event-location%}%/20” to attacker

@@else if {health::%event-location%} is set:

@@cancel event

@@@add -1 to {health::%event-location%}

@@@message “남은 체력 : %{health::%event-location%}%/20” to attacker

@@else if {health::%event-location%} is 1:

@@@delete {health::%event-location%}

@@@message “크리스탈이 부셔짐!” to attacker




5개의 댓글

작은거인
2023.07.30

어느 부분이 작동을 안하는지 말해주세요

고사뤼
2023.07.30
@작은거인

원래 데미지 상관없이 때려서 보이는 일정치를 때리면 파괴하면 파괴됬다고 뜨는 코어인데 스크립트를 적용했을때 다른 엔티티도 안때려지고 크리스탈을 때렸을때 메세지도 안나오고 스크립트대로 20대를 때려봐도 부서지지 않네용..

작은거인
2023.07.30
@고사뤼

? 다른 엔티티도 안떄려진다고요?

고사뤼
2023.07.30
@작은거인

환타비
2023.07.30
@고사뤼

일단 뭐가 문제인지 정확하게는 모르겠지만 일단

 

add -1 to 이부분 을 subtract 1 from 변수 이렇게 변경하시면 줄어드는거는 정확하게 작동 할겁니다!

뉴스 및 창작물
/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

/files/thumbnails/762/770/003/262x150.crop.jpg?20240418073724

레드스톤

T.B.H (고민중독) | 노트블럭 버전 | NoteBlock Cover [한국어 영어 중국어 가사 추가]

노트블럭전문가

2024-04-18

0

/files/thumbnails/218/767/003/262x150.crop.jpg?20240412130213

레드스톤

우리의 꿈 - 원피스 오프닝

노트블럭전문가

2024-04-12

0

/files/thumbnails/505/766/003/262x150.crop.jpg?20240411122306

레드스톤

기동전사 건담 수성의 마녀 | 노트블럭 커버 1

노트블럭전문가

2024-04-11

1