zhdzhdzhd 15d9fde4d3fc4d83980147d680a69a7b
이해도 | 입문자 |
---|---|
게임버전 (JE) | 1.19.4 |
게임버전 (BE) | 1.19.x |
스크립트 버전 | 2.6.4 |
on rightclick on entity:
if entity's name is "가구":
execute op command "/가구"
command /가구:
trigger:
open chest with 3 rows named "&0▶가구◀" to player
set slot 2 of current inventory of player to oak wood named "&6&l나무"
set slot 3 of current inventory of player to azure bluet named "&a&l자연"
set slot 5 of current inventory of player to stick named "&7&l도구"
set slot 6 of current inventory of player to apple named "&c&l음식"
set slot 11 of current inventory of player to crafting table named "&f&l기능"
set slot 12 of current inventory of player to Bell named "&b&l인테리어"
set slot 14 of current inventory of player to Enchanted Book named "&e&l책"
set slot 15 of current inventory of player to Painting named "&d&l그림"
set slot 21 of current inventory of player to totem of Undying named "&3&l피규어"
set slot 23 of current inventory of player to ender pearl named "&9&l기타"
오피는 NPC를 우클릭하면 오피는 되는데, 일반 플레이어는 명령어가 실행되지 않습니다 ㅠㅠ 방법이 없을까요?
사용 플러그인 : CITIZEN 2
세찐찐
2023.05.07on rightclick on entity:
-if entity's name is "가구":
—open chest with 3 rows named "&0▶가구◀" to player
—set slot 2 of current inventory of player to oak wood named "&6&l나무"
—set slot 3 of current inventory of player to azure bluet named "&a&l자연"
—set slot 5 of current inventory of player to stick named "&7&l도구"
—set slot 6 of current inventory of player to apple named "&c&l음식"
—set slot 11 of current inventory of player to crafting table named "&f&l기능"
—set slot 12 of current inventory of player to Bell named "&b&l인테리어"
—set slot 14 of current inventory of player to Enchanted Book named "&e&l책"
—set slot 15 of current inventory of player to Painting named "&d&l그림"
—set slot 21 of current inventory of player to totem of Undying named "&3&l피규어"
—set slot 23 of current inventory of player to ender pearl named "&9&l기타"
이렇게 코드를 작성하시면 됩니다
-는 탭을 의미합니다
환타비
2023.05.07execute op command "/가구" - op만 사용 가능
execute player command "/가구" - op없어도 사용가능 (스크립트로 만든 명령어에 한해 가능)
execute console command "/가구" - 콘솔에서 실행
위에 보면 op command로 되어 있으니 op만 사용이 가능 한겁니다 저거를 player command로 변경하면 아마 작동은 잘 될거에욧!