개인 자료란 (JE)

  서버 커뮤니티

Profile 머농 대표칭호 없음
Profile

질문하기 스크립트

현실 시간 중에 일을 스크립트에 int함수로 추출하고 싶습니다

2024.07.12 조회 수 52 추천 수 0
이해도 초보자 
게임버전 (JE) 1.20.1 
게임버전 (BE) 관련없음 

on right click with stick:    

    set {_toy} to uncolored name of player's tool

    replace all "[장난감 막대기] 0" and "" with "" in {_toy}

    message "%{_toy}%" to player

    if {_toy} is "01":

        set {_toy_2} to "black dust"

        

        

    message "%{_toy_2}%" to player

    set {_loc} to location 1 infront of head of player

    set {_ptc} to {_toy_2} with offset of 0, 0, 0 and speed 0

    set {_vec} to vector from player to location infront of p


1주차 2주차 3주차 4주차에 따라 계절을 바꾸고싶어서

우선적으로는 


on join:

    set {now} to now

    set {now1} to {now} formatted human-readable as "dd"

    wait 1 tick

    message "%{now1}%" to player

    if {now1} <= 7:

        set {now2} to "&a봄"

    else:

        if {now1} <= 14:

            set {now2} to "&a여름"

        else:

            if {now1} <= 21:

                set {now2} to "&a가을"

            else:

                set {now2} to "&a겨울"

이런식으로 우선 해봤었는데

set now로 저장되는거는 date로 저장되서인지 now가 inteager로 저장되어서 if문 비교가 되지않습니다

오늘 날자가 12일이라면 12라는 숫자만int로 추출할수있는 방법이 있을까요?

1개의 댓글

슈퍼레몬
2024.07.12

https://skripthub.net/docs/?id=9486 + parsed

뉴스 및 창작물
/files/thumbnails/246/898/003/262x150.crop.jpg?20241008102328

레드스톤

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

노트블럭전문가

2024-10-08

0

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

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

물귀신

2024-10-06

1

/files/thumbnails/839/895/003/262x150.crop.jpg?20241006021227

SRV레코드는 보안도메인이 아닙니다. [서버오픈시 필독]

물귀신

2024-10-05

2

/files/thumbnails/648/892/003/262x150.crop.jpg?20241002184058

아티클

마인크래프트 라이브 2024 후기: 무성의가 느껴졌던 '절망편' 라이브

라비

2024-10-02

2

/files/thumbnails/693/890/003/262x150.crop.jpg?20241007140310

소식

[방송인 필독] 시참 컨텐츠 방송인분들께 DDoS(디도스) 공격을 퍼붓는 용의자 특정중, 예방 & 대처법 정리 9

해그

2024-10-01

1