This addon is a land, nation, and war system built on top of Minecraft Bedrock Script API. It stores most of its data in world dynamic properties, including settings, lands, nations, and the next tax time. It also uses scoreboard objectives for money and playtime, so the system can track economy and progress automatically. First Join When a player joins for the first time, the addon checks whether their language is already set. If not, it opens a language selection menu. After that, the player sees a tutorial that explains the basic purpose of the system: earn money, buy land, build a town, create a nation, and interact with diplomacy or war. During gameplay, the main loop also keeps updating the action bar with tax, money, playtime, and war information. Land System A player can create a land by opening the land form and entering a name plus a radius. The addon checks several rules before creation: the name must be unique, the player must not exceed the land limit, the player must have enough money, the land must not be too close to another land, and the area must not already be occupied. If everything is valid, the land is saved with an ID, owner, name, coordinates, size, access list, ranks, permissions, balance, tax, frozen state, and PvP state. Money is then removed from the player. The “My Lands” menu shows all lands owned by the player, plus lands where they are a member. If the player is standing inside someone else’s land, they see a visitor menu instead. That visitor menu shows the owner, land size, PvP status, and gives an option to declare war on that land. Nation System A nation can only be created if the player already owns at least one land. The addon also checks that the player has enough money and that the nation name is unique. When a nation is created, the player’s first land becomes the capital, and the nation is saved with its own ID, name, owner, town list, capital ID, balance, tax, spawn point, ranks, permissions, allies, and enemies. The creation is broadcast to the whole server. Nation members can open a citizen menu to deposit money into the treasury or teleport to the nation center. Nation leaders get a larger management panel with actions like adding towns, diplomacy, world nation browsing, kicking towns, withdrawing treasury money, setting tax, changing settings, and disbanding the nation. War System War can only be declared by the nation owner. The attacker must have a nation, the target must belong to another nation, and the target nation must already be marked as an enemy. Allies cannot be attacked. If the target is part of a nation, the war can only be started against that nation’s capital town. The attacker also needs enough money to pay the war cost, and only one siege can exist for a town at a time. When war starts, a siege object is created with attacker and defender IDs, flag coordinates, scores, status, and battle timer data. During an active siege, the addon shows a war bar in the action bar with the remaining battle time and score information. The war loop also manages round timing, score checks, flag protection, and cooldown states. Data and Settings The addon’s default settings control gameplay balance. These include the maximum lands per player, daily tax, nation tax, rescue cost, minimum land distance, town and nation creation costs, war duration, war cooldown, win requirements, war cost, penalty values, and check intervals. Server operators can change these values through the saved settings system, and the addon will use the updated values automatically. In Simple Terms The flow is: Set language on first join. Earn money and buy land. Grow land into a town. Combine towns into a nation. Use diplomacy, taxes, and treasury features. Fight wars through the siege system.