개인 자료란 (JE)

  서버 커뮤니티

Profile 레디비안 대표칭호 없음

axc8141 bd2e476832cb43b3a3bc19db38812eb9

Profile

질문하기 스크립트

스크립트를 추가하고 나서 광물이 설치가 안됩니다.

2022.10.09 조회 수 100 추천 수 0
이해도 입문자 
게임버전 (JE) 1.19.2 
게임버전 (BE) 관련없음 

스크립트를 추가하고 나서 광물이 설치가 안되서 해당하는 스크립트를 제거를 하고 로드를 했습니다.

그런데도 특정 광물들이 설치가 안되는데 이거는 스크립트를 지웠다 넣으면 될까요?



Options:

    c: &9[ &f성장 &9]

    

variables:

    {pickaxe.lv1} = 100

    {pickaxe.lv2} = 200

    {pickaxe.lv3} = 300

    {pickaxe.lv4} = 400

    {pickaxe.lv5} = 500

    

on load:

    command /성장 [<text>] [<integer>]:

    permission: pickaxe.op

    trigger:

        if arg 1 is not set:

            message ""

            message "{@c} &f/성장 &c[&f도구&c] &f- 손에 들고 있는 아이템을 &e성장&f하도록 &c설정&f합니다."

            message "{@c} &f/성장 &e[&f강화&e] &c[&f레벨&c] &f- &c강화&f가 시작되는 &e레벨&f을 &c설정&f합니다."

            message ""

            message "{@c} &e[ &f도구 종류 &e] &f곡괭이"

            message "{@c} &e[ &f강화 &e] &f1강 &c/ &f2강 &c/ &f3강 &c/ &f4강 &c/ &f5강"

            message ""

            stop

            

        if arg 1 is "곡괭이":

            if player's tool is pickaxe:

                set 1st line of lore of player's tool to ""

                set 2st line of lore of player's tool to "{@c} &e[ &f레벨 &e] &c[ &f149 &c]"

                set 3st line of lore of player's tool to ""

                set 4st line of lore of player's tool to "{@c} &e[ &f경험치 &e] &c[ &f99 &e/ &f100 &c]"

                set 5st line of lore of player's tool to ""

                message ""

                message "{@c} &f손에 든 아이템을 &e성장형 &f(으)로 &c설정&f하셨습니다."

                message ""

                stop

                

        if arg 1 is "1강":

            if arg 2 is set:

                set {pickaxe.lv1} to arg 2

                message ""

                message "{@c} &f당신은 &e1강 &f활성화 레벨을 &c%arg-2% &f(으)로 &e설정&f하셨습니다."

                message ""

                stop

                

            else:

                message ""

                message "{@c} &f/성장 &e[&f강화&e] &c[&f레벨&c] &f- &c강화&f가 시작되는 &e레벨&f을 &c설정&f합니다."

                message ""

                stop

                

        if arg 1 is "2강":

            if arg 2 is set:

                set {pickaxe.lv2} to arg 2

                message ""

                message "{@c} &f당신은 &e2강 &f활성화 레벨을 &c%arg-2% &f(으)로 &e설정&f하셨습니다."

                message ""

                stop

                

            else:

                message ""

                message "{@c} &f/성장 &e[&f강화&e] &c[&f레벨&c] &f- &c강화&f가 시작되는 &e레벨&f을 &c설정&f합니다."

                message ""

                stop

                

        if arg 1 is "3강":

            if arg 2 is set:

                set {pickaxe.lv3} to arg 2

                message ""

                message "{@c} &f당신은 &e3강 &f활성화 레벨을 &c%arg-2% &f(으)로 &e설정&f하셨습니다."

                message ""

                stop

                

            else:

                message ""

                message "{@c} &f/성장 &e[&f강화&e] &c[&f레벨&c] &f- &c강화&f가 시작되는 &e레벨&f을 &c설정&f합니다."

                message ""

                stop

                

        if arg 1 is "4강":

            if arg 2 is set:

                set {pickaxe.lv4} to arg 2

                message ""

                message "{@c} &f당신은 &e4강 &f활성화 레벨을 &c%arg-2% &f(으)로 &e설정&f하셨습니다."

                message ""

                stop

                

            else:

                message ""

                message "{@c} &f/성장 &e[&f강화&e] &c[&f레벨&c] &f- &c강화&f가 시작되는 &e레벨&f을 &c설정&f합니다."

                message ""

                stop

                

        if arg 1 is "5강":

            if arg 2 is set:

                set {pickaxe.lv5} to arg 2

                message ""

                message "{@c} &f당신은 &e5강 &f활성화 레벨을 &c%arg-2% &f(으)로 &e설정&f하셨습니다."

                message ""

                stop

                

            else:

                message ""

                message "{@c} &f/성장 &e[&f강화&e] &c[&f레벨&c] &f- &c강화&f가 시작되는 &e레벨&f을 &c설정&f합니다."

                message ""

                stop

                

