Mechanics - Minecraft-Maxmc/KingdomsX-ChineseTranslation GitHub Wiki

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. If you use a plugin like PlayerVault with unlimited storage, it'll destroy the whole purpose of the plugin.
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. Most people build obsidian walls from 0 to 255th block for a single chunk. The only way to invade these lands are to build a flying machine using redstone around 250th block to invade the land.

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.

Champions support MythicMobs and you can also change your champion type in your nexus.

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.

MassWar

Masswars are global server events that happen every 12 hours. Currently, they only allow you to invade other kingdoms for free as many times as you want. Masswars 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. You can manually start or stop a masswar by using /k admin masswar command.
All the masswar settings can be changed from invasions.yml


Guards & Soldiers

Kingdom guards are the mobs spawned when a player enters a kingdom's land (without CEASEFIRE attribute) 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 are used for different functions in kingdoms.
Each land can only have one single structure. Kingdom and nation nexus is also considered a structure. Having multiple structures 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)[https://github.com/CryptoMorin/KingdomsX/wiki/Commands#k-nexus-openremove] command. Related config settings for nexus can be found in config.yml -> 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...

Turrets

Turrets are stationary blocks that shoot mobs or heal allies inside and outside of the land within a specific range. They're custom and you can make your own turrets with your own settings and levels in the Turrets folder.\ 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.


Others

Nether Portal Protection

When using the nether portals to teleport, if the destination location is owned by a kingdom that doesn't have casefire or turret ceasefire attributes, the teleportation will be canceled.

Beacons

When beacons are placed in a claimed land, only players with ceasefire attribute will be affected by the beacon.