Wiki 9Minecraft Fx Control Mod Wiki

Fx Control Mod — Guide

Conditions

Conditions are the "if" part of the rule. Multiple conditions in a single rule act as an "AND" operation.

Environmental Conditions

  • dimension: A list of dimension IDs (e.g., ["minecraft:overworld", "minecraft:the_nether"]).
  • biome: A list of biome registry names (e.g., ["minecraft:plains"]).
  • biometags (1.19+): Checks for specific biome tags (e.g., "#minecraft:is_forest").
  • time: A range of daytime values (0-24000).
  • minlight / maxlight: Checks the light level at the player's position.
  • minheight / maxheight: Checks the player's Y-coordinate.
  • block: The block the player is currently standing on.

Player & Item Conditions

  • helditem: Checks the item in the player's main hand or offhand.
  • gamestage: Integration with the Game Stages mod; checks if a player has a specific stage.
  • baubles: Integration with Baubles; checks for specific equipped items.
  • seasons: Integration with Serene Seasons; checks the current season.

Structure Conditions (1.19+)

  • structure: Checks if the player is inside a specific structure (e.g., "minecraft:fortress").
  • hasstructure: A boolean check to see if any structure exists at the location.
  • structuretags: Checks for structure tags.

Actions and Results

Actions define what happens when all conditions are met. Results are used in event-based files to permit or block player actions.

Effect Actions (effects.json)

Action Description Example
potion The registry name of the potion effect. "minecraft:poison"
amplifier The strength of the effect (0 is Level I). 1 (Level II)
duration How long the effect lasts (in ticks). 200 (10 seconds)
fire Sets the player on fire for a duration (seconds). 5
damage Deals a specific amount of damage to the player. 2.0
message Sends a chat message to the player. "You feel a chill..."

Event Results

In breakevents.json, placeevents.json, and click files, the result field is mandatory: * allow: The action is permitted even if vanilla would normally block it. * deny: The action is blocked (e.g., the block will not break or be placed). * default: Follows standard vanilla behavior but applies any additional actions defined.