izzv’s Mods ·
Wiki

Home / Mechanics

Mechanics

You don't need any of this to use the mod. It's here for the times you wonder why a blink landed two blocks short, or why it did nothing at all.

The click happens on the server

Every shard runs its effect on the server only. The client's right click is thrown away, which stops the two sides disagreeing about whether something happened or when a cooldown started. That's also why the behaviour is identical in singleplayer, on LAN, and on a server.

Blink and Warp share one piece of logic. They don't throw you a fixed distance and hope. They walk backwards along your line of sight, starting at the maximum range and checking every half block:

  1. Start at the range: 12 blocks for Blink, 24 for Warp.
  2. Check whether the block at your feet and the block at your head are both free of collision.
  3. If they are, that's where you go. If not, step back half a block and try again.
  4. Give up at one block out. If even that is blocked, the shard fails.

Searching from far to near is the whole trick. You always get the furthest spot that fits, so aiming at a wall at close range gives you a short hop instead of a wasted click.

What counts as free

The check uses each block's collision shape rather than asking "is this air", so tall grass, flowers and torches don't block a landing. You won't get dumped on top of a fern.

The random one

The Ender Shard picks up to 24 random offsets within roughly 10 blocks out and 5 up or down, and takes the first that passes the same two-block check. If all 24 are blocked, nothing happens. In a two-block-wide tunnel that's most of the time.

Where Return puts you

The spawn of the dimension you're currently standing in, at the centre of the spawn block. Not your bed, not your respawn anchor. Using those would make it useless for the situation it exists for, which is being lost.

It will happily put you in a hole. It targets the spawn block and doesn't search upwards for something safe. If your spawn is at the bottom of a ravine, that's your new home.

Cooldowns

Each shard has a fixed cooldown, shown as the vanilla sweep on the item. Two rules matter more than the numbers:

ShardTicksSeconds
Blink Shard804
Warp Shard1407
Ender Shard20010
Return Shard20010
Feather Shard30015
Void Shard180090
Ember Shard120060
Hearth Shard120060
Tide Shard120060
Gale Shard90045
Sight Shard120060

The effect shards

Feather, Void, Ember, Hearth, Tide, Gale and Sight just apply vanilla effects. Two consequences worth knowing about:

Sound and particles

Teleport shards use the enderman sound for Blink and Warp and the chorus fruit sound for Ender and Return, with portal particles at both ends. Effect shards chime like an amethyst block and give off end rod sparks. All of it is server-side, so nearby players see and hear it too.

If you're reading the code