개인 자료란 (JE)

  서버 커뮤니티

Profile NewTime2458 대표칭호 없음

whitechoco5810 b70eb77e15a04980b63c2e632fd63f36

Profile

질문하기 스크립트

스크립트 짜는데 뭐가 잘 안된다네요..

2024.07.19 조회 수 85 추천 수 0
이해도 초보자 
게임버전 (JE) 1.20.1 
게임버전 (BE) 관련없음 
스크립트 버전 Skript-2.9.0 
스크립트 애드온 SkQuery-4.1.10,SkBee-3.5.7 

스크립트 짜는중인데 자꾸 오류뜨네요...



16:06:46 INFO]: [Skript] Line 44: (보스몬스터.sk)

[16:06:46 INFO]:     Can't understand this condition/effect: apply nbt {_nbt} to {_zombie}

[16:06:46 INFO]:     Line: apply nbt {_nbt} to {_zombie}

[16:06:46 INFO]:

[16:06:47 INFO]: [Skript] Line 51: (보스몬스터.sk)

[16:06:47 INFO]:     Can't understand this condition/effect: spawn 10 of flame at location of {_zombie}

[16:06:47 INFO]:     Line: spawn 10 of flame at location of {_zombie}

[16:06:47 INFO]:

[16:06:47 INFO]: [Skript] Line 54: (보스몬스터.sk)

[16:06:47 INFO]:     Variables cannot be used here.

[16:06:47 INFO]:     Line: if loop-entity is not {_zombie} and (loop-entity is a player or loop-entity is a mob):

[16:06:47 INFO]:

[16:06:47 INFO]: [Skript] Line 44: (RTP.sk)

[16:06:47 INFO]:     There's no block in a command event

[16:06:47 INFO]:     Line: if block under loop-block is not {@avoid}:

[16:06:47 INFO]:

[16:06:47 INFO]: [Skript] Line 5: (보스몬스터.sk)

[16:06:47 INFO]:     Can't understand this section: format gui slot 10 of player with nether star named "체력 설정" with lore "클릭하여 체력 설정" to close then run

[16:06:47 INFO]:     Line: format gui slot 10 of player with nether star named "체력 설정" with lore "클릭하여 체력 설정" to close then run:

[16:06:47 INFO]:

[16:06:47 INFO]: [Skript] Line 15: (보스몬스터.sk)

[16:06:47 INFO]:     Can't understand this section: format gui slot 12 of player with diamond sword named "공격력 설정" with lore "클릭하여 공격력 설정" to close then run

[16:06:47 INFO]:     Line: format gui slot 12 of player with diamond sword named "공격력 설정" with lore "클릭하여 공격 력 설정" to close then run:

[16:06:47 INFO]:

[16:06:47 INFO]: [Skript] Line 25: (보스몬스터.sk)

[16:06:47 INFO]:     Can't understand this section: format gui slot 14 of player with clock named "스킬 주기 설정" with lore "클릭하여 스킬 주기 설정" to close then run

[16:06:47 INFO]:     Line: format gui slot 14 of player with clock named "스킬 주기 설정" with lore "클릭하여 스킬 주기 설정" to close then run:

[16:06:47 INFO]:

[16:06:47 INFO]: [Skript] Line 35: (보스몬스터.sk)

[16:06:47 INFO]:     Can't understand this section: format gui slot 16 of player with spawn egg named "몬스터 소환" with lore "클릭하여 몬스터 소환" to close then run

[16:06:47 INFO]:     Line: format gui slot 16 of player with spawn egg named "몬스터 소환" with lore "클릭하여 몬스터 소환" to close then run:



오류 메세지고




command /몬스터설정:

    trigger:

        open chest with 3 rows named "몬스터 설정" to player

        wait 1 tick

        format gui slot 10 of player with nether star named "체력 설정" with lore "클릭하여 체력 설정" to close then run:

            open chest with 3 rows named "체력 설정" to player

            wait 1 tick

            format gui slot 10 of player with red wool named "50" to close then run:

                set {monster::health} to 50

                send "체력이 50으로 설정되었습니다." to player

            format gui slot 11 of player with red wool named "100" to close then run:

                set {monster::health} to 100

                send "체력이 100으로 설정되었습니다." to player


        format gui slot 12 of player with diamond sword named "공격력 설정" with lore "클릭하여 공격력 설정" to close then run:

            open chest with 3 rows named "공격력 설정" to player

            wait 1 tick

            format gui slot 10 of player with iron sword named "10" to close then run:

                set {monster::damage} to 10

                send "공격력이 10으로 설정되었습니다." to player

            format gui slot 11 of player with iron sword named "20" to close then run:

                set {monster::damage} to 20

                send "공격력이 20으로 설정되었습니다." to player


        format gui slot 14 of player with clock named "스킬 주기 설정" with lore "클릭하여 스킬 주기 설정" to close then run:

            open chest with 3 rows named "스킬 주기 설정" to player

            wait 1 tick

            format gui slot 10 of player with clock named "30초" to close then run:

                set {monster::skill_interval} to 30

                send "스킬 주기가 30초로 설정되었습니다." to player

            format gui slot 11 of player with clock named "60초" to close then run:

                set {monster::skill_interval} to 60

                send "스킬 주기가 60초로 설정되었습니다." to player


        format gui slot 16 of player with spawn egg named "몬스터 소환" with lore "클릭하여 몬스터 소환" to close then run:

            call spawnCustomMonster(player's location)


function spawnCustomMonster(loc: location):

    spawn a zombie at {_loc}

    set {_zombie} to last spawned entity

    set max health of {_zombie} to {monster::health}

    set health of {_zombie} to {monster::health}

    set {_nbt} to nbt compound from "{NoAI:1b}"

    apply nbt {_nbt} to {_zombie}

    set name of {_zombie} to "§b커스텀 몬스터"

    set {_damage} to {monster::damage}

    while {_zombie} is alive:

        wait {monster::skill_interval} * 20 ticks

        if {_zombie} is alive:

            play sound "entity.blaze.shoot" at {_zombie}

            spawn 10 of flame at location of {_zombie}

            wait 30 ticks

            loop all entities in radius 5 around {_zombie}:

                if loop-entity is not {_zombie} and (loop-entity is a player or loop-entity is a mob):

                    deal ({_damage} * 2) damage to loop-entity

                    send "&cYou suffered %{_damage} * 2% damage from the custom monster's skill!" to loop-entity


on load:

    broadcast "&a[커스텀 몬스터 스크립트] 로드 완료"



스크립트 내용입니다

1개의 댓글

S심심해
2024.07.19

구문을 어디서 찾아서 쓰신건가요?

뉴스 및 창작물
/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