Added initial framework for shulker-based palettes #30
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.
The thing is still missing support for
set_block
to use palettes, but that's independant of the current development. It should be compatible with the comand-based palettes WE style. There's even a command to register palettes from command line that should work fine if the argument type '' returns a map like we talked earlier.The way it works right now is that calling
/world edit palette make
holding a shulker box will map the blocks into a palette by counting how many slots each block has assigned. I like this better than counting stack counts for two reasons, but it's up for debate:It uses an alias system for stuff that can't be obtained in item form (liquids, portals, air), or items that don't correspondo to the block (crops, seeds, rs dust).
I'm not sure how the syntax for set commands should be with registered palettes. Maybe to avoid conflicting commands with blocks i'd do something like
/world-edit set frompalette <index>
, but I wanna hear your opinions.PS: I don't know how to spell.