on break:

    if event-block is stone or coal ore or iron ore or gold ore or 73 or 21 or 56 or 129:

        if player's tool is pickaxe:

            if lore of player's tool contains "성장":

                set {_성장::*} to uncolored lore of player's tool split by "||"

                replace all "[" and "]" and "성장" and "경험치" and "/" and " " and "100" with "" in {_성장::4}

                set {_성장::4} to {_성장::4} parsed as integer

                set {_성장} to {_성장::4}

                add 1 to {_성장}

                if {_성장} >= 100:    

                    replace all "[" and "]" and "성장" and "레벨" and " " with "" in {_성장::2}

                    set {_성장2} to {_성장::2} parsed as integer

                    add 1 to {_성장2}

                    if {pickaxe.lv1} = {_성장2}:

                        enchant player's tool with "fortune 1" parsed as enchantment type

                        enchant player's tool with "efficiency 1" parsed as enchantment type

                        enchant player's tool with "unbreaking 1" parsed as enchantment type

                        

                    if {pickaxe.lv2} = {_성장2}:

                        enchant player's tool with "fortune 2" parsed as enchantment type

                        enchant player's tool with "efficiency 2" parsed as enchantment type

                        enchant player's tool with "unbreaking 2" parsed as enchantment type

                        

                    if {pickaxe.lv3} = {_성장2}:

                        enchant player's tool with "fortune 3" parsed as enchantment type

                        enchant player's tool with "efficiency 3" parsed as enchantment type

                        enchant player's tool with "unbreaking 3" parsed as enchantment type

                        

                    if {pickaxe.lv4} = {_성장2}:

                        enchant player's tool with "fortune 4" parsed as enchantment type

                        enchant player's tool with "efficiency 4" parsed as enchantment type

                        enchant player's tool with "unbreaking 4" parsed as enchantment type

                        

                    if {pickaxe.lv5} = {_성장2}:

                        enchant player's tool with "fortune 5" parsed as enchantment type

                        enchant player's tool with "efficiency 5" parsed as enchantment type

                        enchant player's tool with "unbreaking 5" parsed as enchantment type

                        

                    set 2st line of lore of player's tool to "{@c} &e[ &f레벨 &e] &c[ &f%{_성장2}% &c]"

                    set 4st line of lore of player's tool to "{@c} &e[ &f경험치 &e] &c[ &f0 &e/ &f100 &c]"

                    stop

                    

                else:

                    set 4st line of lore of player's tool to "{@c} &e[ &f경험치 &e] &c[ &f%{_성장}% &e/ &f100 &c]"

                    

                stop

                

on place:

    if event-block is stone or coal ore or iron ore or gold ore or 73 or 21 or 56 or 129:

        cancel event

        message ""

        message "{@c} &f버그 방지를 위하여 &e%event-block% &f이란 아이템을 &c설치&f할 수 없습니다."

        message ""

        stop

인데요
if event-block is stone or coal ore or iron ore or gold ore or 73 or 21 or 56 or 129: 이거를 지우면 될꺼같아서 지우고 해도 안되서 고민입ㄴ다

11개의 댓글

거너아나
2022.10.09

넣은 스크 구문을 알려주셔야 알 것 같습니다

레디비안
2022.10.09
@거너아나

글 수정했습니다.

 

거너아나
2022.10.09
@레디비안

on place:

 

if player is not op:

if event-block is stone or coal ore or iron ore or gold ore or 73 or 21 or 56 or 129:

로 바꾸시면 됩니다

qsef1256
2022.10.09

스크립트 이름을 도중에 변경 했을 경우 변경 전 이름이 남아있을 수 있습니다. 서버 재시작을 하면 해결되는 부분이지만, 재시작이 어려운 환경일 경우 변경 전 이름으로 스크립트 이름을 재변경 한 후 disable를 진행하고, 변경 후 enable을 하시면 되겠습니다.


잊어 먹으셨으면 재시작 해야 합니다.

레디비안
2022.10.09
@qsef1256

재시작을 해도 안되더라구요

qsef1256
2022.10.09
@레디비안

안되는 건 알겠는데 무슨 일이 일어난 건지는 모르겠네요.

0reo
2022.10.09

아예 저 스크립트를 날려도 계속 동일한 현상이 발생하시나요?

레디비안
2022.10.10
@0reo

해당되는 스크립트를 날려도 동일현상이 됩니다.

 

0reo
2022.10.10
@레디비안

플러그인하고 스크립트 아예 다 빼고도 그런가요?

레디비안
2022.10.10
@0reo

버킷날렷다가 다시했어요

 

0reo
2022.10.10
@레디비안

그니까 버킷을 아예새로 바닐라상태로 햇는데도 그런다고요?

뉴스 및 창작물
/files/thumbnails/268/789/003/262x150.crop.jpg?20240515192032

레드스톤

벌레먹은 돌 빠르게 제거하는 법

GlassesFilm

2024-05-15

0

/files/thumbnails/797/788/003/262x150.crop.jpg?20240515090924

건축

마인크래프트로 구현한 카르카손 보드게임

Warak

2024-05-15

1

/files/thumbnails/487/784/003/262x150.crop.jpg?20240508233607

모드

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

학교가기싫다

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