이해도 | 중급자(필요한 애드온을 찾아서 만들 수 있어요) |
---|---|
게임버전 (JE) | 1.16.5 |
게임버전 (BE) | 관련없음 |
스크립트 버전 | 2.6 |
if clicked raw slot is 13:
if slot 11 of current inventory of player is oak log:
if slot 15 of current inventory of player is oak planks:
set {_log} to slot 11 of current inventory of player
set {_log2} to amount of {_log} in current inventory of player - 1
delete slot 11 of current inventory of player
set slot 11 of current inventory of player to {_log2} of {_log}
set {_log3} to slot 15 of current inventory of player
set {_log4} to amount of {_log3} in current inventory of player + 2
delete slot 15 of current inventory of player
set slot 15 of current inventory of player to {_log4} of {_log3}
else if slot 15 of current inventory of player is air:
set {_log} to slot 11 of current inventory of player
set {_log2} to amount of {_log} in current inventory of player - 1
delete slot 11 of current inventory of player
set slot 11 of current inventory of player to {_log2} of {_log}
set slot 15 of current inventory of player to 2 oak planks
이 구문이 13번째 칸을 누르면 왼쪽 칸에 있는 나무가 가공되서 오른쪽으로 나오는 구문인데,
이상하게도 나무가 1개일시에만 작동이 됩니다.
2번째 줄에 문제가 있는것 같은데,
이것을 어떻게 해야 될까요..?
스크립터브혼
2021.10.01> if slot 11 of current inventory of player is oak log:
type of를 사용하시면 됩니다.
> if type of slot 11 of current inventory of player is oak log:
> set {_log2} to amount of {_log} in current inventory of player - 1
아이템의 개수는 amount of 가 아니라 item amount of 를 사용합니다.
> set {_log2} to item amount of {_log} in current inventory of player - 1
냐이쿠스파워맨
2021.10.02그렇게나 간단한 방법이 있었다니.. 감사합니다!