HyperScript 1.7.6
Version 1.7.6
Big change
Check your scripts before updating to 1.7.6
loadandunloadnow start a statement, so a function of that name must be renamed.created worldsis a value (the list of worlds scripts have made).
Scripts can now make their own worlds: create world "arena" flat, then teleport players there, set its rules, and unload or delete it again.
Changed (check existing scripts)
loadandunloadnow start a statement, so a function of that name must be renamed.created worldsis a value (the list of worlds scripts have made).
Added
Worlds
create world <name>makes a world and loads it. Options, in any order:- what it is made of:
flat,void(nothing but one block to stand on),amplified,large biomes; without one it is an ordinary world; - which dimension:
netherorend; without one it is an overworld; with seed <value>(a number or any text) andwithout structures.
create world "skyblock" void, create world "plots" flat without structures, create world "hell" nether with seed 42.
- Creating a world that already exists does nothing, so an
on load:block may do it every time. - Worlds are remembered. Every world a script makes is listed in
plugins/HyperScript/worlds.ymland loaded again when the server starts, before any script runs, so locations saved in it stay good. load world <name>andunload world <name>(addwithout savingto throw away changes). Players inside are sent to the main world's spawn first. A world that is unloaded stays unloaded after a restart until it is loaded again.load worldalso takes a world folder that is already on the server but was not made by a script.delete world <name>unloads a world and deletes its files for good. Only worlds made by a script can be deleted; the server's own worlds, and ones only loaded by a script, are refused.created worlds: a list of the worlds scripts have made, loaded or not.- Everything that already worked on a world works on these:
teleport player to spawn of world "arena",set spawn of world, game rules, difficulty, pvp, time, weather, borders, regions and holograms.
Ready-made script
Worlds.hs:/world list|create|tp|unload|delete, with a permission for managers and a lighter one for players who may only travel. Deleting asks for a yes first. That makes 36.