MoneyBlock

Discussion in 'Plugin Requests' started by Croofix, Feb 4, 2020.

  1. Offline

    Croofix

    Plugin category: MECHANICS

    Minecraft version: 1.15.2

    Suggested name: MoneyBlock

    What I want: Hello, I want a plugin where either:

    Blocks are scattered around the world, which will give us money after digging: 1PLN, 2PLN, 5PLN, 10PLN, 20PLN, 50PLN, 100PLN, 500PLN, 1000PLN (PLN is the Polish currency). Let the money be in random blocks.

    I would also like to set the number of blocks with money in the world. For example, that there would be 100 blocks with 1PLN. If it could also be, let me find each of these blocks after entering the command / search 1PLN, which would give me a list of coordinates of all blocks with 1PLN.

    I would also like the following message to be displayed on the chat after digging the block with money: "{Playername} has digged the block [amount of money]". That everyone on the server would see this message. However, the person who dug the block displayed a text on the screen: you dug a block worth [amount of money]

    It will be great if moneyblocks will generate in 5000x5000 area from 0,0 coordinates.
    MoneyBlocks can't be bedrock, water block and lava block

    Custom config:

    MoneyBlockArea: 5000

    ChatMessage: {PlayerName} has found [xPLN] block!
    ScreenMessage: You found [xPLN] block!

    1PLN: 100 #number of blocks in area
    2PLN: 50
    5PLN: 10
    10PLN: 5
    20PLN 3
    100PLN: 2
    500PLN: 2
    1000PLN: 1




    I apologize for my English, but I am from Poland and I do not speak English very well.

    Ideas for commands: /search [amount] -will give us a list of coordinates with blocks with a given amount
    /money - will display the amount of money collected
    /money [nick] - will display the amount of money collected by another player

    Ideas for permissions: moneyblock.search - will allow the / search command to be used

    When I'd like it by: As soon as time allows
     
    Last edited: Feb 8, 2020
  2. Offline

    Xp10d3

    Quick question; do you want the message to be in Polish or English? Just wondering :p
     
    Croofix likes this.
  3. Offline

    Croofix

    not relevant. i will edit it if you write it in English ;D

    Could it be done so that the block of money would not be a bedrock, a block of water and a block of lava? I also have a question: If I change the map borders, will the blocks appear only inside or outside the map border? I would like the blocks of money to appear inside after changing the size of the map borders.
     
    Last edited: Feb 5, 2020
  4. Offline

    Xp10d3

    Sorry; I don't know if I can do this one. Bit complex since this is dealing with world stuff which I'm not good at at all xD
     
    Croofix likes this.
  5. Offline

    Croofix

    ok I will adjust the number of blocks accordingly and it will be fine

    EDIT: Can't You do this with map borders or can't you do the whole plugin?
     
    Last edited: Feb 6, 2020
  6. Offline

    Croofix

    Bump( I use it first time)
     
  7. Offline

    InstanceofDeath

    I can code this plugin for you, if you allow some changes. First of all, I would replace the fixxed amount of blocks with such and such money to a set amount of blocks in a chunk. And then you can set the likeliness of getting a block with let's say 100 money to 0.005%. Second of all it would be clever to connect this system to an economy plugin instead of wasting it's potential with 2 "read-only" commands, if you know what I mean. Up to you though. Awaiting further information :]
     
    Croofix likes this.
  8. Offline

    Croofix

    Of course I agree. So i will can establish chance for the block xPLN to appear in chunk like y%?

    But I need only one block of 1000PLN on the 5000x5000 map (if it helps you)

    If I think about what you wrote then you can connect this plugin to essentialsX
     
    Last edited: Feb 7, 2020
  9. Offline

    InstanceofDeath

    You know how rare one block in 5000x5000 area is? Nobody will ever find that. Or will you give hints because you can use /search?
     
    Croofix likes this.
  10. Offline

    Croofix

    That's what the /search command is for.

    EDIT: So Will you make it?
     
    Last edited: Feb 10, 2020 at 12:47 AM
  11. Offline

    Croofix

  12. Offline

    Croofix

  13. Offline

    JRL1004

    @Croofix I have some questions.
    1) Do you want the blocks to stay through server reloads and restarts?
    2) Should there be a command to remove blocks (or a general clear all)?
    3) What causes the money blocks to generate? Is it a command? Once per hour? Etc?
    4) You said to generate in a range of 5k blocks from the spawn, should that include unloaded chunks? Will players farther out need to come to that area? Is the 5k distance configurable?
    5) Does this come from a file or should it be built into the plugin?
    Code:
    1PLN: 100 #number of blocks in area
    2PLN: 50
    5PLN: 10
    10PLN: 5
    20PLN 3
    100PLN: 2
    500PLN: 2
    1000PLN: 1
    
    You mentioned using a percent for the settings in #6 as well, how would that look (if it is configurable)?
    6) When players use search, how should it be formatted? If someone does /search 1 with the settings you specified, their chat would be flooded (Assuming one location is put on each line)
     
    Croofix likes this.
  14. Offline

    Croofix

    @JRL1004
    1. Yes
    2. If it won't be a problem, Yes (/removeblocks)
    3. Maybe /generateblocks but if you Will Have problem with it Don't make it
    4. Yes. Yes. If you can do this, Yes
    5. From file. I don't know what does #6 mean But make what is the easiest for you
    6. I will write it in console and only I will can use that command but you can make 3 coordinates per line if it won't be a problem of course
     
    Last edited: Feb 13, 2020 at 12:55 AM

Share This Page