jackoqp a392bd442f034ee6b45a6302a5010b49
이해도 | 입문자 |
---|---|
게임버전 (JE) | 1.19.4 |
게임버전 (BE) | 1.19.x |
스크립트 버전 | 2.7.0-beta3 |
스크립트 애드온 | 에드온 다 있음 |
상점 스크립트 구문인데 give 1 elytra named "" to player 여기에다가 설명을 써도안나옵니다
40,54는 오류가뜹니다 오류는 Can't understand this condition/effect: set elytra to clicked item
이렇게 둘다 뜹니다. 도와주십쇼!
on inventory click:
if name of current inventory is "도구상점":
cancel event
if "%index of clicked slot%" is "10":
if click type is left mouse button:
cancel event
set {_lore} to uncolored line 1 of lore of clicked item
replace all "가격 " and ":" and " " and "원" with "" in {_lore}
set {_lore} to {_lore} parsed as integer
if {money::%uuid of player%} >= 2000 is smaller than {_lore}:
send "&c돈이 부족합니다" to player
play sound "entity.experience_orb.pickup" with volume 0.5 and pitch 1 to the player
else:
set elytra to clicked item
delete lore of elytra
if player has enough space for elytra:
give 1 elytra named "" to player
remove 2000 from {money::%uuid of player%}
play sound "UI_BUTTON_CLICK" with volume 0.3 and pitch 3 to the player
else:
send "&c&l인벤토리에 충분한 공간이 없습니다!" to player
else if click type is right mouse button:
if clicked raw slot is smaller than 27:
set {_lore} to uncolored line 1 of lore of clicked item
replace all "가격 " and ":" and " " and "원" with "" in {_lore}
set {_lore} to {_lore} parsed as integer
set elytra to clicked item
delete lore of elytra
if player has 1 of elytra:
remove 1 of elytra from player's inventory
add 1000 to {money::%uuid of player%}
play sound "entity.experience_orb.pickup" with volume 0.5 and pitch 3 to the player
else:
send "&c현재 해당 아이템을 가지고 있지 않아 판매할 수 없습니다" to player
play sound "UI_BUTTON_CLICK" with volume 0.3 and pitch 3 to the player
테빌
2023.08.28Set elytra of player가 뭘 의미하는지..?
일단 마우스에 있는 템을 바꾸시려는건
set cursor item to clicked item
이렇게 하시면 됩니다
아니면 set clicked item to elytra
이렇게 하시는건감..?