Fortune Blocks

Discussion in 'Plugin Requests' started by Amandusjf, May 12, 2020.

Thread Status:
Not open for further replies.
  1. Offline

    Amandusjf

    Plugin category: Enchantments. Prison. Factions.

    Minecraft version: 1.15.2

    Suggested name: FortuneBlocks
    What I want: Just a simple plugin that makes fortune work on some blocks like DiamondBlock, EmeraldBlock, GoldBlock, etc that you can change in the config.

    Ideas for commands: /FortuneBlocks reload /FortuneBlocks addblock (adds a block to the list of what blocks work with fortune) /fortuneblocks removeblock (remove a block from the list of what blocks work with fortune)

    Ideas for permissions: FortuneBlocks.reload Fortuneblocks.add Fortuneblocks.remove

    When I'd like it by: As soon as possible
     
  2. can u explain this a littel bit better?
     
  3. Offline

    scruffyboy13

    This is possible however the only way to do this is to hard code all the values which I wouldn't suggest as you have to edit this every update.
     
  4. Offline

    timtower Administrator Administrator Moderator

    And why would you need to hardcode this?
     
  5. Offline

    scruffyboy13

    By that i mean as i know of, the only way to do this is to edit the block's drops which would means that you have to know all the blocks that are fortuneable (you can't just always set the drops to 1 because things like glowstone can be fortuned). When 1.16 is added, a new nether gold ore block will be added (and a few others) which are fortuneable meaning you will have to change the plugin again. You could remove the fortune from the pickaxe and then re-add it a tick/a few ticks later but that seems like it could sometimes cause the pickaxe to lose the fortune altogether if it is dropped between those times.

    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
     
  6. Offline

    Stellrow

    Or... simply have a list of blocks the owner wants fortune to work for,don't see anything complicated with this,gonna do it this week
     
  7. Offline

    scruffyboy13

    in my previous post, I was talking about cancelling out the blocks that can be fortuned (in vanilla mc) but that aren't in the fortune list...
     
Thread Status:
Not open for further replies.

Share This Page