Hey, I have a Question:
How can I remove the "76" from Seconds?
My code:
How can I remove the "76" from Seconds?
My code:
Code:
Every second:
set {_waited} to difference between {stundenevent} and now
if {_waited} is less than 60 minutes:
set {_time} to "%difference between 60 minutes and {_waited}%"
replace every "hours" with "h" in {_time}
replace every "hour" with "h" in {_time}
replace every "minutes" with "m" in {_time}
replace every "minute" with "m" in {_time}
replace every "seconds" with "s" in {_time}
replace every "seconds" with "s" in {_time}
replace every "and" with "" in {_time}
execute console command "/Hd setline stundenevent 2 &8> &7&o%{_time}%"
else:
set {stundenevent} to now
broadcast ""
broadcast ""
broadcast "&8> &7Das Stundenevent beginnt jetzt&8!"
broadcast ""
broadcast ""
wait 1 second
broadcast "&8> &7Du hast &63x Premiumkit &7erhalten&8!"
give 3 book named "&8> &6Premiumkit" with lore "&7&oerstellt von &4H4wki" to all players
wait 1 second
broadcast "&8> &7Du hast &e3x Goldblock &7erhalten&8!"
give 3 gold block to all players
wait 1 second
broadcast "&8> &7Du hast &3SkyBlock-Spitzhacke &7erhalten&8!"
give diamond pickaxe of efficiency 3 and unbreaking 1 named "&8&k|&3Spitzhacke&8&k|" to all players
wait 1 second
broadcast "&8> &7Du hast &3SkyBlock-Schaufel &7erhalten&8!"
give diamond shovel of efficiency 3 and unbreaking 1 named "&8&k|&3Schaufel&8&k|" to all players
wait 1 second
broadcast "&8> &7Du hast &3SkyBlock-Axt &7erhalten&8!"
give diamond axe of efficiency 3 and unbreaking 1 named "&8&k|&3Axt&8&k|" to all players
wait 1 second
broadcast "&8> &7Du hast &b5x Diamant &7erhalten&8!"
give 5 diamond to all players
wait 1 second
broadcast "&8> &7Du hast &b1x H4wkispalter &7erhalten&8!"
give diamond axe of sharpness 4 named "&4H4wkispalter" to all players
broadcast ""
broadcast "&8> &7Das Stundenevent ist vorbei&8!"
broadcast ""