#janitor thing

1 messages · Page 1 of 1 (latest)

slow pendant
#

me and my friend made this janitor thing and i updated to the latest skript version and now it doesnt work i think its bc it was a outdated script and now its diffrent but me and my friend tried our hardest to fix it but now i cant
`on join:
set {%player's uuid%.janitor.coolDown} to now

on right click on brown carpet:
send "help" to player
if player's held item is wheat named "&fʙʀᴏᴏᴍ":
if difference between now and {%player's uuid%.janitor.coolDown} is less than 1 second:
send "cancelled" to player
cancel event
else:
send "do it" to player
set {%player's uuid%.janitor.coolDown} to now
play sound "block.sponge.place" at volume 1 at pitch 1 to player
set clicked block to air
add 0.75 to {%player's uuid%::balance}
send action bar "<#49fc03>+¢75" to player
wait 0.3 seconds
send action bar "<#3cd102>+¢75" to player
wait 0.3 seconds
send action bar "<#2ea102>+¢75" to player
wait 0.3 seconds
send action bar " " to player
wait 30 seconds
set clicked block to brown carpet`

radiant vessel
#
  1. Can you explain what exactly "doesnt work" means in this situation? Do you have errors now? Are parts of this not running?
  2. Variable management
  • Use lists (::) instead of ., this means you can loop through the list, delete it all at once, etc.
  • When using lists, its almost always a good idea to have the player as the index
  • {%player's uuid%.janitor.coolDown} -> {janitorCooldown::%player's uuid%}
#

Also change clicked block to event-block

slow pendant
#

no it dosent say any erorrs it just when i try to right click the carpet it dosent do anything

radiant vessel
#

You also dont have to set the var on join, as I think difference between now and null should be 0

radiant vessel
slow pendant
radiant vessel
#

not even the one right within the event? Send sk info

slow pendant
radiant vessel
#

So the "help" doesnt send?

slow pendant
#

uh

#

idk

#

wait

radiant vessel
#

i already mentioned changing the variables earlier

slow pendant
#

that dosent fix it

radiant vessel
slow pendant
radiant vessel
#

well im trying to figure out where your code breaks but you wont tell me

#

does it break because the event isnt triggered?
does it break because a condition doesnt pass?