🔀 Condition Blocks

Make your aliases actually think. Check stuff, then decide what to do. No coding required.

New in v4.0 — Works in any alias target. No separate config needed.

How It Looks

if:condition(args) do this stuff else do this instead

The else part is optional. If the check fails and there's no else, the alias just quietly does nothing. No ugly errors.

What You Can Check

ConditionWhat you typeExample
XP Levelxp(30)if:xp(30) give @s diamond else say Get to level 30 first!
Health %health(50)if:health(50) say Looking good! else say You're hurt!
Permissionperm(node)if:perm(cmdmaker.admin) say Hello boss
Has Itemhasitem(id)if:hasitem(minecraft:diamond) say Rich! else say Broke!
Variablevar(name value)if:var(team red) tp @s red_base
Cooldown Readycooldown(alias)if:cooldown(home) say Wait up else home
Player Nameplayer(name)if:player(Steve) say Hey Steve!
Dimensiondimension(id)if:dimension(nether) say It's getting hot in here
Is Opop()if:op() say You've got the power

Real Examples You'd Actually Use

// Reward high-level players
"diamond_reward": "if:xp(30) give @s minecraft:diamond 5 else say Need 30 levels for diamonds!"

// Different spawn point per dimension
"spawn": "if:dimension(nether) say Use /overworld first! else tp @s 0 100 0"

// Don't let injured players go berserk
"berserk": "if:health(60) effect give @s minecraft:strength 10 2 else say Too hurt for that!"

// VIPs get the fancy greeting
"vip_greet": "if:perm(cmdmaker.vip) say Welcome back, VIP! else say Hey there!"

The Fine Print

💡 Combo move: if:cooldown(heal) say Wait 30s else if:health(80) say Already healthy! else heal — cooldown gating AND health check in one alias.