HyperScript 1.5.5
Version 1.5.5
Big change
Check your scripts before updating to 1.5.5
A variable each player has their own of is now written {%player%.name}.
| Before 1.5.5 | From 1.5.5 | Meaning |
|---|---|---|
{player.coins} | {%player%.coins} | Each player's own coins |
%{player.coins}% inside text | %{%player%.coins}% | The same, inside text |
| (not possible) | {player.coins} | One ordinary variable, shared by everybody, that happens to have "player" in its name |
{player.coins}still loads, but now means something else: one value shared by everyone instead of one per player. A script that is not updated will give every player the same coins.- To make that hard to miss, HyperScript points out every variable written
{player.something}when scripts load, in the console and to whoever ran/hyperscript reload. Turn the remarks off withwarn-player-variables: falseinconfig.ymlonce your scripts are updated. - Saved data is not affected.
{%player%.coins}reads the same stored value that{player.coins}used to, so nobody loses anything when the scripts are updated. - The bundled
demo.hsuses the new spelling. A copy already on a server is not replaced automatically; delete it and restart to get the new one.
Changed (check existing scripts)
A variable each player has their own of is now written {%player%.name}.
| Before 1.5.5 | From 1.5.5 | Meaning |
|---|---|---|
{player.coins} | {%player%.coins} | Each player's own coins |
%{player.coins}% inside text | %{%player%.coins}% | The same, inside text |
| (not possible) | {player.coins} | One ordinary variable, shared by everybody, that happens to have "player" in its name |
{player.coins}still loads, but now means something else: one value shared by everyone instead of one per player. A script that is not updated will give every player the same coins.- To make that hard to miss, HyperScript points out every variable written
{player.something}when scripts load, in the console and to whoever ran/hyperscript reload. Turn the remarks off withwarn-player-variables: falseinconfig.ymlonce your scripts are updated. - Saved data is not affected.
{%player%.coins}reads the same stored value that{player.coins}used to, so nobody loses anything when the scripts are updated. - The bundled
demo.hsuses the new spelling. A copy already on a server is not replaced automatically; delete it and restart to get the new one.
Added
set block at <position> to <block>:set block at 0, 64, 0 in "world" to gold block,set block at player's location to air. Block names are checked when the script loads.block at <position>gives the type of block that is there:if block at event's location is "bedrock":./hyperscript disable <file>and/hyperscript enable <file>switch a script off and on without deleting it. A disabled script is renamed todisabled_<name>.hs; any file with that prefix is skipped when scripts load. Pressing Tab suggests the files that can be disabled or enabled, and/hyperscript listshows disabled scripts too.
Downloads
- The jar no longer carries build metadata. The copy of the build file and its properties, the build tool and JDK versions in the manifest, and the time each file was built are all gone; every entry in the jar has the same fixed date.
- The jars of earlier versions offered on the Changelog page were cleaned the same way. Their classes and resources are byte-for-byte what they were.
- An example path in the README that came from the author's machine was replaced by a neutral one, in this release and in the README packaged inside the earlier jars.