Mechanics

These are the special Kingdom mechanics other than the simple claiming stuff.

## Invasion

Invading a kingdom is the only way to capture a land that belongs to another kingdom. The main point of invading a kingdom is to loot their stuff. You need to be in a kingdom and have enough resource points to invade a kingdom. There are also many other conditions that you'll occasionally have to deal with.

## Preparing

Preparing yourself against invaders is easy if you're familiar with turrets and structures. They play a huge role on protecting your kingdom. A base is another factor, but actually a cliche problem as well. Your nexus chunk, is the most important thing in your kingdom, and it has to have the most security around it. People can mine the nexus to get resource points for every time they break the block.

Powercell structures are specially made for invasions. They're extremely useful when used around the nexus land.

## Champion

The champion is your kingdom main guardian. By default it's a zombie that can be upgraded in the nexus. This mob will spawn when someone tries to invade you. People getting 13 blocks close to the champion, will have the champion's health and time limit bossbars displayed for them.

You can successfully capture a land after you kill the champion. Note that multiple people can invade a single land, so whoever kills the champion faster will get the land. Champions cannot teleport through any portals. Champions will only target the invader and will not change their target under any circumstances.

Champions are immune to some natural occurrences such as transforming to another mob (zombie to Drowned) or burning under the sun.

## During Invasion

* You're not allowed to teleport using any tools, commands, portals and etc...
* You're not allowed to use certain commands.
* You're not allowed to interact with certain blocks.

## Ways to End Invasion

* One of the defender members with permission uses /k surrender.
* The attacker does /k surrender
* The attacker logs out.
* The attacker dies in any way.
* The land is unclaimed.
* The kingdom is disbanded for any sides.
* The attacker is kicked out of the kingdom.
* The champion timer ends.
* The champion gets killed.

## Mass Wars

Mass wars are global server events that happen every 12 hours. By default, they only allow you to invade other kingdoms for free as many times as you want, but there are many other features to disable/enable certain kingdom features during these events.

Mass wars start with a title announcement and a bossbar showing the progress of the event. They also end with the bossbar progress disappearing and a title announcement.

# Guards & Soldiers

Kingdom guards are the mobs spawned when a player enters a kingdom's land these mobs are stronger if the land is a nexus land.

Soldiers are mobs spawned from soldier turrets when the player is within their range.

All these mob types will spawn right next to the player and will only target that specific player. They will not change their target under any circumstances.

These mobs will disappear under specific conditions:

* Successfully killed their target.
* Their target logged out.
* Their target teleported without using Ender Pearls and Chorus Fruit
* If they couldn't kill their target within a certain amount of time.

Note that unlike soldiers, kingdom guards will not spawn if even a single guard from the same kingdom is still targeting them. Doesn't matter if their a nexus guard or a normal land mob. In order for the guards to spawn again, all the guards from that kingdom that are targeting the player must disappear.

# Structures

Structures are stationary blocks that provide different functions in kingdoms.

Each land can only have one single structure. Kingdom and nation nexus is also considered a structure. Having multiple structures (for certain structures only) is a planned feature.

* Nexus: The most important thing in your kingdom that must be protected. Unlike other structures, nexus structures don't drop an item when they're broken. They'll be also removed automatically once the land is invaded. You can manage your nexus using (/k nexus)
* Powercell: Protects 3x3 lands around the powercell land. Which means invaders will have to invade powercell lands before invading the 3x3 lands around them (if they're claimed).
	+ If the land is surrounded by walls, check if the kingdom has anti-explosion misc upgrade.
	+ Check if the land has caves surrounding it so you can invade underground.
	+ If all negative, build a flying slime plane.
* Extractor: Produces resource points over time with a maximum capacity.
* Outpost: Buy different items using resource points and access your nexus remotely.
* Warp Pad: Teleport to all the different structures in your kingdom. Each warp pad also has a name that appears inside the GUI for teleporting to other Warp Pads and above the hologram.
* Regulator: Manage various things in your land, such as mob and animal spawning, explosions, turret ammo auto refill, which players can interact with what type of block and etc...
* Siege Cannon: Cannons that can break kingdom shields and other blocks once a kingdom's shield has been destroyed. These cannons require ammo that are loaded by putting an iron block in the structure's GUI. Then players must sit on the cannon thru the GUI and then they are able to shoot by adjusting the cannon's tube and left-clicking. You can also right-click anywhere while sitting on a cannon to open the structure's GUI for convenience. The cannon will tell you about the situation of the land that the it hit. Hitting anywhere in a land that belongs to a kingdom will reduce that kingdom's shield by `10mins`. Cannons have a `10 second` cooldown. Once a kingdom's shield has been destroyed, shooting the land of that kingdom can destroy its turrets and structures even with anti-explosion misc-upgrade, however these cannons cannot break `powercells` and `nexus` structures. These cannons are also intentionally effective for friendly lands. Meaning that you could destroy your own land.

# Turrets

Turrets are stationary blocks that shoot mobs or heal allies inside and outside of the land within a specific range. They can only be placed on specific blocks. Namely fences and wall blocks. Although you can technically place them on these blocks and break them again and the turret will continue to function properly. They're cosmetic, it's not intended to be a restrictive measure for turrets, it'd cause lag in some situations.

Turrets are known to be laggy in Kingdoms, so try to keep the usage low. They need ammo to be able to shoot. You can purchase ammo by right-clicking on the turret. They can also be upgraded to increase their range, damage and etc.