terrarium-earth / Cadmus

A land claiming mod that allows users to claim land to protect your home from thieves, bandits and monsters, and admins to claim land with region flags and advanced protection!
MIT License
21 stars 8 forks source link

[Feature Request]: Buyable chuncks #30

Open PickyPixelStudio opened 8 months ago

PickyPixelStudio commented 8 months ago

Is your feature request related to a problem?

Hey!

Our players ask if it's possible to make claim buyable. Like, they start with 10 availlable chunk claim, after some time they wanted more, to expand.

Solution(s)

When they have enought "money" (emerauld, diamond, whatever money...) they have the opportunity to buy more claimable chunk!

Describe alternatives you've considered

Maybe with time played (i'm not a fan of that, but, maybe others!)

Mod Version

1.0.2

Mod Loader Version

1.20.1 - 47.2.0

Mod Loader

Forge

Additional context

To be honest, i just found your mod around Project Odyssey, it's purely awesome! <3

PickyPixelStudio commented 8 months ago

I've an idea on how to make it possible, but it's sounds "weird" for me.

Like i create a lot of roles, each one have one more claim than the previous, and with an buyable tagged item. Giving access to a custom command, that destroy this item, and grant him the role above (+1 claim).

But, i've to know what role he have initialy.

TraipsingShadow commented 5 months ago

If I may "hijack," so to speak, this request, may I humbly offer my other thoughts regarding this suggestion?

Provide a "price" for each new claim in the form of an item that can be defined in the config files. The simplest way to go about it is adding support for item/mod IDs to be defined in the config files themselves.

For example, we would like the default "currency" to be Netherite Ingots for claiming new lands.

{
  "claimCost": [
    {
      "item": "minecraft:netherite_ingot",
      "costPerChunksClaimed": {
        "0-10": "1",
        "11-30": "5",
        "31-50": "8"
      }
    },
    {
      "item": "minecraft:paper{tag:{display:{Name:\"{\\\"text\\\":\\\"Land Title\\\",\\\"color\\\":\\\"green\\\"}\"},Enchantments:[{id:\"minecraft:loyalty\",lvl:1}]}}",
      "costPerChunksClaimed": {
        "51-75": "1",
        "76-100": "2",
        "101-150": "3"
      }
    }
  ]
}

In this example, there are a number of possibilities presented to us: one, the server administrator can define what item can be used as a cost; two, the server administrator can define the progressive cost of every new chunk claimed; and three, the server administrator can use tags to particularly specify the data of the item to be used.

This allows the flexibility of not needing to hook into an economy mod's API (while it would be remiss not to mention that I would love to see an integration with Lightman's Currency with the ability for Players to purchase claims/chunks using their Team's/Company's Bank Account, but that's a whole other complicated thing) and allowing server administrators to have granular control over the cost as well as the progressive cost of chunk-"buying."

I hope this has given this feature suggestion more credence. I hope the developer team takes a look into this suggestion and considers it!

Pyrael123 commented 3 weeks ago

I need this as well!!!!! Why hasn't this be implemented?