1. Forum
  2. Wiki
  3. Bugtracker
  4. Blog
  5. Members
    1. Recent Activities
    2. Users Online
    3. Team
    4. Search Members
  • Login
  • Register
  • Search
This Thread
  • Everywhere
  • This Thread
  • This Forum
  • Forum
  • Pages
  • More Options
  1. IC² Forum
  2. Forum
  3. IndustrialCraft²
  4. Addons
  5. Addon Discussion
IC2 Experimental builds (jenkins):
v2.0/2.1/2.2 / 2.3 / 2.5 / 2.6 / 2.7 / 2.8 (For Minecraft 1.6.4/1.7.2/1.7.10 / 1.8.9 / 1.9.4 / 1.10 / 1.11 / 1.12)
IndustrialCraft² recent version: v1.117!

APIs for Miner

  • mak326428
  • November 9, 2013 at 11:09 AM
1st Official Post
  • mak326428
    Iron Miner
    Reactions Received
    1
    Posts
    567
    Location
    Totally not Honduras.
    • November 9, 2013 at 11:09 AM
    • #1

    Suggestion: add an API for Miner.
    What it should have:
    1. Support for customizable drills. Speed, etc.
    Interface: IMinerDrill, methods:

    Code
    /**
    * Returns speed (in ticks) of this drill
    */
    int getSpeed();
    
    
    
    
    /**
    * Returns the energy required to break block with this drill
    */
    int getEnergy();
    
    
    
    
    /**
    * Called each time a miner mines a block with this drill
    * Returns ItemStacks miner should drop/add into the chest after block is broken.
    */
    ArrayList<ItemStack> onMined(ItemStack drillStack, World world, int x, int y, int z);
    Display More

    2. Support for customizable scanners.
    Interface: IMinerScanner

    Code
    /**
    * Returns range in which this scanner will work
    */
    int getRange();

    Both interfaces are implemented on Items.

    • Quote
  • AGKz
    Lazer Technician
    Reactions Received
    3
    Posts
    54
    • November 10, 2013 at 2:52 AM
    • #2

    Is this for you to adjust the IC2's mining drill or create your own? Unless a few other people could use something like this, it seems a bit overkill verses extending ToolMiningDrill (or whatever that class is called) and overriding needed things

    So ya. Thats 'bout it.

    • Quote
  • mak326428
    Iron Miner
    Reactions Received
    1
    Posts
    567
    Location
    Totally not Honduras.
    • November 10, 2013 at 7:05 AM
    • #3
    Quote from AGKz

    Is this for you to adjust the IC2's mining drill or create your own? Unless a few other people could use something like this, it seems a bit overkill verses extending ToolMiningDrill (or whatever that class is called) and overriding needed things


    Creating my own custom drill.

    • Quote
  • Player
    IC² Coder
    Reactions Received
    24
    Posts
    1,042
    • November 11, 2013 at 2:03 AM
    • Official Post
    • #4

    I'll look into it, iridium drills need miner support anyway ;)

    • Next Official Post
    • Quote
  • mak326428
    Iron Miner
    Reactions Received
    1
    Posts
    567
    Location
    Totally not Honduras.
    • November 11, 2013 at 5:23 PM
    • #5
    Quote from Player

    I'll look into it, iridium drills need miner support anyway ;)


    Thanks a lot, Player!

    • Quote
  • nanakisan
    Insane Enlightened One
    Posts
    17
    Location
    Please kindly check your rear!
    • December 7, 2013 at 4:08 AM
    • #6

    I would like to see some more uses for the miner. People these days rely to much on the quarry or turtles or MFR's mining laser. I honestly don't think i've seen people make a real use out of the miner. Imagine being able to write a mod that expands it. Drills with durability, scanning modules that apply speed / range buffs. Even going as far as custom filter modules so the miner only targets specific ores. mmm yes that would be lovely.

    • Quote
  • SirusKing
    Nuclear Demolitionist
    Reactions Received
    6
    Posts
    1,511
    Location
    Selling IndustrialWow: You'll be saying Wow everytime you use this mod!
    • December 7, 2013 at 6:11 PM
    • Official Post
    • #7

    If only the world was a thousand blocks deep >.> That would be fun :P

    GT Textures: 281/ ∞ (0.0%) Complete. Screw this.

    Quote from GregoriusT

    Sirus is the greatest person on the planet ever and I adore him and his work in every way possible. ~ GregoriusT 2014

    Greatest thing on the internet.

    • Previous Official Post
    • Quote
  • JaxFirehart
    Tree Cutter
    Posts
    64
    Location
    Colorado Springs, CO
    • December 7, 2013 at 7:02 PM
    • #8

    Cubic Chunks FTW

    Tale of Two Wastelands - A Fallout New Vegas mod aimed at merging Fallout 3 and Fallout New Vegas into one game.

    • Quote
  1. Privacy Policy
Powered by WoltLab Suite™