[Mod] Towny in Minetest! (BIG WIP) [towny]

Post Reply
User avatar
IcyDiamond
Member
Posts: 175
Joined: Fri Mar 30, 2018 08:55
GitHub: LunaSquee
IRC: IcyDiamond
In-game: IcyDiamond
Location: Estonia
Contact:

[Mod] Towny in Minetest! (BIG WIP) [towny]

by IcyDiamond » Post

This mod is based on the popular Minecraft server mod of the same name.

At it's current state, it's a glorified semi-fixed-grid protection system based on claims and plots.

Town Claim Blocks
A claim block is 16x64x16 nodes in size. By default, nobody in town except for the mayor can build in an unplotted claim block. The number of available claim blocks depends on the number of town residents. A claim block can be turned into a plot with the /plot claim command.

Plots
Plots are town claim blocks that can be owned by a town resident. Plots can have multiple members.

Simple usage
  • /town help all - Show all available commands in-game
  • /town new <town name> - Create a town right where you're standing
  • /town claim - Claim more land for your town. Must be called right outside of an existing town claim.
  • /town invite <user> - Invite a player to your town
  • /plot claim - Create/claim a plot
  • /plot set claimable true - Set the plot as claimable by other town members
  • /plot member add/del <resident> - Add/remove a person from a plot. Adding people to your plot will let them build on it.
  • /town kick <user> - Remove user from your town.
  • /town visualize - Highlight the bounds of your town's claim blocks.
Source Code: https://gitlab.icynet.eu/evert/towny
License: MIT

More information and updates coming soon.

See this mod and my other mods in action on my public server "Icy's Mod-world" at home.lunasqu.ee!

WARNING: It is not recommended that you use this mod in a public server just yet. There will likely be a lot of breaking changes daily!!
Last edited by IcyDiamond on Wed Nov 20, 2019 16:39, edited 3 times in total.
Web developer | Systems Administrator

User avatar
texmex
Member
Posts: 1753
Joined: Mon Jul 11, 2016 21:08
GitHub: tacotexmex
In-game: tacotexmex

Re: [Mod] Towny in Minetest! (BIG WIP) [towny]

by texmex » Post

Very welcome development! Judging from the quality and success of your excellent elepower mod I can’t wait to see where this is going. =)

Please keep other games than MTG in mind when developing (not depending unnecessarily on (MTG) default and so on)

User avatar
Krock
Developer
Posts: 4649
Joined: Thu Oct 03, 2013 07:48
GitHub: SmallJoker
Location: Switzerland
Contact:

Re: [Mod] Towny in Minetest! (BIG WIP) [towny]

by Krock » Post

Landrush and simple_protection welcome you to the club of fixed grid claims.
It looks like you planned to add many more features than just a protection mod. I'm excited to see the final result :)
Look, I programmed a bug for you. >> Mod Search Engine << - Mods by Krock - DuckDuckGo mod search bang: !mtmod <keyword here>

User avatar
texmex
Member
Posts: 1753
Joined: Mon Jul 11, 2016 21:08
GitHub: tacotexmex
In-game: tacotexmex

Re: [Mod] Towny in Minetest! (BIG WIP) [towny]

by texmex » Post

I think some of towny’s most attractive features is that towns are safe harbors in terms of PvP, PvE and protection. That makes ”the wilderness” all the more terrifying. The feature of only being able to spawn in home town or allied town is interesting too.

Also the feature of ”Limit players’ interaction with the wild to just harvest-able blocks, keeping the wild pristine” sounds good to me and could inventivize the construction of vast and vertigo-inducing mining pits under the town.

User avatar
rubenwardy
Moderator
Posts: 6972
Joined: Tue Jun 12, 2012 18:11
GitHub: rubenwardy
IRC: rubenwardy
In-game: rubenwardy
Location: Bristol, United Kingdom
Contact:

Re: [Mod] Towny in Minetest! (BIG WIP) [towny]

by rubenwardy » Post

I'm quite excited to see this! This is quite close to what I want in Capitalism Game, although I'd like plots to be able to have irregular shapes

I'm hoping that you try to cleanly separate the land part of it (towns, plots) from the admin part of it (taxes, rules, etc)
Renewed Tab (my browser add-on) | Donate | Mods | Minetest Modding Book

Hello profile reader

gpcf
Member
Posts: 382
Joined: Fri May 27, 2016 10:48
GitHub: gpcf
In-game: gabriel

Re: [Mod] Towny in Minetest! (BIG WIP) [towny]

by gpcf » Post

Capitalism Game? That's something I've always wanted to do :D

