Skip to content

Commands

Riqqqque edited this page Aug 3, 2026 · 8 revisions

Commands

All commands require OP level 2.

Commands update the live server settings. Some settings may return to the config file values after a restart unless the config file is also changed.

Most Useful Commands

Command What it does When to use it
/zhelp Shows in-game command help. When you forget the command list.
/zcompat status Shows detected supported mods and compatibility safeguards. First check for a mixed zombie modpack.
/zdayspawn status Shows current spawn settings and warns when spawn distances are impossible. First troubleshooting step.
/zscaling status Shows day scaling status. Check how strong zombies should be.
/zhorde status Shows event status. Check hordes, blood moons, and multipliers.
/zcleanup uninstall Clears leftovers and disables gameplay systems. Before removing the mod temporarily.
/zblockbreak status Shows zombie block-breaking rules. Check whether zombies can damage bases.
/zblockplace status Shows zombie block-placing rules. Check whether zombies can build steps or bridges.
/ztower status Shows zombie towering rules and its day gate. Check whether a zombie crowd can climb over defenses.

General

Command What it does
/zhelp Shows built-in command help.
/zburn <true/false> Controls whether zombies burn in daylight. true means they burn, false means they do not.
/zkill Removes loaded zombie-class entities from loaded levels.
/zcleanup Removes loaded zombie leftovers and resets apocalypse event state.
/zcleanup uninstall Runs cleanup and disables spawning, events, scaling, attributes, block breaking, block placing, towering, day titles, sunlight immunity, extra drops, and death cooldowns for the current server session.

Mod Compatibility

The defaults are the safest choice for most modpacks. Run /zcompat status before changing them.

Command What it does
/zcompat Shows detected supported mods and active safeguards.
/zcompat status Shows the same compatibility status.
/zcompat modded <true/false> Toggles automatic recognition of modded Zombie subclasses.
/zcompat difficulty <true/false> Toggles addon difficulty scaling for recognized modded zombies.
/zcompat ai <true/false> Toggles addon block breaking, placing, and towering for recognized modded Zombie subclasses.
/zcompat spawnrules <true/false> Lets external spawn-control mods approve or reject addon spawns.
/zcompat externalai <true/false> Avoids duplicate addon AI where a supported mod owns zombie AI.
/zcompat externaldifficulty <true/false> Avoids stacking addon difficulty with a supported difficulty mod.
/zcompat doors <true/false> Respects each zombie's door-breaking permission.
/zcompat equipment <true/false> Preserves weapons and armor already supplied by Minecraft or another mod.

See Mod Compatibility for the supported-mod list, behavior details, and safe overrides.

Day Control

Command What it does
/zday Shows the current apocalypse day.
/zday status Shows day and time-of-day.
/zday set <day> Sets the apocalypse day counter. Event scheduling is reset if the day changed.

Examples:

/zday status
/zday set 10

Events

Command What it does
/zhorde start Starts a horde immediately.
/zhorde stop Stops the active horde.
/zhorde status Shows horde, blood moon, and multiplier state.
/zbloodmoon Starts a blood moon now if it is night, or queues one for tonight.

Stats

Command What it does
/zstats Shows your stats, or server summary from console.
/zstats <player> Shows stats for a specific player.
/zstats all Shows server totals.
/zstats clear Clears tracked stats, cooldowns, and milestone advancement progress.

Spawn Settings

