Filled AutoBlockify

Discussion in 'Archived: Plugin Requests' started by mchungames4441, Nov 11, 2014.

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

    mchungames4441

    Plugin category: Mechanics

    Suggested name: AutoBlockify

    What I want: I would like this plugin to automatically switch ores into blocks while you are mining. For example, if you have 8 coal in your inventory and you mine one more, it would automatically turn it into a coal block. However, if you craft the coal block back into coal, it won't "blockify" again until you mine more coal. The ores that are blockified will be coal, redstone, lapis, diamonds, emeralds, quartz, iron and gold. (I have a plugin on my server that makes iron and gold ore automatically into ingots, so please make it compatible with this too!)

    Ideas for commands: None.

    Ideas for permissions:
    • blockify.use (gives people permission to use the auto-block feature)
    When I'd like it by: Thursday, November 13 if possible, although it's okay if it doesn't make it by then - I doubt you could code a plugin like this in two days. I understand how complex this type of plugin probably is, but I've searched all over the web for something like this and failed to find one that worked.
     
  2. I think i can make this
     
  3. Offline

    mchungames4441

    Okay, thank you! Let me know when you're done. ;)
     
  4. Offline

    Geekxboy

    mchungames4441 The plugin you use to turn iron and gold ore into ingots, does it just drop an ingot when you break the ore or does it turn the ore into and ingot after you pick it up?

    mchungames4441 Well if you current plugin to turn iron and gold ores into an ingot works like an auto-smelter pick (drops ingots instead of the ore) then here you go: Download Link

    Permission: Blockify.Use

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

    mchungames4441

    Thanks so much! I'm on a mobile device right now, but I'll download it when I get on my PC. Thanks again!
    EDIT:
    Geekxboy I just tested the plugin and it works great. However, I realize now that I forgot to mention that not only the plugin I'm using autosmelts iron and gold, it also puts blocks automatically into your inventory. Would it be possible for you to make it compatible with this, too? If not, it's fine - I can just disable the auto-inventory part.
    I need it to be made so that if you're mining and the blocks are appearing in your inventory at the same time, it "blockifies" them, but not if, say, someone gives you a stack of diamonds. Thanks in advance!
     
  6. Offline

    Geekxboy

    I cant make it compatible with your current plugin but, the only way to do it would go against your original request:
    But with gold and iron instead of coal. So i would suggest just disabling the auto inventory feature of your other plugin.
     
  7. Offline

    mchungames4441

    Geekxboy Okay, that's fine. Thanks for your help! ;)
     
  8. Offline

    X_X_Wor1_X_X

    Geekxboy does it work do your ingots/diamonds turn into blocks?
     
  9. Offline

    mchungames4441

    X_X_Wor1_X_X Yep, as long as you don't have an auto-inventory plugin, the plugin Geekxboy posted works great.
     
  10. Offline

    tangster132

    mchungames4441 If you still prefer to have this plugin compatible with auto-inventory, I think I can write it for you. I can also make it so that the items will "blockify" only when mining, and not when you pick up a stack of ores. I just need to know first which auto-inventory plugin you're using so that I can test my code with it.

    If you don't need this plugin anymore, then it's fine :p
     
  11. Offline

    mchungames4441

    tangster132 That would be great! The plugin I use is called ImmortalCustom. It's not on Bukkit.org, and I'm on a mobile device, so I'll get you the link ASAP. Thanks so much!

    EDIT:
    Found it. Go to http://www.shadowcasted.com/#plugins and download #9 in the list.
     
  12. Offline

    tangster132

    mchungames4441 Ok, working on it now.

    Also, which plugin is the autosmelting one?
     
  13. Offline

    mchungames4441

    tangster132 It's actually the same one. ImmortalCustom is kind of like Auto-Inventory, Auto-Smelt and Fortune Blocks all in one. It also has an auto-block feature (like what I'm requesting) but it seems to be broken, which is why I'm asking for this.
     
  14. Offline

    tangster132

    mchungames4441 Sorry for the delay. I finished this earlier, but I spent hours trying to figure out why my permissions weren't working. Turns out, I mistyped 1 word. *facedesk*

    Anyway, you can download my plugin <Edit by Moderator: Redacted mediafire url>

    Also, I should mention that since ImmortalCustom's auto-inventory feature is set to EventPriority.Monitor, it will always be called last. That just means that my plugin will attempt to blockify first, then ImmortalCustom will put the ores into your inventory. It's not a big deal, it just means that, for example, if you have 8 coal and you mine 1 coal ore, it won't blockify yet, even though you have 9 coal now. But when you mine the next coal ore, you will receive 1 coal block and 1 coal ore. Again, not a huge deal, but I can't help it due to the order bukkit runs the plugins.
     
    Last edited by a moderator: Oct 31, 2016
  15. Offline

    mchungames4441

    tangster132 Thank you so much!! I just tested it, and it works! It's absolutely fine that you need 10 before it gets turned into blocks. My server is an OP Prison server, so you're getting so much anyways that it doesn't even matter. ;)

    Thanks again!
     
Thread Status:
Not open for further replies.

Share This Page