User avatar
rubenwardy
Moderator
Posts: 6972
Joined: Tue Jun 12, 2012 18:11
GitHub: rubenwardy
IRC: rubenwardy
In-game: rubenwardy
Location: Bristol, United Kingdom
Contact:

Re: [Mod] Towny in Minetest! (BIG WIP) [towny]

by rubenwardy » Post

gpcf wrote:Capitalism Game? That's something I've always wanted to do :D
I'd love some contributors! Check out the github repo and the discord
Renewed Tab (my browser add-on) | Donate | Mods | Minetest Modding Book

Hello profile reader

User avatar
IcyDiamond
Member
Posts: 175
Joined: Fri Mar 30, 2018 08:55
GitHub: LunaSquee
IRC: IcyDiamond
In-game: IcyDiamond
Location: Estonia
Contact:

Re: [Mod] Towny in Minetest! (BIG WIP) [towny]

by IcyDiamond » Post

Added Nations. Nations are essentially groups of towns that can ally or become enemies with another nation, separating servers into teams.

Nation commands are similar to that of town ones, but instead of /town you use /nation. It will cost a lot more to found a nation than it costs to found a town.

Keep in mind, this is a component mod that you can just disable without any issues.
Web developer | Systems Administrator

User avatar
IcyDiamond
Member
Posts: 175
Joined: Fri Mar 30, 2018 08:55
GitHub: LunaSquee
IRC: IcyDiamond
In-game: IcyDiamond
Location: Estonia
Contact:

Re: [Mod] Towny in Minetest! (BIG WIP) [towny]

by IcyDiamond » Post

texmex wrote:Please keep other games than MTG in mind when developing (not depending unnecessarily on (MTG) default and so on)
Don't worry, there will not be any hard dependencies on any other mods.
Web developer | Systems Administrator

User avatar
texmex
Member
Posts: 1753
Joined: Mon Jul 11, 2016 21:08
GitHub: tacotexmex
In-game: tacotexmex

Re: [Mod] Towny in Minetest! (BIG WIP) [towny]

by texmex » Post

texmex wrote:Also the feature of ”Limit players’ interaction with the wild to just harvest-able blocks, keeping the wild pristine” sounds good to me and could inventivize the construction of vast and vertigo-inducing mining pits under the town.
Iterating on this I have this idea of taxes being payed automatically by the player when mining. For instance, if tax is 10%, every 10th of a specific node mined is automatically brought over to a town chest. Each town would be free to set their own tax and perhaps even their own tax system (progressive tax, flat tax and so on).

In combination with systems of decision-making, inhabitants of towns may collectively decide on what to do with the contents of the town chest. For instance, if the power source keeping the lights on throughout town is finite and coal-based it would be a good idea to collect tax in the form of coal.

User avatar
IcyDiamond
Member
Posts: 175
Joined: Fri Mar 30, 2018 08:55
GitHub: LunaSquee
IRC: IcyDiamond
In-game: IcyDiamond
Location: Estonia
Contact:

Re: [Mod] Towny in Minetest! (BIG WIP) [towny]

by IcyDiamond » Post

For concerns regarding other protection mods, towny supports and respects areas. Towns cannot be founded in or expanded into areas-protected regions.
Web developer | Systems Administrator

User avatar
texmex
Member
Posts: 1753
Joined: Mon Jul 11, 2016 21:08
GitHub: tacotexmex
In-game: tacotexmex

Re: [Mod] Towny in Minetest! (BIG WIP) [towny]

by texmex » Post

Is /town visualize supposed to work yet?

User avatar
IcyDiamond
Member
Posts: 175
Joined: Fri Mar 30, 2018 08:55
GitHub: LunaSquee
IRC: IcyDiamond
In-game: IcyDiamond
Location: Estonia
Contact:

Re: [Mod] Towny in Minetest! (BIG WIP) [towny]

by IcyDiamond » Post

texmex wrote:Is /town visualize supposed to work yet?
yes it works, however the area is only visible from outside due to the way entities work. the visualization will be replaced by particles later.
Web developer | Systems Administrator

User avatar
rubenwardy
Moderator
Posts: 6972
Joined: Tue Jun 12, 2012 18:11
GitHub: rubenwardy
IRC: rubenwardy
In-game: rubenwardy
Location: Bristol, United Kingdom
Contact:

Re: [Mod] Towny in Minetest! (BIG WIP) [towny]

by rubenwardy » Post

IcyDiamond wrote:
texmex wrote:Is /town visualize supposed to work yet?
yes it works, however the area is only visible from outside due to the way entities work. the visualization will be replaced by particles later.
I'm fairly sure worldedit works fine. Have you made sure you've disabled backface culling?
Renewed Tab (my browser add-on) | Donate | Mods | Minetest Modding Book

