#customcrops 플러그인 에서 작물을 캤을때
1 messages · Page 1 of 1 (latest)
음...
아무 작물이나 심고 그 블록의 데이터를 보내주실 수 있나요?
작물들은 사과로 뜨고 캐기전 작물들은 종이라 나오네요
아이템 말고 블록이요..
블록 개체가 아니라고 떠서 저렇게 말씀드려요
ㅖ
전부 캡해드릴까요?
네
아무래도 본인의 데이터를 보신 것 같네요
수정했으니 다시 ㄱㄱ
아무래도 on damage:를 써야 할 것 같은데요..??
네네
@compact mauve 차라리 모드를 쓰는 게 나을 것 같아요
Skript.jar를 압축 해제하면 aliaes.zip이 있는데
거기서 일일이 블록/아이템을 정해줄 수 있어요
import:
dev.lone.itemsadder.api.CustomStack
dev.lone.itemsadder.api.CustomBlock
dev.lone.itemsadder.api.Events.CustomBlockBreakEvent
dev.lone.itemsadder.api.Events.CustomBlockInteractEvent
dev.lone.itemsadder.api.Events.CustomBlockPlaceEvent
on CustomBlockPlaceEvent:
set {_type} to event.getNamespacedID()
stop if {_type} doesn't contains "customcrops"
replace all "customcrops:" with "" in {_type}
send action bar "&a커스텀 블록 %{_type}%을 설치했습니다!" to event.getPlayer()
on CustomBlockBreakEvent:
set {_type} to event.getNamespacedID()
stop if {_type} doesn't contains "customcrops"
replace all "customcrops:" with "" in {_type}
send action bar "&c커스텀 블록 %{_type}%을 파괴했습니다!" to event.getPlayer()```
해당 코드 사용하시면 됩니다 @compact mauve
자료 출처 ㄱ
#1170210690447974492 message
제가 알기론 노트블럭이랑 아이템 액자였나? 그랬던 거 같은데요
잘 기억이 안나네요
노트블럭이 경작지이고
그 위에 아이템액자가 있는 형식으로 알고 있어요
on damage of item frame:
하신다음에 이벤트 아이템 불러와서 감지하면 되겠죠?
저거 안되면 on break of item frame: 이거 한번 써보세요
근데 아마 저건 아이템액자를 뿌실때라 작물 뿌실때는 은 on damage로 해야 감지 될 거 같아요
이 코드 사용해봤는데요 stop 들어가 있는 줄 10번째,16번째줄에 에러가 뜨네요
can`t understand this condition: {_type} doesn'tcontains "coustomcrops"
on CustomBlockBreakEvent:을 사용했을때 {::%player%::job} is "농부": 가 오류가 생기면서 반사 종목에 선수가 없습니다 (There's no player in a reflection event) 라고 뜹니다 해결방법이 있을까요 ?
%player% < 요걸 event.getPlayer()