#customcrops 플러그인 에서 작물을 캤을때

1 messages · Page 1 of 1 (latest)

compact mauve
#

customcrops 플러그인 에서 작물을 캤을때
이벤트가 발생하는 구문이 있을까요?

#

customcrops 플러그인 에서 작물을 캤을때

spiral swallow
#

(아오 이 바보야 플러그인이랬잖아)

#

혹시 그 플러그인의 링크를 보내주실수 있을까요? 작동 방식을 알아야 할 것 같아요

compact mauve
#

요겁니다

spiral swallow
#

음...

spiral swallow
#

아무 작물이나 심고 그 블록의 데이터를 보내주실 수 있나요?

compact mauve
#

작물들은 사과로 뜨고 캐기전 작물들은 종이라 나오네요

spiral swallow
#

아이템 말고 블록이요..

compact mauve
#

블록 개체가 아니라고 떠서 저렇게 말씀드려요

spiral swallow
#

엥?

#

혹시 사진이 있을까요

compact mauve
#

잠시만욥

#

data get block 좌표 맞죠?

spiral swallow
#

compact mauve
#

data get block 좌표 했는데요

#

대상 블록은 블록 개체가 아닙니다

#

라고 뜨네요

spiral swallow
#

#

/data get entity @e[sort=nearest, limit=1, type=!player]

compact mauve
#

전부 캡해드릴까요?

spiral swallow
#

compact mauve
#

어떤게 뭔지 몰라 좀 길어서 영상으로 보냅니다

spiral swallow
#

아무래도 본인의 데이터를 보신 것 같네요

spiral swallow
compact mauve
spiral swallow
#

아무래도 on damage:를 써야 할 것 같은데요..??

compact mauve
#

한번해보겠습니다 감사합니다 !!

#

오류코드로 변경되네요

spiral swallow
#

근데 지금 이게 애매한 게

#

그냥 크리퍼를 써서

#

이걸 구별할 방법이 없어요

compact mauve
#

네네

spiral swallow
#

@compact mauve 차라리 모드를 쓰는 게 나을 것 같아요

#

Skript.jar를 압축 해제하면 aliaes.zip이 있는데

#

거기서 일일이 블록/아이템을 정해줄 수 있어요

obsidian sparrow
#
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
compact mauve
#

오우 감사합니다..

#

한번 해보겠습니다

unique jewel
#

제가 알기론 노트블럭이랑 아이템 액자였나? 그랬던 거 같은데요

#

잘 기억이 안나네요

#

노트블럭이 경작지이고

#

그 위에 아이템액자가 있는 형식으로 알고 있어요

#

on damage of item frame:
하신다음에 이벤트 아이템 불러와서 감지하면 되겠죠?

#

저거 안되면 on break of item frame: 이거 한번 써보세요

#

근데 아마 저건 아이템액자를 뿌실때라 작물 뿌실때는 은 on damage로 해야 감지 될 거 같아요

compact mauve
#

can`t understand this condition: {_type} doesn'tcontains "coustomcrops"

obsidian sparrow
#
  stop```
#

이런식으로 수정해보시겠어요?

#

@compact mauve

compact mauve
#

on CustomBlockBreakEvent:을 사용했을때 {::%player%::job} is "농부": 가 오류가 생기면서 반사 종목에 선수가 없습니다 (There's no player in a reflection event) 라고 뜹니다 해결방법이 있을까요 ?

obsidian sparrow
#

%player% < 요걸 event.getPlayer()