Skip to main content

Module effects

Module effects 

Source
Expand description

Attributes, mob effects and potions a mod adds: data (.ydef kinds attribute, effect, potion), the host registers each with the game.

Structs§

Attribute
AttributeDef
A number every player has (hexcasting:grid_zoom) — what effects change (EffectDef::modifiers) and the mod reads (Server::entity_attribute_value).
Brew
A brewing stand recipe making a potion: one potion and an ingredient.
Effect
EffectDef
A mob effect (hexcasting:enlarge_grid): its kind, its colour (its particles, its potions) and the attributes it changes. Its icon is the mod’s textures/mob_effect/<name>.png, its name effect.<ns>.<name>.
EffectModifier
An attribute an effect changes while it lasts — by amount for each level.
Potion
PotionDef
A potion (hexcasting:enlarge_grid_long): the effects it gives, and the brewing that makes it. Its names are the game’s item.minecraft.potion. effect.<name> (splash, lingering and tipped arrow alike).
PotionEffect
An effect a potion gives.

Enums§

EffectCategory
Whether an effect is good or bad for whoever has it (its colour in the inventory, what milk and beacons do with it).
ModifierOperation
How a modifier changes an attribute.