Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Adds packmodes which can be changed on the fly.
In a script the current pack mode can be obtained with
getPackmode()(global method).isPackmode(String)is also useful.A script file should use the pack mode preprocessor
// PACKMODE: packmode_nameAll possible packmode names should be configured in the
runConfig.json.You can add a translated name and description via lang files for the world creation GUI.
A packmode is bound to a world. When a player joins the packmode will be changed to that of the world. If the world is a server or a LAN world the pack mode can not be changed on the fly. The packmode of players will be changed only on client side in those cases.
Packmode can be changed with
/gs packmode [packmode name]and is stored in a config file.Examples can be found in the examples folder.
Packmode Mod compat
If that mod is loaded nothing special happens. By default they have both their own packmode. You can enabled integration in the run config. This will also disable the ability to reload packmodes on the fly. If integration is enabled, every get/set call is redirected to the packmode mod.
Todo: