- setai{ai=false} +onSpawn @self # a statue until told otherwise
- setname{name=&c<caster.name> (enraged)} +onHurt <50%
- glow{glowing=true} @self
- cancelevent +onInteract # stop the vanilla right-click (a villager's trades)
- setfaction{faction=undead} @trigger # turn the attacker to your side
| Mechanic | Usage | What it does |
|---|---|---|
animatearmorstandalso animateas, animas | animateArmorStand{duration=20;head=x,y,z;…} | Moves an armor stand into a pose over time. |
cancelevent | cancelevent | Cancels the game event that fired this line (the damage, the interaction…). Only works before the first delay. |
clearexperiencealso clearexp | clearExperience | Clears a player’s experience. |
clearexperiencelevelsalso clearexplevels | clearExperienceLevels | Clears a player’s experience levels. |
closeinventory | closeInventory | Closes a player’s open inventory. |
disguisealso disguisetarget, disguiseasblock, disguisemodify, modifydisguise | disguise{disguise=<type>} | Disguises the target. Needs LibsDisguises. |
displaytransformationalso settransformation, transformation | displayTransformation{action=SET;type=TRANSLATION;value=0,0,0} | Sets or adds to a display entity’s translation, scale or rotation. |
dopplegangeralso copyplayer | doppleganger{hasNamePlate=true} | Disguises the caster as the target. Needs LibsDisguises. |
enderdragonresetcrystals | enderDragonResetCrystals | Resets the end crystals of the dragon fight. |
enderdragonsetphasealso setenderdragonphase | enderDragonSetPhase{phase=CIRCLING} | Sets an ender dragon’s behaviour phase. |
enderdragonsetrespawnphasealso setenderdragonrespawnphase | enderDragonSetRespawnPhase{phase=NONE} | Sets the dragon fight’s respawn phase. |
enderdragonspawnportalalso spawnenderdragonportal | enderDragonSpawnPortal{withPortals=false} | Generates the end exit portal. |
extinguish | extinguish | Puts out fire on the target. |
freeze | freeze{duration=5s} | Applies the powder-snow freeze to the target. |
giveexperiencelevelsalso giveexplevels | giveExperienceLevels{amount=<n>} | Gives a player experience levels. |
glowalso setglowing | glow{glowing=true} | Turns the outline glow on or off. A permanent toggle; for a timed, coloured glow use effect:glow. |
goatram | goatRam | Makes a goat ram the target. |
ignite | ignite{duration=3s} | Sets the target on fire. |
posearmorstandalso armorstandpose | poseArmorStand{head=x,y,z;body=…} | Sets an armor stand’s pose. |
removealso delete, despawn | remove{onRemove=<skill>} | Removes the target from the world (never a player). No drops, no death. |
removefire | removefire | Puts out fire on the target. |
removeowneralso clearowner | removeOwner | Clears the caster’s owner. |
resetaialso resetaigoals | resetAI | Restores the caster’s default AI goals. |
runaigoalselectoralso aigoal, aigoals | runAIGoalSelector{goal=clear} | Edits the caster’s AI goals. Supports clear and remove <goal>. |
runaitargetselectoralso aitarget | runAITargetSelector{target=clear} | Edits the caster’s AI target selectors. Supports clear and remove <goal>. |
saddlealso givesaddle, setsaddle | saddle{take=false} | Puts a saddle on the target, or takes it off. |
setaialso ai | setai{ai=true} | Turns the target’s AI off or on. Stays that way until set back. |
setchunkforceloaded | setChunkForceLoaded{loaded=true} | Force-loads, or releases, the target location’s chunk. |
setcollidable | setcollidable{collidable=true} | Sets whether other entities collide with the target. |
setdisplayentityitem | setDisplayEntityItem{item=<item>} | Sets the item an item display shows. |
setdragonpodiumalso setpodium, podium | setDragonPodium | Sets where the dragon fight’s podium is. |
setfaction | setfaction{faction=<name>} | Moves this one spawned entity to another faction until it dies. |
setflying | setFlying{flying=true} | Starts or stops a player flying. |
setgamemode | setgamemode{mode=SURVIVAL} | Sets a player’s game mode. |
setgliding | setGliding{gliding=true} | Starts or stops elytra gliding. |
setgravityalso setusegravity | setgravity{gravity=true} | Turns gravity off or on for the target. |
setinteractionsizealso interactionsize | setInteractionSize{width=1;height=1} | Resizes an interaction entity. |
setmaterialcooldown | setMaterialCooldown{material=<item>;duration=100} | Puts an item type on cooldown for a player. |
setmobcoloralso setcolor | setmobcolor{color=WHITE} | Sets the colour of a colourable mob (sheep, shulker, …). |
setnamealso setmobname | setname{name=<text>} | Sets the target’s visible name. |
setowner | setOwner | Makes the target the caster’s owner. |
setparent | setParent | Makes the target the caster’s parent. |
setpathfindingmalusalso setmalus, malus | setPathfindingMalus{type=<path type>;value=<n>} | Changes how much a mob avoids a kind of terrain when pathfinding. |
setraidercanjoinraidalso setcanjoinraid | setRaiderCanJoinRaid{can=true} | Sets whether a raider can join raids. |
setraiderpatrolblockalso setraiderblock | setRaiderPatrolBlock | Sets the spot a raider patrols to. |
setraiderpatrolleaderalso setraiderleader | setRaiderPatrolLeader{leader=true} | Makes a raider a patrol leader, or not. |
setspeed | setspeed{speed=<n>;type=WALK} | Sets the target’s movement (or flying) speed. |
setstancealso stance | setStance{stance=<name>} | Sets the target mob’s stance, readable by the stance condition. |
settextdisplayalso settext | setTextDisplay{text=<text>} | Sets the text a text display shows. |
settonguetargetalso tonguetarget | setTongueTarget | Makes a frog’s tongue grab the target. |
settrackedlocationalso tracklocation, stl | setTrackedLocation | Stores the target location on the caster for later use. |
showentityalso showplayer | showEntity | Shows the caster again to players it was hidden from. |
stopusingitemalso releaseitem | stopUsingItem | Stops the target using its item (lowers a shield, cancels eating). |
suicide | suicide | Kills the caster, firing its +onDeath lines. |
swingarmalso armanimation | swingArm | Makes the caster swing its arm. |
tagaddalso addtag, addscoreboardtag | tagAdd{tag=<name>} | Adds a scoreboard tag to the target. |
tagremovealso removetag, removescoreboardtag | tagRemove{tag=<name>} | Removes a scoreboard tag from the target. |
takeexperiencelevelsalso takeexplevels | takeExperienceLevels{amount=<n>} | Takes experience levels from a player. |
timealso settime | time{amount=<ticks>;mode=SET|ADD|RESET;personal=false} | Sets or adds to the world time, or a player’s own time with personal=true. |
togglesittingalso sit | toggleSitting{state=<bool>} | Makes a cat or dog sit or stand. |
undisguisealso disguiseremove | undisguise | Removes a disguise. Needs LibsDisguises. |
weather | weather{type=sunny|rain|thunder;duration=10s} | Changes the weather for a while. |
wolfsit | wolfSit{sit=true} | Makes a wolf sit or stand. |
Good to know
- AI goals.
runAIGoalSelectorandrunAITargetSelectorcan clear goals or remove one, which is how the starter mobs swap out their vanilla attack (runaigoalselector{goal=remove blaze_attack}). Adding new goals is not supported yet. - Disguises need LibsDisguises. Without it,
disguise,undisguiseanddopplegangerdo nothing. glowis LodeEntities’ permanent outline toggle. MythicMobs’ timed, coloured glow is theeffect:glowaura; the importer renames it for you.freeze,timeandweatherkeep LodeEntities’ own defaults; an imported MythicMobs line gets MythicMobs’ defaults written out.- To make a mob a statue from the start, set
ai: falseon the mob rather than callingsetaion spawn.
