HyperScript 1.7.20
Scripts and updates fetched from inside the game, advancements of your own, loot tables, regular expressions and a Discord bot that writes.
Added
Commands
/hyperscript search <word>looks on the HyperScript website for scripts, the ready-made ones and those people sent in, and/hyperscript install <id>puts one in the scripts folder and loads it. A script that is already there is never overwritten./hyperscript updateasks Modrinth for a newer HyperScript and downloads it for the next restart. The file is checked against what Modrinth says it should be./hyperscript versionalso lists the addons that are installed, each with its version.
Advancements
advancement "first kill":withtitle:,description:,icon:,frame:,parent:,announce:andhidden:adds an advancement to the game's own screen.grant advancement "first kill" to player,revoke advancement ... from ...and the conditionplayer has advancement "first kill"go with it.
Loot tables
drop loot "entities/zombie" at <location>andfill chest at <location> with loot "chests/simple_dungeon"use the game's own loot tables.
Text
replace regex <pattern> with <text> in <text>,regex matches of <pattern> in <text>andregex groups of <pattern> in <text>.try parse <text> as number: the same asparse, said so that it is plain that text which is not a number gives unset and never an error.
Players
game version of <who>: what their game calls its version, such as1.21.4, for servers that let several versions in.
Discord
send discord message <text> to channel <id>lets the bot write in a channel, andon discord message <id>:runs when somebody writes there. Listening is off untildiscord.bot.read-messagesis switched on inconfig.yml.