개인 자료란 (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/761/908/003/262x150.crop.jpg?20241025153749

건축

서울 숭례문(崇禮門) 4

KHC

2024-10-25

2

/files/thumbnails/578/899/003/262x150.crop.jpg?20241010142350

건축

경주 월정교 1

KHC

2024-10-10

2

/files/thumbnails/219/899/003/262x150.crop.jpg?20241009200950

건축

송전탑+도시 2

dbasd12

2024-10-09

2

/files/thumbnails/246/898/003/262x150.crop.jpg?20241008102328

레드스톤

단다단 - 오토노케(オトノケ) | 마인크래프트 노트블럭 커버

노트블럭전문가

2024-10-08

1

/files/thumbnails/348/896/003/262x150.crop.jpg?20241006103035

디도스/봇테러등등을 낚는 방법 4

물귀신

2024-10-06

3