Hello profile reader

User avatar
texmex
Member
Posts: 1753
Joined: Mon Jul 11, 2016 21:08
GitHub: tacotexmex
In-game: tacotexmex

Re: [Mod] Towny in Minetest! (BIG WIP) [towny]

by texmex » Post

WorldEdit has the same issue with visibility from my experience. I'd much rather prefer particles too, since they can be shown to just the player who initializes the visualization.

User avatar
texmex
Member
Posts: 1753
Joined: Mon Jul 11, 2016 21:08
GitHub: tacotexmex
In-game: tacotexmex

Re: [Mod] Towny in Minetest! (BIG WIP) [towny]

by texmex » Post

Will it be possible to change the claim height so that it affects both above and below the claim point? I want towns with claims to all available vertical space (Y -32000 through Y 32000).

User avatar
IcyDiamond
Member
Posts: 175
Joined: Fri Mar 30, 2018 08:55
GitHub: LunaSquee
IRC: IcyDiamond
In-game: IcyDiamond
Location: Estonia
Contact:

Re: [Mod] Towny in Minetest! (BIG WIP) [towny]

by IcyDiamond » Post

texmex wrote:Will it be possible to change the claim height so that it affects both above and below the claim point? I want towns with claims to all available vertical space (Y -32000 through Y 32000).
I could probably add a setting for that
Web developer | Systems Administrator

User avatar
texmex
Member
Posts: 1753
Joined: Mon Jul 11, 2016 21:08
GitHub: tacotexmex
In-game: tacotexmex

Re: [Mod] Towny in Minetest! (BIG WIP) [towny]

by texmex » Post

Very cool! Two vars, an y_min and an y_max would be ideal.

User avatar
IcyDiamond
Member
Posts: 175
Joined: Fri Mar 30, 2018 08:55
GitHub: LunaSquee
IRC: IcyDiamond
In-game: IcyDiamond
Location: Estonia
Contact:

Re: [Mod] Towny in Minetest! (BIG WIP) [towny]

by IcyDiamond » Post

texmex wrote:Very cool! Two vars, an y_min and an y_max would be ideal.
I have now implemented this. these are the settings:

Code: Select all

# Use static height claim blocks
towny_static_height (Use static height claims) bool false
towny_static_miny (Static claim: minimum Y) int -32000
towny_static_maxy (Static claim: maximum Y) int 32000
Web developer | Systems Administrator

User avatar
runs
Member
Posts: 3225
Joined: Sat Oct 27, 2018 08:32

Re: [Mod] Towny in Minetest! (BIG WIP) [towny]

by runs » Post

Oh, I loved Towny in Minecraft. I am happy now :-)

User avatar
texmex
Member
Posts: 1753
Joined: Mon Jul 11, 2016 21:08
GitHub: tacotexmex
In-game: tacotexmex

Re: [Mod] Towny in Minetest! (BIG WIP) [towny]

by texmex » Post

Did you loose inspiration? It happens to us all. =)

User avatar
texmex
Member
Posts: 1753
Joined: Mon Jul 11, 2016 21:08
GitHub: tacotexmex
In-game: tacotexmex

Re: [Mod] Towny in Minetest! (BIG WIP) [towny]

by texmex » Post

Btw, "/town new test" in a brand new world throws error "This location is too close to another town!"

User avatar
IcyDiamond
Member
Posts: 175
Joined: Fri Mar 30, 2018 08:55
GitHub: LunaSquee
IRC: IcyDiamond
In-game: IcyDiamond
Location: Estonia
Contact:

Re: [Mod] Towny in Minetest! (BIG WIP) [towny]

by IcyDiamond » Post

texmex wrote:Did you loose inspiration? It happens to us all. =)
Yeah, pretty much. I'll try getting back into the modding thing but I really can't promise anything right now.
texmex wrote:Btw, "/town new test" in a brand new world throws error "This location is too close to another town!"
Fixed it.
Web developer | Systems Administrator

User avatar
IcyDiamond
Member
Posts: 175
Joined: Fri Mar 30, 2018 08:55
GitHub: LunaSquee
IRC: IcyDiamond
In-game: IcyDiamond
Location: Estonia
Contact:

Re: [Mod] Towny in Minetest! (BIG WIP) [towny]

by IcyDiamond » Post

Gave this mod a little care today, added /town help and /nation help commands.
Web developer | Systems Administrator

Post Reply

Who is online

Users browsing this forum: Google [Bot] and 20 guests