HyperScript 1.7.54
Kits, colours to work with, and limits on what HyperScript keeps going by itself.
Added
- Kits.
kit "starter":
cooldown: 1 day
items:
1 stone sword
16 bread
command /kit:
trigger:
claim kit "starter"
claim kit "starter"hands it over if the player may have it, and tells them why if not: how long is left, that they had it already, or that they lack the permission.- A kit can also have
once: true,permission: "kit.starter", and atrigger:that runs when it is handed over. give kit "starter" to playerhands the items over without asking.player can claim kit "starter",cooldown of kit "starter",reset kit "starter"andkits(the names of all of them).- When a kit was last claimed is kept through restarts.
- Colours to work with.
lerp("#ff0000", "#0000ff", 0.5)gives the colour that far between two.lerpalso takes two locations and gives the place between them; with numbers it is what it was.mix(a, b),lighten(colour, amount),darken(colour, amount).rainbow(t)goes round the colours: red at 0, green at a third, blue at two thirds.rgb(255, 136, 0)gives#ff8800.
spawn particle "dust" colored lerp("#ff0000", "#00ff00", player.health / 20) count 10 at player
- Limits, under
limits:inconfig.yml, on what goes on after a line has run: particle shapes that stay, floating texts, blocks waiting to be put back. - At most 200 shapes stay at once, and at most 3000 particles are asked for in a tick; shapes beyond that wait for their next turn, and the console is told.
- While the server manages fewer than 15 ticks a second, shapes that stay are drawn half as often.
- All of it can be changed.
/hyperscript timingsshows HyperScript's own work under the scripts': particles, text in front of players, action bars, pointers, glows, mutes. Each line says how much of it there is right now and how many milliseconds of a tick it takes, in green, yellow or red.
Changed
- A script cannot have a function of its own called
mix,lighten,darken,rainboworrgbany more, as those come with HyperScript now. One that has is told so when it loads; give it another name.