Command What it does
/zdayspawn enabled <true/false> Turns custom spawning on or off.
/zdayspawn chance <0.0-1.0> Spawn-wave chance each interval. 0.0 means never, 1.0 means every check.
/zdayspawn interval <ticks> Normal spawn check interval. 20 ticks = 1 second.
/zdayspawn eventinterval <ticks> Spawn interval during hordes and blood moons.
/zdayspawn amount <1-50> Mobs attempted per successful wave.
/zdayspawn attempts <1-40> Position attempts per mob. Higher fills waves better but costs more CPU.
/zdayspawn max <1-500> Nearby zombie-class cap per player.
/zdayspawn range <16-128> Horizontal spawn range around players.
/zdayspawn mindist <8-64> Minimum spawn distance from players.
/zdayspawn daylightstart <day> Delays daytime custom spawning until a chosen day.
/zdayspawn maxlight <-1-15> Maximum block light for custom spawns. -1 ignores block light.
/zdayspawn sky <true/false> Requires open sky for overworld custom spawns.
/zdayspawn babychance <0.0-1.0> Baby zombie chance. 0.0 disables new baby zombie-class spawns.
/zdayspawn daycounter <true/false> Toggles morning day-counter titles.
/zdayspawn horde <true/false> Toggles scheduled horde events.
/zdayspawn hordechance <0.0-1.0> Scheduled horde chance.
/zdayspawn bloodmoon <true/false> Toggles random blood moons.
/zdayspawn scaling <true/false> Toggles day-based scaling.
/zdayspawn attributes <true/false> Toggles advanced attribute modifiers.
/zdayspawn attributescaling <true/false> Toggles whether attributes scale with world day difficulty.
/zdayspawn variantprofiles <true/false> Toggles per-zombie-type attribute profiles.
/zdayspawn contextprofiles <true/false> Toggles biome and dimension attribute multipliers.
/zdayspawn nightboost <true/false> Toggles night spawn chance boost.
/zdayspawn variants <true/false> Toggles zombie variants.
/zdayspawn biomes <true/false> Toggles biome spawn modifiers.
/zdayspawn nether <true/false> Allows custom spawning in the Nether.
/zdayspawn end <true/false> Allows custom spawning in the End.
/zdayspawn cooldown <true/false> Toggles death cooldown spawn relief.
/zdayspawn effects <true/false> Toggles spawn particles and sounds.
/zdayspawn debug <true/false> Toggles debug logging. Keep off unless troubleshooting.

Zombie Block Breaking

Block breaking is disabled by default. The safe defaults also protect containers, modded machines, light sources, tool-required blocks, and unbreakable blocks.

Command What it does
/zblockbreak Shows all current block-breaking settings.
/zblockbreak status Shows all current block-breaking settings.
/zblockbreak dayone Enables block breaking and sets its start day to 0.
/zblockbreak enabled <true/false> Turns zombie block breaking on or off.
/zblockbreak startday <0-3650> Sets the first day zombies may break blocks.
/zblockbreak interval <20-72000> Sets ticks between attempts for each zombie. 20 ticks = 1 second.
/zblockbreak chance <0.0-1.0> Sets the chance that a scheduled attempt runs.
/zblockbreak range <1-4> Sets how far ahead a zombie checks. 1 is safest.
/zblockbreak hardness <0.0-50.0> Sets the maximum block hardness zombies can break.
/zblockbreak drops <true/false> Controls whether broken blocks drop items.
/zblockbreak target <true/false> Requires a living target before breaking.
/zblockbreak obstacle <true/false> Requires a collision or blocked line of sight.
/zblockbreak mobgriefing <true/false> Makes mobGriefing and loader protection events control breaking.
/zblockbreak containers <true/false> Allows or protects containers and block entities.
/zblockbreak toolblocks <true/false> Allows or protects blocks that require the correct tool.
/zblockbreak lights <true/false> Allows or protects light-emitting blocks.

Safer example for a world where zombies start damaging soft walls on day 20:

/zblockbreak enabled true
/zblockbreak startday 20
/zblockbreak range 1
/zblockbreak hardness 2.0
/zblockbreak drops false

Zombie Block Placing

Block placing is disabled by default. When enabled, zombies can fill a one-block-deep gap or place a one-block step. They cannot place floating blocks, blocks with inventories, unsafe materials, blocks in unloaded chunks, or blocks on top of entities.

