개인 자료란 (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/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 모드에서 악성코드 발견

학교가기싫다

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