Aller au contenu principal

Skill Conditions Reference

Conditions gate whether a skill (or targeter) runs, based on the state of the caster, target, or environment. They are used inline with ? (AND) and ?~ / | semantics in skill lines:

Skills:
- skill{s=BigBoom} @target ~onTimer:100 ?health{h=<50%} ?incombat

Invert any condition with a leading !: ?!isplayer.

info

BTCMobs registers 146 conditions — meeting and exceeding MythicMobs 5.13 parity. Names are case-insensitive. Many accept short aliases (e.g. health{h=...}).

Entity state

health · level · stance · name · isplayer · isliving · ismonster · iscaster · onfire · isfrozen · isinlava · isinwater · isinvulnerable · isleashed · hasai · hasmount · mounted · hasowner · ownerisonline · hastarget · mobsize · charged · charging · blocking · gliding · isflying · isclimbing · isswimming · crouching · issprinting · isonground · israiderpatrolleader · isusingspyglass · israided

Combat & threat

damageamount · damagecause · damagetag · lastdamagecause · incombat · isrooted · issilenced · playerkills · faction · hasaura

Position & line of sight

distance · targetwithin · playerwithin · playernotwithin · inside · outside · cuboid · height · altitude · pitch · yaw · onblock · onsurface · moving · motionx · motiony · motionz · velocity · lineofsight · lineofsightfromorigin · targetinlineofsight · targetnotinlineofsight · targetisplayer · onscreen · raytracable · livinginradius · playersinradius · mobsinradius · blockinradius · mobsnearorigin · playersnearorigin · boundingboxesoverlap

Inventory & items

inventory · hasitem · holding · hasoffhand · wearing · itemtype · entityitemtype · entitymaterialtype · hasenchantment · hasfreeinventoryslot · itemrecharging · itemgrouponcooldown · materialisoncooldown · hascurrency · triggeritemtype · triggerblocktype

World & environment

world · biome · biometype · dimension · structure · time · day · night · weather · moist · lightlevel · lightlevelfromblocks · localdifficulty · color · vibrationnearby · enderdragonalive · enderdragonphase · spawnreason

Scores, variables & math

comparevalues (aka math) · score · globalscore · variableequals · variableisset · variablecontains · variablerange · stringequals · stringempty · stringnotempty · xdiff · ydiff · zdiff · chance

Player-only

gamemode · permission · foodlevel · foodsaturation · isinsurvivalmode · enchantinglevel · enchantingexperience

Pins & tracked locations

inpinregion · distancefrompin · origindistancefrompin · distancefromtrackedlocation

Integrations & server

mcmmolevel · mcmmopower · inclaim (GriefPrevention) · placeholder (PlaceholderAPI) · plugin · serverispaper · serverversion · hastag · vehicleisdead · isskill

astuce

Run /btc audit in-game to print the exact list of conditions registered on your server.