Minecraft 1.21 Thread #41
PokeJofeJr4th
announced in
Announcements
Replies: 1 comment 3 replies
-
The new function macros mean you can create a switch statement that is O(1) instead of O(n). Have each branch be in its own special function and then call |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Snapshot 23w31a introduces support for multi-version datapacks. For maximum backwards-compatibility, Minescript will continue to target pack version 15, aka Minecraft 1.20.
Internal Overlays
Minescript will begin automatically generating overlays whenever it encounters a command set or feature that is different in a future version. Implementation details are still undecided. Minescript may eventually include features that are not possible in earlier datapack versions. If so, it will automatically change the .mcmeta file to reflect the supported datapack versions and produce a warning when compiled.
Explicit Overlays
Minescript will allow users to explicitly apply version overlays. This is to ensure the user is as able to reach through minescript and write minecraft commands as simply as possible, much like the
@raw
macro. Here's one possible syntax:Ideally, the overlay system shoud allow these to be nested inside other functions, so that a modified version of the function will be overlaid. Here's another potential syntax:
Overlay Logistics
Overlay ranges and order should be considered. It's probably best to create some sort of data structure that stores possible versions of different functions. It should be able to collapse versions into a set of overlays.
Beta Was this translation helpful? Give feedback.
All reactions