Skip to content

Mob behavior

These types let a mod gather mobs of one type into groups, give any mob orders whether its AI runs on goals or a brain, and bind triggers such as a member being hurt to reactions such as fleeing. Data-pack authors write the bindings in the reaction binding format.

Type Summary Status Since Side Thread
EntityMatcher Matches entities by type ID or entity type tag, as written in bindings. Experimental 1.2.0 both any
GroupDefinition Describes one kind of mob group: its entity types, radius, size, leader, filter, and bindings. Experimental 1.2.0 both any
LeaderChoice How a mob group picks its leader. Experimental 1.2.0 both any
MobControl Orders that move, alarm, hold, target, and calm a mob, whether its AI runs on goals or a brain. Experimental 1.2.0 server server
MobGroup Read-only view of one live mob group. Experimental 1.2.0 server server
MobGroupChangedCallback Fired when a mob joins or leaves a mob group. Experimental 1.2.0 server server
MobGroups Entry point for mob groups: define kinds of group, and Stope keeps live groups current. Experimental 1.2.0 server server
MobOwnership Whether a mob is kept by a player. Experimental 2.0.0 both server
Reaction What a group’s members do when a binding’s trigger fires, or a standing behavior when the binding has no trigger. Experimental 1.2.0 server server
ReactionBinding One parsed binding of a trigger to a reaction, or a standing behavior when it has no trigger. Experimental 1.2.0 both any
ReactionContext What a running reaction sees: its group, the firer, the source, the chosen members, and time. Experimental 1.2.0 server server
ReactionParams Typed, validated access to a reaction’s or trigger’s parameters from a binding. Experimental 1.2.0 both any
Reactions Registry of reaction types by namespaced ID. Experimental 1.2.0 both setup
ReactionStartedCallback Fired each time the reaction engine starts a reaction for a group. Experimental 1.2.0 server server
TargetVeto A rule that forbids MobControl#attack from making a mob attack a target, for example no player in Peaceful. Experimental 1.2.0 server server
Triggers Trigger IDs: Stope’s built-in triggers, and registration and firing for triggers other mods add. Experimental 1.2.0 both setup