Vanilla
Overview
Vanilla connects standard Minecraft mechanics to TypeWriter. It is a library of 346 entries: actions that change the player (attributes, health, experience, gamemode, velocity...), events that fire when something happens in the game (a bell rung, a trade made, a bucket filled...), objectives that count those events for quests, facts that read the player state, audience filters that match a player state, and NPC activities that make an NPC react to the people around it.
Nothing is configured in a file: you add the entries you need in the web panel and link them like any other TypeWriter entry. Most entries are small and have few fields, so the entry pages are mainly a catalogue; this page explains the families and the few concepts that are shared by many entries.
Features
- Player attributes — 26 actions that set one Minecraft attribute each (movement speed, max health, scale, gravity, reach...).
- Player state actions — heal, feed, damage, set air, fire, flight, god mode, gamemode, experience and level, spawn point.
- Inventory and utility actions — clear the inventory, open a crafting table, anvil, ender chest, disposal bin, repair or condense ores.
- Game events — 105 events, from block and container interactions to trading, fishing, raids and player input.
- Objectives — 73 quest objectives that count in-game actions with a counter fact.
- Facts — 26 read-only facts for health, hunger, level, time, weather, dimension, light level and more.
- Audience filters — 48 filters that keep players by state: sneaking, moving, in water, time of day, coordinates, tool in hand...
- NPC activities — 20 activities for NPCs: follow or avoid players, patrol, orbit, detect players by sight, hearing or smell.
- NPC camera bound — lock the player's camera on an NPC during an interaction.
Installation
- Install the official TypeWriter extensions Basic, Quest, Entity and RoadNetwork (they are declared as dependencies of Vanilla).
- Download
VanillaExtensionfrom the GitHub releases (button above) and put the JAR inplugins/Typewriter/extensions/. - Restart the server. The log shows
VanillaExtension has been successfully initialized.
The extension targets Paper and Folia. PlaceholderAPI is not required; it is only used when a text field contains %placeholders%.
Getting started
Make the player stronger when they finish a ritual, and count how many barrels they open for a quest:
- In the TypeWriter web panel, open a sequence page and add an action such as Set Max Health. Set
amountto30(the attribute is set to this value, it is not added to the current one). - Link it from a dialogue or another entry through
triggersso it runs when the player reaches that step. - To react to a game event, add an event on a manifest page, for example Bell Ring Event, and put the entries to run in its
triggers. - For a counting objective, first create a counter fact (for example a permanent fact from the Basic extension), then add Barrel Objective on a manifest page. Set
quest,factto the counter,amountto5anddisplayto the line shown in the quest tracker. - Link
onCompleteto a reward sequence, or fillonCompleteModifiersto change facts when the objective is done. - Publish and test.
An attribute action sets the base value of the attribute. It does not stack with a previous call and is not reset on its own. Use the vanilla default values to undo it: for example movement speed is 0.1, max health is 20, scale is 1.
How it works
- Events are plain triggers: add one on a manifest page and fill
triggers. Most of them have no field at all and fire for every matching event of every player. Some have filters (for exampleweather_eventhas aworldand acondition,on_player_inputhas aninputTypeand aheldItem). - Objectives need a counter fact in
fact. Each time the game event happens for a player in the active quest, the fact is increased by one. The objective is complete when the fact reachesamount. Because the progress lives in a fact, you can also change it from anywhere else. - Facts are read-only: use them in criteria, objectives and dialogue conditions. They cannot be written to.
- Audience filters keep a player in an audience while the state is true, and can be inverted. Put entries below them to show them only to those players.
- Activities run on an NPC instance and are described below.
What it covers
Attributes
26 actions, each setting one attribute of the player to the amount you give. Movement and combat: Movement Speed, Sneaking Speed, Attack Damage, Attack Speed, Knockback Resistance. Body and world: Max Health, Scale, Gravity, Step Height, Block Reach, Camera Distance.
Health, hunger and experience
Heal, Heal All, Damage, Feed, Set Hunger, Set Saturation, Set Absorption, Set Air, Set Fire, Freeze, Add Experience, Set Level, Suicide.
Movement, physics and modes
Set Velocity (absolute or added to the current velocity), Flight, God Mode, Gamemode, Mount Vehicle, Dismount, Eject Vehicle, Wake Up, Set Spawn Point, Top.
Inventory and items
Clear Inventory, Repair, Durability (main-hand item), Hat, Condense Ores (turns 9 ingots, raw ores, gems or coal into the matching block), Ender Chest, Disposal (opens a 54-slot bin), Craft, Anvil, and Inventory See / Ender Chest See to open another player's inventory by exact name.
World, effects and UI
Create Explosion, Spawn Lightning, Launch Firework, Spawn Tree, Start Raid, Set World Time, Open Book, Open Sign, Clear Title, Grant Advancement and Revoke Advancement.
Events
105 triggers on the game: workstations (Anvil Repair, Enchant, Smelt, Brewing Stand Brew), containers and blocks (Barrel Open, Bell Ring, Jukebox Play, Sign Change), the player (Player Teleport, Player Respawn, Toggle Sneak, Player Input), animals and trading (Entity Breed, Villager Trade, Piglin Barter), vehicles, raids, fishing, items and the world (Weather).
Objectives
73 objectives mirroring the events: Gather (items in the inventory), Craft, Consume Item, Villager Trade, Harvest Crop, Statistic Reach, Level Reach, Tame Entity, Sleep, Raid Complete and checks on a fact: Cachable Fact Check and Readable Fact Check.
Facts
Player Health, Player Hunger, Player Level, Game Mode, Armor Value, Current Dimension, Time of Day, Weather, Light Level, Total Play Time, Time Since Death, plus on-fire, in-water, sleeping, freezing and in-raid flags.
Audience filters
Player state: Sneaking, Sprinting, Moving, Swimming, Gliding, Riding, On Fire, Low Health, Has Effect, Has Armor, Tool in Hand, Weapon in Hand. Place and time: Coordinate, In Specific Dimension, Daytime, Nighttime, Time Period, During Rain, Near Beacon. View: Looking At Entity, Looking Up, Looking Down, and the key filters Forward, Backward, Left and Right.
NPC activities
Follow Player, Avoid Player, Orbit, Hearing, Smell, Equipment Detection, Health Detection, Line of Sight Obstructed, and the field-of-view family: Visibility Detection, Look Close, Patrol, Random Patrol, Spin.
Camera bound
Lock NPC Camera keeps the player's view on an NPC while an interaction (a dialogue) runs.
Configuration
Vanilla has no configuration file. The objectives that count (most *_objective entries) show their progress in the quest tracker with the TypeWriter snippets advancedQuest.display and advancedQuest.completed, and Gather uses quest.gather_objective.display and quest.gather_objective.completed. They use the placeholders <display>, <current> and <required>.
Entries
The list below contains every entry of the extension, grouped by kind.
346 entries, generated from the extension source.
Actions73
- Add Experience ActionGive player experience points
- Anvil ActionOpen the anvil menu
- Clear Inventory ActionClear the player's inventory
- Clear Title ActionClear player title and subtitle
- Condense Ores ActionCondense ores in inventory
- Craft ActionOpen crafting table
- Create Explosion ActionCreate explosion at player location
- Damage ActionDamage the player
- Dismount ActionForce player to dismount their vehicle
- Disposal ActionOpen a disposal inventory
- Durability ActionSet held item durability
- Eject Vehicle ActionEject any passengers riding the player
- Ender Chest ActionOpen player's ender chest
- Ender Chest See ActionOpen another player's ender chest
- Feed ActionFeed the player
- Flight ActionToggle flight
- Freeze ActionSet player freezing ticks
- Gamemode ActionSet the player's game mode
- God ActionToggle god mode
- Grant Advancement ActionGrant a specific advancement
- Hat ActionWear item as hat
- Heal ActionHeal the player
- Heal All ActionHeal all online players
- Inventory See ActionSee another player's inventory
- Launch Firework ActionLaunch a firework at player location
- Mount Vehicle ActionSpawn and mount a vehicle
- Open Book ActionOpen a written book for the player
- Open Sign ActionOpen a sign editor for the player
- Remove Experience ActionRemove experience points from player
- Repair ActionRepair item in hand
- Revoke Advancement ActionRevoke a specific advancement
- Set Absorption ActionSet player absorption amount
- Set Air ActionSet player remaining air
- Set Attack Damage AttributeSet player's attack damage attribute
- Set Attack Knockback AttributeSet player's attack knockback attribute
- Set Attack Speed AttributeSet player's attack speed attribute
- Set Block Break Speed AttributeSet player's block break speed attribute
- Set Block Reach AttributeSet player's block reach attribute
- Set Bonus Armor AttributeSet player's bonus armor attribute
- Set Burning Time AttributeSet player's burning time attribute
- Set Camera Distance AttributeSet player's camera distance attribute
- Set Experience ActionSet player total experience points
- Set Explosion Knockback Resistance AttributeSet player's explosion knockback resistance attribute
- Set Fall Damage Multiplier AttributeSet player's fall damage multiplier attribute
- Set Fire ActionSet player on fire
- Set Fly Speed AttributeSet player's fly speed attribute
- Set Gravity AttributeSet player's gravity attribute
- Set Health AttributeSet player's max health attribute
- Set Hunger ActionSet player food level
- Set Knockback Resistance AttributeSet player's knockback resistance attribute
- Set Level ActionSet player level
- Set Luck AttributeSet player's luck attribute
- Set Max Absorption AttributeSet player's max absorption attribute
- Set Movement Efficiency AttributeSet player's movement efficiency attribute
- Set Movement Speed AttributeSet player's movement speed attribute
- Set Oxygen Bonus AttributeSet player's oxygen bonus attribute
- Set Safe Fall Distance AttributeSet player's safe fall distance attribute
- Set Saturation ActionSet player saturation
- Set Scale AttributeSet player's scale attribute
- Set Sneaking Speed AttributeSet player's sneaking speed attribute
- Set Spawn Point ActionSet player spawn point to current location
- Set Step Height AttributeSet player's step height attribute
- Set Submerged Mining Speed AttributeSet player's submerged mining speed attribute
- Set Sweeping Damage Ratio AttributeSet player's sweeping damage ratio attribute
- Set Velocity ActionSet player velocity
- Set Water Movement Efficiency AttributeSet player's water movement efficiency attribute
- Spawn Lightning ActionStrike lightning at player location
- Start Raid ActionTrigger a raid at player location
- Suicide ActionKill the player
- Time ActionSet world time
- Top ActionTeleport to surface
- Tree Spawn ActionSpawn a tree
- Wake Up ActionWake player up from bed
Events105
- Advancement Grant EventTriggered when a player completes an advancement
- Anvil Repair EventTriggered when a player repairs or combines items in an anvil
- Barrel Close EventTriggered when a player closes a barrel
- Barrel Open EventTriggered when a player opens a barrel
- Beacon Power EventTriggered when a beacon is activated or modified
- Bell Ring EventTriggers when a player rings a bell
- Bench Take Result EventTriggers when a player takes the result from various benches
- Block Damage EventTriggers when a player starts damaging a block
- Block Fertilize EventTriggers when a player fertilizes a block
- Block Ignite EventTriggers when a player ignites a block
- Brewing Stand Brew EventTriggered when a brewing process completes in a brewing stand
- Cake Slice EventTriggered when a player eats a slice of cake
- Campfire Cook EventTriggered when food is cooked on a campfire
- Campfire Extinguish EventTriggered when a player extinguishes a campfire
- Cartography Map Copy EventTriggered when a player copies or scales a map using a cartography table
- Cauldron Empty EventTriggered when a cauldron is emptied
- Cauldron Fill EventTriggered when a cauldron is filled
- Compost Item EventTriggers when a player composts an item
- Crossbow Reload EventTriggered when a player reloads a crossbow
- Enchant EventTriggered when a player enchants an item
- Entity Breed EventTriggers when a player breeds entities
- Entity Damage by Player EventTriggers when a player damages an entity
- Entity Tame EventTriggers when a player tames an entity
- Exp Bottle EventTriggers when a player throws an experience bottle
- Experience Orb Pickup EventTriggered when a player picks up experience orbs
- Food Level Change EventTriggers when a player's food level changes
- Furnace Extract EventTriggers when a player extracts items from a furnace
- Grindstone Repair EventTriggered when a player repairs items or removes enchantments using a grindstone
- Hanging Break by Player EventTriggers when a player breaks a hanging entity
- Hanging Place EventTriggers when a player places a hanging entity (painting, item frame)
- Inventory Click EventTriggers when a player clicks in an inventory
- Inventory Close EventTriggers when a player closes an inventory
- Inventory Open EventTriggers when a player opens an inventory
- Item Frame Place EventTriggered when a player places an item frame
- Item Frame Remove EventTriggered when a player removes an item frame
- Item Frame Rotate EventTriggered when a player rotates an item in an item frame
- Jukebox Play EventTriggered when a player starts playing a record in a jukebox
- Jukebox Stop EventTriggered when a player stops a record in a jukebox
- Lectern Page Turn EventTriggered when a player turns a page on a lectern
- Lectern Place Book EventTriggered when a player places a book on a lectern
- Lectern Take Book EventTriggered when a player takes a book from a lectern
- Loom Banner Pattern Apply EventTriggered when a player applies a banner pattern using a loom
- On Player InputTriggers when a player performs a chosen input (jump, sprint, sneak, or movement keys).
- On Player Visibility DetectionTrigger entries when a player is detected by an entity's visibility system
- On Stonecutter Cut EventTrigger when player cuts specific item in stonecutter
- Piglin Barter EventTriggered when a piglin barters with a player
- Player Bed Enter EventTriggers when a player enters a bed
- Player Bed Leave EventTriggers when a player leaves a bed
- Player Bucket Empty EventTriggers when a player empties a bucket
- Player Bucket Fill EventTriggers when a player fills a bucket
- Player Bucket Fish EventTriggers when a player catches a fish with a bucket
- Player Changed World EventTriggers when a player changes world
- Player Drop Item EventTriggers when a player drops an item
- Player Edit Book EventTriggers when a player edits a book
- Player Egg Throw EventTriggers when a player throws an egg
- Player Elytra EventTriggers when entering gliding mode
- Player Exp Change EventTriggers when a player's experience changes
- Player Fish EventTriggers when a player is fishing
- Player Game Mode Change EventTriggers when a player's gamemode changes
- Player Harvest Block EventTriggers when a player harvests crops
- Player Item Break EventTriggers when a player's item breaks
- Player Item Consume EventTriggers when a player consumes an item (food/drink)
- Player Item Damage EventTriggers when a player's item takes damage
- Player Item Mend EventTriggers when a player's item is repaired by mending
- Player Kill Entity EventTriggers when a player kills an entity
- Player Leash Entity EventTriggers when a player leashes an entity
- Player Level Change EventTriggers when a player's level changes
- Player Pickup Arrow EventTriggers when a player picks up an arrow
- Player Portal EventTriggers when a player uses a portal
- Player Projectile Hit EventTriggers when a player's projectile hits something
- Player Projectile Launch EventTriggers when a player launches a projectile
- Player Recipe Discover EventTriggers when a player discovers a recipe
- Player Respawn EventTriggers when a player respawns
- Player Resurrect EventTriggers when a player is resurrected by a totem
- Player Riptide EventTriggers when a player uses Riptide
- Player Shear Block EventTriggers when a player shears a block
- Player Shear Entity EventTriggers when a player shears an entity
- Player Statistic Increment EventTriggers when a player statistic increases
- Player Swap Hand Items EventTriggers when a player swaps items between hands
- Player Teleport EventTriggers when a player teleports
- Player Toggle Flight EventTriggers when a player toggles flight
- Player Toggle Sneak EventTriggers when a player toggles sneak
- Player Toggle Sprint EventTriggers when a player toggles sprint
- Player Unleash Entity EventTriggers when a player unleashes an entity
- Raid Finish EventTriggers when a raid is finished
- Raid Trigger EventTriggers when a player triggers a raid
- Recipe Revoke EventTriggered when a player's recipe is revoked
- Recipe Unlock EventTriggered when a player unlocks a recipe
- Sheep Dye Wool EventTriggers when a player dyes a sheep's wool
- Shield Block EventTriggered when a player blocks damage with a shield
- Sign Change EventTriggers when a player finishes editing a sign
- Smelt EventTriggered when a player smelts an item
- Smith Item EventTriggers when a player smiths an item
- Smithing Table Upgrade EventTriggered when a player upgrades items using a smithing table
- Target Hit EventTriggers when a player hits a target block
- Tnt Prime EventTriggers when a player primes TNT
- Trade Select EventTriggers when a player selects a merchant trade
- Trident Recall EventTriggered when a player recalls a trident
- Trident Throw EventTriggered when a player throws a trident
- Vehicle Damage EventTriggers when a player damages a vehicle
- Vehicle Destroy EventTriggers when a player destroys a vehicle
- Vehicle Enter EventTriggers when a player enters a vehicle
- Vehicle Exit EventTriggers when a player exits a vehicle
- Villager Trade EventTriggered when a player trades with a villager
- Weather EventTrigger entries when the weather changes
Objectives73
- Advancement Grant ObjectiveAn objective to complete advancements
- Anvil Repair ObjectiveAn objective to repair items using an anvil
- Arrow Recover ObjectiveRecover arrow objective
- Barrel Close ObjectiveAn objective to close barrels
- Barrel ObjectiveAn objective to interact with barrels
- Barrel Open ObjectiveAn objective to open barrels
- Beacon Power ObjectiveAn objective to activate or modify beacon powers
- Bell Ring ObjectiveBell ring objective
- Brewing Stand Brew ObjectiveAn objective to brew potions using a brewing stand
- Bucket Empty ObjectiveBucket empty objective
- Bucket Fill ObjectiveBucket fill objective
- Cachable Fact Check ObjectiveAn objective that validates based on a numeric fact value
- Cake Slice ObjectiveAn objective to eat cake slices
- Campfire Cook ObjectiveAn objective to cook food on campfires
- Campfire Extinguish ObjectiveAn objective to extinguish campfires
- Cartography Map Copy ObjectiveAn objective to copy maps using a cartography table
- Cauldron Empty ObjectiveAn objective to empty cauldrons
- Cauldron Fill ObjectiveAn objective to fill cauldrons
- Cauldron ObjectiveAn objective to interact with cauldrons
- Compost ObjectiveCompost objective
- Consume Item ObjectiveConsume item objective
- Craft ObjectiveAn objective to craft items
- Crossbow Reload ObjectiveAn objective to reload crossbows
- Destroy Vehicle ObjectiveDestroy vehicle objective
- Drop Item ObjectiveDrop item objective
- Dye Entity ObjectiveDye entity objective
- Edit Book ObjectiveEdit book objective
- Experience Orb Pickup ObjectiveAn objective to pick up experience orbs
- Fertilize ObjectiveFertilize objective
- Fill Map ObjectiveFill map objective
- Gather ObjectiveA Gather Objective definition
- Grindstone Repair ObjectiveAn objective to repair items using a grindstone
- Harvest Crop ObjectiveHarvest crop objective
- Item Frame ObjectiveAn objective to interact with item frames
- Item Frame Place ObjectiveAn objective to place item frames
- Item Frame Remove ObjectiveAn objective to remove item frames
- Item Frame Rotate ObjectiveAn objective to rotate items in item frames
- Jukebox Play ObjectiveAn objective to play music discs in jukeboxes
- Jukebox Stop ObjectiveAn objective to stop music in jukeboxes
- Leash Entity ObjectiveLeash entity objective
- Lectern ObjectiveAn objective to interact with lecterns
- Lectern Page Turn ObjectiveAn objective to turn pages on lecterns
- Lectern Place Book ObjectiveAn objective to place books on lecterns
- Lectern Take Book ObjectiveAn objective to take books from lecterns
- Level Reach ObjectiveLevel reach objective
- Loom Banner Pattern Apply ObjectiveAn objective to apply banner patterns using a loom
- Mend Item ObjectiveMend item objective
- Name Entity ObjectiveName entity objective
- On Enchant ObjectiveAn objective to vanilla enchant items
- On Stonecutter Cut ObjectiveAn objective to cut items using a stonecutter
- On Totem Used ObjectiveAn objective to use a totem of undying
- Piglin Barter ObjectiveAn objective to barter with piglins
- Player Input ObjectiveAn objective to perform specific player inputs
- Portal Use ObjectiveUse portal objective
- Pot Flower ObjectivePot flower objective
- Projectile Hit ObjectiveProjectile hit objective
- Raid Complete ObjectiveRaid complete objective
- Readable Fact Check ObjectiveAn objective that validates based on a readable fact value
- Recipe ObjectiveAn objective to discover recipes
- Recipe Revoke ObjectiveAn objective to revoke recipes
- Recipe Unlock ObjectiveAn objective to unlock recipes
- Ride Vehicle ObjectiveRide vehicle objective
- Shield Block ObjectiveAn objective to block damage with a shield
- Sign Write ObjectiveSign write objective
- Sleep ObjectiveSleep objective
- Smithing Table Upgrade ObjectiveAn objective to upgrade items using a smithing table
- Statistic Reach ObjectiveReach statistic objective
- Tame Entity ObjectiveTame entity objective
- Target Hit ObjectiveTarget hit objective
- Trident Recall ObjectiveAn objective to recall tridents with loyalty
- Trident Throw ObjectiveAn objective to throw tridents
- Villager Trade ObjectiveAn objective to trade with villagers
- XP Gain ObjectiveXP gain objective
Facts26
- Armor Value FactCurrent armor points
- Current Dimension FactCurrent dimension (NETHER, THE_END, NORMAL)
- Current Effects FactList of current potion effects
- Current Vehicle FactType of current vehicle (or null)
- Fly Speed FactCurrent fly speed
- Game Mode FactCurrent player game mode
- Is Allowed Flight FactCan the player fly
- Is Freezing FactIs player currently freezing
- Is in Raid FactIs player currently in a raid
- Is in Water FactIs player touching water
- Is on Fire FactIs player currently on fire
- Is Sleeping FactIs player currently sleeping
- Is Under Water FactIs player submerged under water
- Light Level FactCurrent light level at player location
- Player Experience FactCurrent player total experience
- Player Health FactCurrent player health
- Player Hunger FactCurrent player hunger level
- Player Level FactCurrent player level
- Player World FactCurrent player world
- Remaining Air FactCurrent remaining air ticks
- Saturation FactCurrent saturation level
- Time of Day FactExpose the current time of day for the player's world
- Time Since Death FactTime since last death (sticks)
- Total Play Time FactTotal play time in ticks
- Walk Speed FactCurrent walk speed
- Weather FactExpose the weather state as a fact
Audiences48
- Backward AudienceIn audience while pressing S key
- Cachable Fact Check EventAn event that triggers when a cachable fact matches a value
- Climbing AudienceIn audience while climbing
- Coordinate AudienceFilter players by coordinates
- Daytime AudienceAudience active during the day
- Display Name View AudienceOnly keep players who are looking at a specific Typewriter entity definition.
- During Rain AudienceFilter players when it is raining in their world
- During Thunder AudienceFilter players when it is thundering in their world
- Forward AudienceIn audience while pressing W key
- Freezing AudienceFilter players currently freezing
- Full Health AudienceFilter players with full health
- Full Hunger AudienceFilter players with full hunger bar
- Gliding AudienceIn audience while gliding
- Has Armor AudienceFilter players wearing any armor
- Has Effect AudienceFilter players with a specific potion effect
- High Light Level AudienceFilter players in high light level (> 11)
- In Lava AudienceFilter players currently in lava
- In Raid AudienceFilter players currently in a raid
- In Slime World AudienceFilter players who are in a SlimeWorld
- In Specific Dimension AudienceFilter players in a specific dimension type
- In Vehicle AudienceFilter players currently in a vehicle
- Instance View AudienceOnly keep players who are looking at a specific Typewriter entity instance.
- Is Inside World Border AudienceFilter players inside the world border
- Jumping AudienceIn audience while pressing SPACE key
- Left AudienceIn audience while pressing A key
- Looking at Entity AudienceIn audience while looking at a specific vanilla entity
- Looking Down AudienceIn audience while looking down
- Looking Up AudienceIn audience while looking up
- Low Health AudienceFilter players with low health (< 3 hearts)
- Low Hunger AudienceFilter players with low hunger (< 3 shanks)
- Low Light Level AudienceFilter players in low light level (< 7)
- Moving AudienceIn audience while any movement key is active
- Near Beacon AudienceFilter players near an active beacon (ambient effects)
- Nighttime AudienceAudience active during the night
- On Fire AudienceFilter players currently on fire
- On Totem Used EventA trigger for when players use a totem of undying
- Readable Fact Check EventAn event that triggers when a readable fact matches a value
- Riding AudienceIn audience while riding an entity
- Right AudienceIn audience while pressing D key
- Sneaking AudienceIn audience while pressing SHIFT key
- Specific Gamemode AudienceFilter players in a specific gamemode
- Spin Me Round AudienceIn audience while spinning 360 degrees
- Sprinting AudienceIn audience while pressing CTRL key
- Swimming AudienceIn audience while swimming
- Time Period AudienceFilter players by the current world time
- Tool in Hand AudienceFilter players holding a tool
- Under Water AudienceFilter players submerged under water
- Weapon in Hand AudienceFilter players holding a weapon
Activities20
- Avoid Player ActivityKeep a safe distance from players
- Bobbing Visibility Detection ActivityBob up and down while detecting players
- Equipment Detection ActivityReact based on player equipment
- Follow Player ActivityFollow the nearest player within range
- Health Detection ActivityDetect players with low health
- Hearing ActivityDetect players producing noise around the NPC
- Invisible Player Detection ActivityDetect invisible players holding specific items
- Line of Sight Obstructed ActivityDetect when a player is hidden behind a block
- Look at Block Visibility Detection ActivityLook at a specific block while detecting players
- Look at Pitch Yaw Visibility Detection ActivityLook at specific pitch/yaw while detecting players
- Look Close Visibility Detection ActivityLook at nearby players while detecting them
- Orbit ActivityOrbit around a player
- Path Visibility Detection ActivityFollow a path while detecting players
- Patrol Visibility Detection ActivityPatrol nodes while detecting players
- Random Patrol Visibility Detection ActivityRandomly patrol nodes while detecting players
- Random Visibility Detection ActivityRandomly look around while detecting players
- Smell ActivityDetect players carrying a specific item
- Spin Visibility Detection ActivitySpin around while detecting players
- Target Location Visibility Detection ActivityNavigate to a location while detecting players
- Visibility Detection ActivityDetect players inside an NPC's field of view
Interaction bounds1
- Lock NPC Camera BoundLock the camera around an NPC
Troubleshooting
An attribute action seems to do nothing, or the effect stays forever. The action writes the base value of the attribute and nothing resets it. Run the same action with the default value (for example 0.1 for movement speed) to undo it. Minecraft limits some attributes (for example scale), and an out-of-range value is refused with an error in the server log.
An objective never completes. It needs a fact that is a counter (a writable cachable fact such as a permanent or session fact), a quest that is active for the player, and criteria that match. Read-only facts (every entry in the fact folder) cannot be used as the counter.
A repeated cachable fact check event keeps firing. Cachable Fact Check Event re-checks every checkIntervalSeconds (default 10) and triggers each time the fact still matches. Set a modifier that changes the fact, or use it with a one-shot guard. A value of 0 disables the periodic check, and a negative interval is rejected with an error in the log.
A visibility activity never detects the player. The NPC must be seen as an entity instance with the activity set, the player must be within radius (or visionRadius) and inside the fov of the NPC's facing, and no block can be in between. Detection triggers once when the player enters the field of view and again only after they leave and come back. Turn showDisplay on to see the cone in flame particles.
An event fires for everyone. Events without fields (most of them) are not filtered: every matching event triggers the linked entries for the player who did it. Use criteria on the entries they trigger to restrict them.
Opening another player's inventory does nothing. Inventory See and Ender Chest See need the exact name of an online player in target. An empty target opens the player's own inventory, and an unknown name does nothing.