
no fun allowed
This mod provides an adventure mode location protection system based on data and components, specifically designed for showcase servers.
The system uses the Yttr adventure helper adapted for components to prevent the use of dangerous items in adventure mode situations.
The mod's development was inspired by the need to solve a problem that arose at BlanketCon 23 related to creative protection approaches.
It's important to note that item usage location checking only works for right-click actions.
Item Tag System
The mod offers several specialized tags for fine-tuning item behavior:
nofunallowed:usage_ignore
- allows bypassing location checkingnofunallowed:usage_strict
- prevents item usage without a component specifying permitted location or dimensionnofunallowed:usage_none
- completely disables item functionalitynofunallowed:obliterate
- destroys items when they cannot be usednofunallowed:usage_none
(for blocks) - disables left and right-click interaction with blocks
Component Format
Components support an optional dimension
parameter for specifying permitted dimensions and a location
parameter as a box object for defining permitted areas.
The box object format uses six double values: min_x
, max_x
, min_y
, max_y
, min_z
, max_z
, which create a bounding box.
Other mods can use the locational use component for their own component types implementing various actions.