HyperScript 1.7.50
Ten things that used to take a timer and a handful of variables are one line now, and there is a ready-made script for managing worlds.
Added
- A teleport that waits.
teleport player to {spawn} after 5 seconds unless they move
It counts down on the player's action bar and takes them there when the time is over. With unless they move, walking away calls it off. What it says is in config.yml under messages:.
- An action bar that stays.
send action bar "&cIn combat" to player for 10 seconds, oruntil <condition>orwhile <condition>. It is said again every second instead of fading. - Combat.
player is in combatis true for 15 seconds after a player hit another player or was hit by one.on combat start:andon combat end:run when a fight begins and is over, with%event.opponent%.put <who> in combat [for <duration>]andtake <who> out of combatsay it yourself. The time iscombat-timeinconfig.yml. - Being away.
player is afkis true once a player has done nothing for 5 minutes: not moved, looked around, clicked, chatted or run a command.on afk:andon afk return:run when they go and come back. The time isafk-timeinconfig.yml. - Blocks for a time.
set block at {_spot} to glass for 10 secondsputs back what was there afterwards, also when the scripts are reloaded or the server stops. - Numbers that float up.
show floating text "&c-%event.damage%" at victimputs text at a place, a creature or a player; it drifts up a block and is gone. This is how damage numbers are made.for 2 secondssays how long. - Pointing the way.
point player to {quest.chest}draws a trail of sparks from the player towards a place, which only they see. It ends when they get there, withstop pointing <who>, or withfor,untilorwhile. - A glow one player sees.
make {_target} glow for player [for 30 seconds]gives a creature or a player the outline that shows through walls, for that one player only;make {_target} stop glowing for playertakes it away. Needs a Paper server, version 1.20.5 or newer; elsewhere it does nothing and says so once in the log. The outline is white. - A bar made of text.
bar of {_xp} out of 100gives&a█████&7█████. Addwith 20 characters,using "|"andcolored "&a" and "&8"as wanted. - Short numbers.
short(1250)gives1.3k,short(3400000)gives3.4M. - WorldsManager, a ready-made script on the website's Scripts page:
/hs install WorldsManager./worldmakes worlds (normal, flat, void, amplified, nether, end), lists them, takes you or somebody else to one, loads, unloads and deletes them, sets the spawn, and changes time, weather, difficulty and game rules of the world you are in. Deleting asks twice, and only worlds made by a script can be deleted. The server setup (/setupserver) installs it with the others.