Make fortune work on any block

Discussion in 'Plugin Requests' started by Amandusjf, Nov 25, 2020.

  1. Offline

    Amandusjf

    Plugin category: Prison

    Minecraft version: 1.16.4

    Suggested name: Fortune+

    What I want:
    A plugin with a config.yml where you can add blocks into a list and all the blocks in that list would work with fortune enchant. It needs to be working with enchants up to level 50

    Ideas for commands:
    /fortune reload (Reloads the plugin)

    Ideas for permissions:
    fortune.reload (permission to reload the plugin)

    When I'd like it by: As soon as possible
     
  2. Offline

    Nichrock1

    So for example if you mine a dirt block with a fortune pick, you just want like 3 extra dirt blocks? If so, I can get to work on it now ;)
     
    Amandusjf likes this.
  3. Offline

    Amandusjf

    @Nichrock1
    Yes i want that, But i only want the blocks in the config to be affected by the fortune

    @xAfflict could u maby post on spigot if that is possible?
     
    Last edited: Nov 29, 2020
  4. Offline

    Amandusjf

  5. Offline

    xAfflict

    Last edited: Nov 28, 2020
    Amandusjf likes this.
  6. Offline

    xAfflict

  7. Offline

    Amandusjf

    When i resarted the server after putting the plugin in there was nothing in the console saying it loaded, idk if u put that in. but when i do /fortuneplus in-game it just gives me "An internal error occurred while attempting to perform this command" . also i got this in console when doing /fortuneplus :
    https://paste.helpch.at/aboyumemiz.apache
     
  8. Offline

    xAfflict

    Yes the available command is:

    /fortuneplus reload <-- Reloads the config.

    I did fix the bug though, if you don't put in the right command it will just show you a list of commands, now. I also added a default config that has dirt in it for a placeholder.

    I added a /fortuneplus add [block] and a /fortuneplus remove [block] command. You also shouldn't need to manually reload anymore.

    Try to use the commands now, and not the config. Both should work regardless. FOR THE CONFIG MAKE SURE YOU CAPITALIZE THE BLOCK NAME. Lowercase will mess with the commands. I can fix later.

    Try redownloading it with the same link.
     
    Last edited: Nov 30, 2020
    Amandusjf likes this.
  9. Offline

    Amandusjf

    After trying it it seems like i have to use commands to add blocks and i can not add it in the config manually. also, could u make it so that silk touch works with fortune. so if a player has fortune and silktouch at the same time and mines a stone block it will give u stone but more stone depending on the level of fortune. also, could u make it a little less op. so you dont get like half a stack in 0.5 sec with fortune 2?
     
    Last edited: Dec 1, 2020
  10. Offline

    xAfflict

    1) Yeah just saw that, fixing now.
    2) Just added silk touch support.
    3) No. I am using the vanilla fortune algorithm. It works the same way as regular fortune. If you get too much stone lower the efficiency or even the fortune level, again. It isn't that OP for me.

    Edit:
    I've updated the plugin again. Adding, removing, manually, or with the command, works now. Everything is also converted to lowercase because it looks nicer and is easier to type. You can still input blocks in uppercase, it will just be converted automatically to lowercase.

    Silk touch now works.
     
    Last edited: Dec 1, 2020
  11. Offline

    Amandusjf

    Ok thanks so much for the update!
     
    xAfflict likes this.
  12. Offline

    Amandusjf

    Is there a way to make this plugin work with https://www.spigotmc.org/resources/autopickup-1-16-support.70157/ ?
     
  13. Offline

    xAfflict

    Yes. I added a command and way to put it in the config. Also added a command and config option for the max level. So its not hardcoded at 50 anymore. Refactored and cleaned some code up.
     
    Last edited: Dec 7, 2020
  14. Offline

    Amandusjf

    Can you add a option to make the blocks go directly to the inventory? and when the inv is full, they dissapear and dosent drop on the ground
     
  15. Offline

    xAfflict

    Amandusjf likes this.

Share This Page