Download no fun allowed — Minecraft Mods — MetaMods

no fun allowed

Active

Downloads

0

Last update

1 year ago

Versions

1.21
Client and server
Fabric
Libraries
Control
Utils

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 checking
  • nofunallowed:usage_strict - prevents item usage without a component specifying permitted location or dimension
  • nofunallowed:usage_none - completely disables item functionality
  • nofunallowed:obliterate - destroys items when they cannot be used
  • nofunallowed: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.

Project members
repulica

repulica

Developer

Created: 29 Jun 2024

ID: 12558