Jump to content

Prison Pearl

From Civnodes Wiki

Prison Pearl changes what happens when you kill someone. If you have an ender pearl in your hotbar when a player you damaged dies, they are bound to that pearl and sent to The End. They stay there until the pearl is freed, destroyed or runs out of health. The plugin behind it is ExilePearl, which is why the commands start with /ep.

Pearling a player

You need a plain ender pearl in one of your nine hotbar slots at the moment the target dies. A pearl in the rest of your inventory or in your off hand does not count, and neither does a pearl that already holds someone. One ender pearl is taken from your stack and becomes the Prison Pearl.

You don't need the killing blow. When the victim dies, from any cause, the pearl goes to the player who dealt the most recorded damage and has a hotbar pearl ready. If the top damager has no pearl, the next one down gets it.

Recorded damage fades by 1 point per second and is capped at 30 points per attacker. A hit for 8 damage is remembered for 8 seconds, and the most any attacker can have on record is 30 seconds' worth. A splash potion of Harming, Poison or Weakness counts as up to 6 damage for the thrower.

Killing a Combat Tag logout NPC counts as killing the player, so someone who disconnects in a fight can be pearled while offline. A player who is pearled can't pearl anyone else.

Being pearled

You die as normal and your items drop where you fell. You respawn at a random spot in The End.

You can't leave. Walking into an End portal puts you back at a random spot in The End, and an ender pearl thrown through the exit portal won't carry you out. Prison Pearl puts no other limits on what you do in The End. If you die there you respawn there.

Combat Tag is switched off in The End, so you can log out at any time without leaving an NPC behind.

While one of your accounts is pearled, your other accounts are kicked and refused at login with "You have too many imprisoned alts". The pearled account can still log in.

/ep locate shows who or what holds your pearl and where. You get the same message every time the pearl changes hands or containers.

Pearl health and upkeep

A pearl loses 1 health every hour. At 0 the player is freed.

Setting Value
Starting health 48 (2 days)
Maximum health 336 (14 days)
Decay 1 health per hour, 24 per day
Fuel Aether (see Essence)
Repair per Aether 8 health when the pearl is new
Upkeep when the pearl is new 3 Aether per day

To refuel, put the pearl and a stack of Aether in a crafting grid. The 2x2 grid in your inventory works. Only as much Aether as it takes to fill the pearl is used.

Holding someone gets more expensive the longer you do it. Each Aether repairs 8 health divided by 1.25 raised to (days since pearling / 21), so the cost goes up 25% every three weeks and compounds. The increase stops after 365 days. The pearl's tooltip shows its health and the current cost per day, rounded up to a whole Aether.

Days since pearling Health per Aether Aether per day
0 8.0 3.0
7 7.4 3.2
21 6.4 3.8
42 5.1 4.7
84 3.3 7.3
180 1.2 20.3
365 and later 0.17 145

While the pearled player is banned, the pearl loses no health and does not free them. Decay picks up again when the ban ends. The same happens once the pearled player has gone a year without logging in: the pearl stops losing health and holds them at no cost until they next log in. Neither case frees the player.

Storing a pearl

A pearl can be carried in your inventory or kept in a chest, barrel, furnace, dispenser, dropper, hopper, brewing stand or item frame. Shulker boxes and storage minecarts refuse it. Hoppers will not move a pearl between containers, dispensers will not fire one, mobs can't pick one up and anvils can't rename one.

What happens Result
You log out holding it The pearl drops at your feet. This is the same after a safe /logout and after an untagged disconnect that leaves a logout NPC: the NPC does not carry the pearl. Only if you were combat tagged does your logout NPC keep it. It drops the pearl when it despawns or dies, and you get the pearl back if you log in while the NPC is still standing.
It is lying on the ground It never despawns, but the player is freed the moment the chunk it lies in unloads. Walking away from a dropped pearl frees it.
It burns in fire or lava The player is freed.
You step into a portal with it The pearl drops on the ground at the portal. It can't be carried to another dimension.
You try to glide with it Elytra will not open while you carry a pearl, and you can't pick one up mid-flight.
You right-click with it Nothing. Pearls can't be thrown, and throwing does not free anyone here.
You die holding it It drops with the rest of your items.

Every hour the server checks that each pearl is still where it was last seen. If it can't be found there, the player is freed.

Since you can't log out with a pearl, the only way to hold someone long term is a container. Put it in a chest reinforced with Citadel inside something built to resist a break-in, and keep it fuelled.

Freeing someone

Hold the pearl in your main hand and run /ep free. A player is also freed when the pearl burns, when it is left on the ground and its chunk unloads, or when its health runs out.

A freed player's inventory, apart from ender pearls, is dropped where they stand in The End. They are then moved to a random spawn in the overworld (see Random Spawn), not to the pearl and not to their bed. If they are offline when freed, this happens the next time they log in.

Home territory protection

If you are killed in a chunk that a node controller is protecting, and you are a member or higher of the Name Layer group that owns that node, the pearl is marked as node protected. Any rank from member up counts, whether or not it holds the NODE_ACCESS permission. A node protected pearl frees itself 7 days after the kill, no matter how much Aether is in it. The pearl's tooltip and the /ep showall menu show the release date.

The chunk has to be under protection at the time of the kill. A node that has been beaten back far enough that it no longer covers the spot where you died gives no protection. See Nodes for how that coverage shrinks.

The 7 days are a ceiling. The pearl still needs upkeep in the meantime and frees early if its health reaches 0.

Pearl types

This server only uses Prison Pearls. Other Civ servers start with an Exile Pearl, which leaves the victim in the overworld under a list of restrictions and has to be upgraded before it sends them to The End. That stage does not exist here. Every pearl is a Prison Pearl from the moment of the kill, and the exile restrictions (no PvP, no breaking reinforced blocks, staying away from your pearl and so on) are not applied to anyone.

Tracking pearls

/ep showall opens a menu of every pearled player, newest first, with who killed them and when. If you are in the same world and within 1,200 blocks of a pearl, its entry also shows the coordinates.

A pearled player can share their pearl's location. /ep broadcast followed by a group name sends every future location update to the online members of that group, provided you can chat in it and hold its pearl broadcast permission (members and above have it by default). Run it again to stop. Followed by a player name, it sends that player a request. The request message tells them to type /ep confirm, which is wrong. The command that accepts it is /ep accept.

Commands

Command What it does
/ep locate Shows who or what holds your pearl and its coordinates.
/ep free Frees the player in the pearl in your main hand.
/ep showall Opens the menu of all pearled players.
/ep broadcast <group or player> Shares your pearl's location updates with a group, or asks a player to receive them.
/ep accept Accepts a broadcast request from a pearled player.
/ep silence <player> Stops the location updates you receive from that pearled player.
/ep help Lists the /ep commands.
/suicide Kills you after 180 seconds. Moving more than 2 blocks cancels it. Works whether or not you are pearled.