No Block Drop

Discussion in 'Archived: Plugin Requests' started by ambidexxtrous, Aug 21, 2014.

  1. Offline

    ambidexxtrous

    Ok, so I'm trying to start a prison server, and I would like a plugin where when you mine blocks, they automatically go straight into your inventory rather than dropping and you picking it up. That way people can steal other players blocks when they mine. Also, if you could make it so that, higher fortune levels give more blocks into your inventory -and make that configurable (The block drop rate with the fortune level). Also when your inventory is full, the blocks still wouldn't drop, you would just keep mining until you realized you had a full inventory.The plugin would have no commands, and no permissions. It would be used by everyone.​
     
  2. Offline

    O3Bubbles09

    Do you want any commands/configs? Or just the blocks going straight into your inventory?
     
  3. Offline

    Apple_

    Last edited by a moderator: Jun 9, 2016
  4. Offline

    ReeferX7

  5. Offline

    Apple_

    Created exactly like the description you provided with a-couple EXCEPTIONs!
    For the pure fact that others may download this plugin and want a permission node.
    Ability to mine and items automatically go into inventory, perm: apple_.transfer
    http://vastupload.net/bukkit-plugin-request/Apple_.Item2Inv.jar
    Bukkit 1.7.9 Ro.1
    Not sure what you mean about fortune configurable? The plugin will give the player what the pick mines, so if the pick has fortune XII and gets 'X' amount of blocks, that's what will be transferred to the players inventory.
     
  6. Offline

    ReeferX7

  7. Offline

    Apple_

    Give me like 5 minutes to re-open meh eclipse and start my test server back up. lol.. I'll find the problem.

    Sorry fellas, I can't get a fortune algorithm to work correctly.

    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
     
    Last edited by a moderator: Jun 9, 2016
  8. Offline

    kps1796


    Code:java
    1. public static boolean percentChance(int percentage) {
    2. double randDouble = Math.random() * 101;
    3. int rand = (int) randDouble;
    4. return rand < percentage;
    5. }
     
  9. Offline

    ambidexxtrous

    Apple_ what I mean with the configurable fortune levels is that lets say for fortune 10, it will get 3 blocks a break and 20 will get 4, 30 gets 5, 40 gets 6 and so on. But make the number of blocks you get with the different fortune levels configurable. So I could change the 3 blocks a break with fortune 10 to maybe 4 blocks a break if I wanted.
     
  10. Offline

    ambidexxtrous

  11. Offline

    Mathias Eklund

Share This Page