이해도 | 입문자(아무것도 몰라요) |
---|---|
게임버전 (JE) | 1.16.5 |
게임버전 (BE) | 관련없음 |
on rightclick on entity:
if entity's name is "전직관":
open chest with 3 rows named "&6&l전직" to player
set slot 10 of current inventory of player to iron sword named "&3&l기사"
set slot 13 of current inventory of player to diamond sword named "&d&l마법사"
set slot 16 of current inventory of player to wood sword named "&5&l언턴드 왕"
on inventory click:
if inventory name of current inventory of player is "&6&l전직":
if click type is left mouse button with shift or right mouse button with shift:
cancel event
else:
if clicked raw slot is 10:
cancel event
if {직업.%player%} is not set:
close player's inventory
wait 1 tick
set {직업.%player%} to "기사"
player sound "ENTITY_PLAYER_LEVELUP" with volume 1 and pitch 1 at player for player
message "&6-----------------------------------------------------"
message "&f&l당신은 &7&l기사&f&l가 되었습니다!"
message "&6-----------------------------------------------------"
message " "
여기서 player sound "ENTITY_PLAYER_LEVELUP" with volume 1 and pitch 1 at player for player 이 부분이 오류걸려요ㅠㅠ
Can't understand this condition/effect: player sound "ENTITY_PLAYER_LEVELUP" with volume 1 and pitch 1 at player for player (RPG.sk, line 19: player sound "ENTITY_PLAYER_LEVELUP" with volume 1 and pitch 1 at player for player') 이런 오류요
눙이
2021.10.30at player ~ 이후 값이 없어도 play sound 구문은 작동합니다 혹시 구문을
play sound "ENTITY_PLAYER_LEVELUP" with volume 1 and pitch 1
로 바꿔서 실행해보시겠어요?
으아아엉
2021.10.30감사합니다! player sound 라서 오류떳네영!