개인 자료란 (JE)

  서버 커뮤니티

Profile 브런치 대표칭호 없음
Profile

질문하기 스크립트

랜덤티피 loop-block 구문 오류

2023.01.18 조회 수 60 추천 수 0
이해도 초보자 
게임버전 (JE) 1.19.3 
게임버전 (BE) 관련없음 
스크립트 버전 2.6.4 

options:

#Minimum amount of blocks farm from X cord to tp to

    min.x: 9

#maximum amount of blocks farm from X cord to tp to

    max.x: 609

#Minimum amount of blocks farm from Z cord to tp to

    min.z: 347

#maximum amount of blocks farm from Z cord to tp to

    max.z: 947

#Amount of time before the player will be allowed to use the command again

    cooldown: 1 minutes

#Avoid spawning in lava, water and air

    avoid: air or water block or lava block

#To add worlds it would look like 

#    worlds: "world" or "world_nether" or "world_the_end"

    worlds: "world"

#Permission

    permission: randomtp.use

#No permission message

    PermMsg: &4You do not have permission to use this command!

#Can not execute command in this world message

    NoWorldMsg: &4You can’t use this command in this world!

#Cooldown message

    SpamMsg: &4Please do not spam this command!



Command /randomtp:

    description: Teleports player to random location not in water

    permission: {@permission}

    permission message: {@PermMsg}

    aliases: /rtp, /wild, /random

    trigger:

        if world is not {@worlds}:

            message "{@NoWorldMsg}"

        else:

            if difference between {cooldowns::randomtp::%player%} and now < {@cooldown}:

                send "{@SpamMsg}"

            else:

                set {_loc::old} to player's location

                while player's location is {_loc::old}:

                    set {_loc::new} to location at random number between {@min.x} and {@max.x}, 0, random number between {@min.z} and {@max.z}

                    loop blocks above {_loc::new}:

                        if loop-block and block above loop-block are air:

                            if block under loop-block is not {@avoid}:

                                set {_loc::new} to location of loop-block

                                teleport player to {_loc::new}

                                if light level at player <= 2:

                                    set block at player to ground torch

                                set {cooldowns::randomtp::%player%} to now 

                                stop loop

                    wait 10 ticks


 Can't understand this condition: 'block under loop-block is not air or water block or lava block'

[05:48:25 INFO]:     Line: if block under loop-block is not {@avoid}:


해당오류를 어떻게 해야 해결될까요?







Warning
댓글이 없습니다.

새로운 댓글을 등록해 주세요!

뉴스 및 창작물
/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 모드에서 악성코드 발견

학교가기싫다

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