개인 자료란 (JE)

  서버 커뮤니티

Profile 빈빈님 대표칭호 없음

zhdzhdzhd 15d9fde4d3fc4d83980147d680a69a7b

Profile

이해도 입문자 
게임버전 (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




2개의 댓글

세찐찐
2023.05.07

on 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.07

execute op command "/가구" - op만 사용 가능

 

execute player command "/가구" - op없어도 사용가능 (스크립트로 만든 명령어에 한해 가능)

 

execute console command "/가구" - 콘솔에서 실행


위에 보면 op command로 되어 있으니 op만 사용이 가능 한겁니다 저거를 player command로 변경하면 아마 작동은 잘 될거에욧!

뉴스 및 창작물
/files/thumbnails/487/784/003/262x150.crop.jpg?20240508233607

모드

Windows Borderless 모드에서 악성코드 발견

학교가기싫다

2024-05-08

1

/files/thumbnails/384/778/003/262x150.crop.jpg?20240512002324

업데이트

마인크래프트 자바 에디션 스냅샷 24w18a

학교가기싫다

2024-05-06

0

/files/thumbnails/855/781/003/262x150.crop.jpg?20240505141129

레드스톤

레이저 클리너

GlassesFilm

2024-05-05

1

/files/thumbnails/576/775/003/262x150.crop.jpg?20240426232553

아티클

이달의 블록: 단단한 진흙

학교가기싫다

2024-04-26

0

/files/thumbnails/115/774/003/262x150.crop.jpg?20240428135129

업데이트

마인크래프트 1.20.5 정식 업데이트

학교가기싫다

2024-04-24

0