Open Z0rdak opened 4 months ago
For loose ends and this functionality of flags having a hierarchy, do we know the intersection of these?
If we do, you could make it a hierarchy. So if tool-secondary
covers strip-wood
and is a superset, then strip-wood
only applies to the block subset of this intersection.
So with tool-secondary
to false but strip-wood
to true, you can use tool-secondary
only to those blocks that would also return true on strip-wood
.
Description
Many of the current request revolve around this particular feature. Its about letting region owners define flags in a way where it is possible to allow only specific blocks to be broken, specific entities to spawn or deny using of specific items in a region, etc.
On the one hand this would improve flexibility and on the other hand it creates even more work to setup it correctly.
To counter this, its important to also implement some features which give a certain level quality of life so this does not become a pain to deal with.
For this I have two proposals:
Let users define flag-sets and flag-entry-sets as json files, like data packs. This would allow them to be used as blueprint which apply a whole set of flags as well as entries for a flag (entities, blocks, items, etc. depending on the flag)
block-protection
which applies a whole set of flags e.g.:[ break-blocks, explosion-blocks, mob-griefing, trample-farmland, strip-wood ]
zombies-and-phantoms
:[minecraft:husk, minecraft:zombie, minecraft:zombie-villager, minecraft:phantom]
Add an additional pagination component for the CLI, which makes it possible to click through the configured entries for a flag for easier management
Flag flattening/overhaul in YAWP 0.0.5.0
Note
break-blocks
): deny/allow specific blocks to be brokenspawning
): deny/allow specific mob spawningexec-command
): deny/allow execution of specific commandsTodos
Loose ends
minecraft:squid
and the deny list containsminecraft:water-animal
?tool-secondary
is allowed but thestrip-wood
flag is denied