#script help

1 messages · Page 1 of 1 (latest)

dawn thorn
#

command /daily:
permission: daily.everyone
trigger:
execute command "crates give key daily"

bleak spindle
#

Erase your spaces at before your lines of code then put them again

#

Should fix it

hard basalt
#

Also executing a console command without giving the key to the player won't work

dawn thorn
#

ok i fixed it how i do a op gap cooldown

final lagoon
#

how about you say that again but in English. You want a cooldown on eating enchanted golden apples?

#

if that's the case, then on consume is the event you'll need

dawn thorn
#

ok thanks

hard basalt
#

Also, always name your posts something helpful

#

not just 'script help'

dawn thorn
#

sorry

#

somebody know how to make a script that gives permant saturation on join so they dont get hunger?

bleak spindle
#

Using the on join: event, start a while loop to remove saturation from the player and then apply more saturation. After that, wait a few seconds

hard basalt
#

or you could apply it for infinite time

#

but like why do that?

bleak spindle
#

Oh yeah, if you're making it be active all the time, then sure

hard basalt
#

gotta do the more difficult way

hard basalt
bleak spindle
#

Yeah you right

dawn thorn
#

Yeah all the time

hard basalt
dawn thorn
#

on break:
if region at player isn't "box":
if event-block is cobwebs:
cancel event

on place:
if region at player isn't "box":
if event-block is cobwebs:
cancel event

on break:
if region at player is "box":
if event-block is not cobwebs, emerald ore, emerald block, diamond block, diamond ore, gold block, gold ore, white glazed terracotta, light grey glazed terracotta, grey glazed terracotta, black glazed terracotta, brown glazed terracotta, red glazed terracotta, orange glazed terracotta, yellow glazed terracotta or lime glazed terracotta:
cancel event

on place:
if region at player is "box":
if event-block is not cobwebs:
cancel event

how to add permision there so if you have for example permission "bypass.box" these script isnt applied for you

hard basalt
#

player doesn't have permission ""

final lagoon
#

or if player has permission "bypass.box": stop do stuff

dawn thorn
#

at the top or the end