Kode 1.2.0 — New Features Update
Released 2026-03-17
New Features
Built-in String & Math Functions
Call these directly in any expression — no
define block needed. Works in
set,
if,
send, and anywhere else an expression is valid.
String:
len,
upper,
lower,
trim,
substr,
replace,
contains,
startswith,
endswith
Math:
abs,
floor,
ceil,
round,
min,
max,
sqrt,
pow,
random
cancel_event Action
Cancel the Bukkit event that triggered your script — block breaks, chat messages, item pickups, and more. Works with any cancellable event. Alias
cancelevent also works.
potion Action
Apply a potion effect directly from a script. Syntax:
potion EFFECT [duration] [amplifier] — duration in ticks (20 = 1s), amplifier starts at 0 (level I).
New player.* Properties
- player.food — food level (0–20)
- player.exp — total experience points
- player.ping — connection latency in milliseconds
- player.uuid — player UUID string
10 New Events
Kode now supports
30 events total.
New player events:
- PlayerInteract — right/left-click a block or air. Variables: action, block_type
- PlayerDropItem — player drops an item. Variable: item
- PlayerGameModeChange — gamemode changes. Variables: gamemode, old_gamemode
- PlayerBedEnter — player enters a bed
- PlayerFish — fishing rod used. Variable: state (e.g. caught_fish, fishing)
- PlayerConsume — player eats or drinks. Variable: item
New entity/world/inventory events:
- EntityDamageByEntity — entity damages another. Variables: damage, attacker_type, attacker_name, attacker_is_player
- Explode — entity explodes (TNT, creeper, etc.)
- FurnaceSmelt — item finishes smelting. Variables: input, result
- CraftItem — player crafts an item. Variable: item
Entity Type Filters
All entity events now support an optional type filter using bracket syntax, e.g.
on EntityDeath[Zombie]. The block only runs when the entity matches.
New entity.* Properties
- entity.type — entity type (e.g. zombie, creeper)
- entity.name — custom name, falls back to entity type
- entity.health — current health
- entity.world, entity.x, entity.y, entity.z — position
How to Update
- Stop your server.
- Replace kode-1.1.0.jar with kode-1.2.0.jar in your plugins/ folder.
- Start your server — no config changes needed.
Need help? Join the Discord or visit the documentation.