Tycoon Modes 0.1.0
Curse Maven Snippet
What's new
The first release. Tycoon Modes lets a modpack offer game modes - Easy, Hard, Insane or whatever the pack calls them - chosen once per world. The mod brings no modes of its own: every mode is a folder of the pack.
Added
- Modes per world. In singleplayer, "Create New World" first asks for the mode - one button per mode with
its description (two lines under the button, all of it in the button's tooltip). The world keeps its choice in
tycoonmodes.jsonnext tolevel.dat. A dedicated server's new world takesnewWorldModefromtycoonmodes-common.toml;askOnCreateswitches the question off. - A mode is a folder of the pack (
config/tycoonmodes/modes/<id>/):mode.jsonwith the order, a name and description per language and a vanilla difficulty;settings.jsonwith config values for any mod; and, with apack.mcmeta, a data pack with its own recipes, loot, tags and data files. - Config values of any mod, in memory only.
settings.jsonsets values by config file and path ("tycoonmarket-common.toml": {"prices.multiplier": 4.0}) before the world loads, and the mod is told as if its file had been edited. The files are never written; the old values come back when the world closes. - One data pack per world. Only the world's mode pack is switched on, the other modes' packs are off.
- The difficulty of the mode is set every time the world starts - a dedicated server would otherwise put
back the one from
server.properties. /modeshows the world's mode;/mode set <mode> confirm(operators) switches it - settings, data pack and difficulty change at once, money and land stay.- Commands on joining.
mode.jsonmay listjoinCommands- run once per player and command, remembered on the player, so a command added later is caught up and one that ran is never repeated - andeveryJoinCommands, run on every login.%sis the player's name; a command no mod provides is logged and tried again next time. Chunk Tycoon hands out a KubeJS stage per mode this way (kubejs stages add %s modus_easy)./mode setruns the new mode's pending ones for everyone online. /modereturns the mode'sorderas its result, forexecute store result.ModesAPIfor mods that behave differently per mode:mode()andmodes().
All Relations
- All Relations
- Embedded Library
- Optional Dependency
- Required Dependency
- Tool
- Incompatible
- Include
This mod has no related projects