EnchantmentActions
Provider-owned Lua effects. Only copied facts and stable identities cross the shaded bridge.
Types
Functions
Link copied to clipboard
public static EnchantmentActions.Action begin(EnchantmentItems.Resolved resolved, int level, EnchantmentActions.Source source)
Called once by the host after accepting the action, using its launch-time definition/revision.
public static EnchantmentActions.Action begin(EnchantmentItems.Resolved resolved, int level, EnchantmentActions.Source source, ScriptHook initialHook)
The input owner can avoid creating a timed instance when this definition has no matching hook.
Link copied to clipboard
Six equipped slots at acceptance/launch.
Link copied to clipboard
public static Map<String, Object> captureProviderFacts(UUID actor, Map<String, ItemStack> equipment)
Provider combat facts are evaluated at input/launch, never again at delayed impact.