Command What it does
/zblockplace Shows all current block-placing settings.
/zblockplace status Shows all current block-placing settings.
/zblockplace dayone Enables block placing and sets its start day to 0.
/zblockplace enabled <true/false> Turns zombie block placing on or off.
/zblockplace startday <0-3650> Sets the first day zombies may place blocks.
/zblockplace interval <20-72000> Sets ticks between attempts for each zombie. 20 ticks = 1 second.
/zblockplace chance <0.0-1.0> Sets the chance that a scheduled attempt runs.
/zblockplace block <namespace:id> Chooses the safe solid block zombies place.
/zblockplace limit <0-256> Sets the lifetime placement limit per zombie. 0 is unlimited.
/zblockplace distance <4-128> Sets the farthest target distance that permits placement.
/zblockplace target <true/false> Requires a valid living target before placing.
/zblockplace obstacle <true/false> Requires a collision, covered/raised target, or gap.
/zblockplace mobgriefing <true/false> Makes mobGriefing and loader protection events control placement.
/zblockplace bridges <true/false> Allows or blocks filling one-block-deep gaps.
/zblockplace steps <true/false> Allows or blocks one-block steps.
/zblockplace fluids <true/false> Allows or protects replaceable fluid blocks.
/zblockplace replaceable <true/false> Allows or protects plants, snow, and similar replaceable blocks.
/zblockplace resetcounts Resets placement limits for loaded zombie-class mobs.

Safer example where zombies begin building with cobblestone on day 20:

/zblockplace enabled true
/zblockplace startday 20
/zblockplace block minecraft:cobblestone
/zblockplace limit 6
/zblockplace mobgriefing true

Claim and protection mods can cancel the normal Forge/NeoForge block-place event. Keep mobgriefing enabled unless you deliberately want this feature to ignore the vanilla gamerule.

Zombie Towering

Towering is disabled by default. When enabled, it starts on day 20 and lets crowded zombie-class mobs climb over each other toward an obstructed, covered, or raised target. It does not place or break blocks.

Command What it does
/ztower Shows all current towering settings.
/ztower status Shows all current towering settings and the active day gate.
/ztower dayone Enables towering and sets its start day to 0.
/ztower enabled <true/false> Turns zombie towering on or off.
/ztower startday <0-3650> Sets the first day zombies may tower.
/ztower interval <5-72000> Sets ticks between towering checks for each zombie.
/ztower chance <0.0-1.0> Sets the chance that a scheduled check continues.
/ztower distance <4-128> Sets the farthest target distance that permits towering.
/ztower crowd <1-16> Sets how many other nearby zombies are required.
/ztower radius <0.75-6.0> Sets the nearby-crowd search radius.
/ztower vertical <0.1-1.0> Sets upward velocity.
/ztower forward <0.0-0.6> Sets target-facing horizontal velocity.
/ztower height <1-32> Sets the maximum height above the target.
/ztower obstacle <true/false> Requires a collision, barrier, covered target, or raised target.

Safer example where swarms begin towering on day 30:

/ztower enabled true
/ztower startday 30
/ztower crowd 2
/ztower obstacle true

The defaults require a valid survival target, two nearby zombie-class mobs, enough block clearance, and an obstacle or raised/covered target. Riding, passenger-carrying, swimming, lava-bound, and no-AI zombies cannot tower.

Attribute Tuning

Advanced attributes are for fine balancing. If you are new, you can ignore this section at first.

Command What it does
/zattr status Shows attribute system status.
/zattr keys Shows key format help.
/zattr keys all Shows every supported numeric and toggle key.
/zattr get <key> Reads a numeric value.
/zattr set <key> <value> Sets a numeric value.
/zattr toggle <key> <true/false> Changes a supported boolean toggle.

Simple examples:

/zattr get base.health.multiplier
/zattr set base.health.multiplier 1.15
/zattr set variant.husk.attack.multiplier 1.30
/zattr toggle attributes.contextProfiles false

Clone this wiki locally