#Light

1 messages · Page 1 of 1 (latest)

bright flume
#

I want light player like torch if player's helmet is glass.

#

whyyyyy

#

tell me anything pls

sharp nest
#
On armor equip:
    If player's helmet is glass:
        While true:
            If player's helmet is glass:
                Set {_x} to location at player
                make player see {_x} as light
                wait 0.5 second
                make player see {_x} as air

Try this but its not best solution

bright flume
#

what addons I need?

sharp nest
#

Idk, im on phone

#

If there is any erorrs, send them

bright flume
#

my program can't recognize on armor equip event

sharp nest
#

Hm

#

Try on armor change:

bright flume
#

then

sharp nest
#

Try while player's helmet is glass:

bright flume
#

I tried like this

#

but my character doesnt glow like touch

#

torch

sharp nest
#

Now you will see light only one time

#

But you want glow (effect) or (light)

bright flume
#

light

#

not glow

sharp nest
#
On armor change:
    If player's helmet is glass:
        while player's helmet is glass:
            Set {_x} to location at player
            make player see {_x} as light
            wait 0.5 second
            make player see {_x} as air

Try this

bright flume
#

I did it

sharp nest
#

Nice

bright flume
#

there is no error

#

but

sharp nest
#

U sure your helmet is glass?

bright flume
#

it doesnt work

#

yep

#

enchanted glass

sharp nest
#

Oh

bright flume
#

like this

sharp nest
#

Firstly try to replace "light" with "torch"

bright flume
#

make player see {_x} as torch

#

like this?

sharp nest
#

Yup

#

I have 2 % battery lol

bright flume
#

it doesnt work ㅠㅠ

sharp nest
#

So go back to light

bright flume
#

wait

sharp nest
#

And try to wear normal glass

bright flume
#

k

#

ok

#

it doesnt work

#

although it's not enchanted

sharp nest
#

So lets try to debug this code

#

Try to add broadcast 1 at on armor change

#

And next one in while players helmet is glass

bright flume
#

lets try another solution tommorow

sharp nest
#

k

bright flume
#

its 23:45 here

sharp nest
#

oh

bright flume
#

good night friend

sharp nest
#

Okay

#

Bye

magic marlin
#

Why don't we try replacing that block to light instead of using make player see {_x} as light?

sharp nest
#

We have to add another if before changing light to air if we wanna make it server side

magic marlin
#

.-.

bright flume
#

Hat bui Hi

#

Can you write the full command?

#

I started skript yesterday

#

So it is difficult for me to make command without any help.

magic marlin
#

I started skript last monday :)

bright flume
#

Good

magic marlin
#

Every 1 tick:
Loop all players:
If loop-player's helmet is glass:
Set {_x} to location at loop-player
make loop-player see block at {_x} as dirt
wait 0.5 second
make loop-player see block at {_x} as air

#

Try this to see if it turns the player's block into dirt or not
If it work, replace dirt to light

#

I couldn't find the replace effect so I don't know if my idea worked or not, but I need to go to sleep now. Bye

sharp nest
#

every 1 tick is not a good idea, i tried to dont use it, but if you dont want to try, you can use it

#

(i use it sometimes too bc im lazy)

muted storm
#

why peridodical

#

on armour change

sharp nest
#

you don't help, spoonfeeding is bad, but if a person doesn't know how to do anything, it's hard for him to do something on his own

muted storm
#

I do help

#

I’ll explain things