• 0

    posted a message on [WIP] AddOres ModLoader Plugin 1.0

    Hey guys, I'm working on a plugin for ModLoader that allows you to add new ores and gems with their respective toolsets by simply editing an XML document that looks like this:

    <?xml version="1.0"?>
    <newOres>
    	<gems>
    		<newgem>
    			<name></name>
    			<rarity></rarity>
    			<hardness></hardness>
    			<material></material>
    		</newgem>
    	</gems>
    	<metals>
    		<newmetals>
    			<name></name>
    			<rarity></rarity>
    			<hardness></hardness>
    			<material></material>
    		</newmetals>
    	</metals>
    	<specials>
    		<newspecials>
    			<name></name>
    			<rarity></rarity>
    			<hardness></hardness>
    			<lightemitted></lightemitted>
    			<particletype></particletype>
    			<material></material>
    		</newspecials>
    	</specials>
    </newOres>


    I'm very close to releasing 1.0! I'll need some help after release however because there are some rather large errors I have no clue about how to fix. This will be open-source as I hope it's used by modders instead of hardcoding each individual new ore as that decreases comparability and it's much harder than using this.

    Current Features:
    Ability to add ores through an XML document and control:
    -Name
    -Rarity
    -Hardness
    -Material
    Adds tools that can be crafted with ingots/gems of the new ore
    Metals can be smelted into ingots
    No editing of any base files!
    Textures can be changed easily with the option to add your own!


    To-do:
    Add an XML to add new materials
    Fix crafting bug with metal and special ingots




    First mod :smile.gif:
    Posted in: Mods Discussion
  • 0

    posted a message on Path to base directory of minecraft folder
    What would be the path to get files from the /.minecraft/ directory? Would I have to use Special Directories to get the appdata path and use that? It just seems like a hack job that way.

    Would this work:
    String mcFolder = System.getenv("APPDATA") + "/.minecraft/";
    Posted in: Mods Discussion
  • 0

    posted a message on [1.8.1] SteamCraft - SOURCE CODE RELEASED[ML][v0.5.4][WIP]
    Quote from Proloe

    Etherium no longer has 2x strength of Diamond. It is now the same strength of Diamond, but the material is rarer.

    As for older worlds, they should still be Steamcraft even if you've opened them in Vanilla, but any new blocks in the world (including ores) may have vanished.

    Still shouldn't last forever.
    Posted in: WIP Mods
  • 0

    posted a message on [1.8.1] SteamCraft - SOURCE CODE RELEASED[ML][v0.5.4][WIP]
    Metal with 2x strength of diamond and never wears out?

    Ruin the game more please.
    Posted in: WIP Mods
  • 0

    posted a message on Case closed i think lol :D I got what i needed
    Quote from Skullex


    Hey Fritz. How you doing?



    Quite good. Want to see something sweet?



    An image can be edited very easily. A video...not so much.





    And @Everyone who says you need Ad Blocking plugins, I got AdBlock Pro. Tyvm but you're wrong.
    Posted in: Minecraft Mods
  • 0

    posted a message on Case closed i think lol :D I got what i needed
    Right clicking won't fix it.

    GIF inside spoiler proves this:

    Posted in: Minecraft Mods
  • 0

    posted a message on Case closed i think lol :D I got what i needed
    Must I shove it down your trolling throats? I'm uploading a GIF now to prove my point.
    Posted in: Minecraft Mods
  • 0

    posted a message on Case closed i think lol :D I got what i needed
    Quote from Pyrost

    as skullex said the website address isn't adfly is it?

    It's redirecting you USING the adfly link. Don't be stupid, use common sense.

    If I had to guess, adf.ly got hacked and someone is using the surveys to make a shitton of money from unwary users.
    Posted in: Minecraft Mods
  • 0

    posted a message on Case closed i think lol :D I got what i needed
    Quote from Xraft

    Why wont anyone listen to me im being serious atleast put a donation button instead of being spammed by false links that rip you off doing fake surveys

    Ignore them, they're trolls.
    Posted in: Minecraft Mods
  • 0

    posted a message on Case closed i think lol :D I got what i needed
    Quote from FritzC

    He's telling the truth you idiots...





    Read my post. Tards.
    Posted in: Minecraft Mods
  • 0

    posted a message on Case closed i think lol :D I got what i needed
    He's telling the truth you idiots...

    Posted in: Minecraft Mods
  • 0

    posted a message on Add effective blocks ModLoader
    Quote from cheechako

    instance class is the full "path" to the class you are dealing with. In you case, it would be:

    net.minecraft.src.ItemPickaxe.class

    (Note the 'class' at the end.) The instance is the object itself. This is where I start to get lost because there are multiple pickaxes. Item.pickaxeSteel is just one of them.

    fieldindex is just what it says. For example:

    public class Foo {
    int a;
    String b;
    int c;
    }

    So a is 0, b is 1, and c is 2. (Or is that 1,2,3?) There is another setPrivateValue() that uses field names, so that's probably easier.

    value is - well, I'm sure you figured that one out. Of course, the type is based on the private value you are setting: int, float, etc.

    Unfortunately, I've never tried any of this. I only know this is the right direction.



    So I would have to change the value for each individual pickaxe?
    Posted in: Mods Discussion
  • 0

    posted a message on Jalcobers free mob shop
    Mind posting the files for the CTF flag?
    Posted in: Mods Discussion
  • 0

    posted a message on [ModLoader] Change a private value
    Quote from cheechako

    Check the ModLoader java docs for getPrivateValue().

    I'm not quite sure how to use the method setPrivateValue().

    The javadocs are rather vague, simply stating:

    setPrivateValue

    public static <T,E> void setPrivateValue(java.lang.Class<? super T> instanceclass,
    T instance,
    int fieldindex,
    E value)
    throws java.lang.IllegalArgumentException,
    java.lang.SecurityException,
    java.lang.NoSuchFieldException
    Used for setting value of private fields.

    Type Parameters:
    T - Type of instance.
    E - Type of value.

    Parameters:
    instanceclass - Class to use with instance.
    instance - Object to get private field from.
    fieldindex - Offset of field in class.
    value - Value to set.

    Throws:
    java.lang.IllegalArgumentException - if instance isn't compatible with instanceclass.
    java.lang.SecurityException - if the thread is not allowed to access field.
    java.lang.NoSuchFieldException - if field does not exist.


    If I wanted to change the private Block array blocksEffectiveAgainst in ItemPickaxe.java what arguments would I use?

    I don't quite see what would be inputted for 'instance' and 'fieldindex' and I'm not too sure on 'instanceclass' either.
    Posted in: Mods Discussion
  • 0

    posted a message on Add effective blocks ModLoader
    Quote from cheechako

    Check the ModLoader java docs for getPrivateValue().

    I'm not quite sure how to use the method setPrivateValue().

    The javadocs are rather vague, simply stating:
    setPrivateValue

    public static <T,E> void setPrivateValue(java.lang.Class<? super T> instanceclass,
    T instance,
    int fieldindex,
    E value)
    throws java.lang.IllegalArgumentException,
    java.lang.SecurityException,
    java.lang.NoSuchFieldException
    Used for setting value of private fields.

    Type Parameters:
    T - Type of instance.
    E - Type of value.

    Parameters:
    instanceclass - Class to use with instance.
    instance - Object to get private field from.
    fieldindex - Offset of field in class.
    value - Value to set.

    Throws:
    java.lang.IllegalArgumentException - if instance isn't compatible with instanceclass.
    java.lang.SecurityException - if the thread is not allowed to access field.
    java.lang.NoSuchFieldException - if field does not exist.


    If I wanted to change the private Block array blocksEffectiveAgainst in ItemPickaxe.java what arguments would I use?

    I don't quite see what would be inputted for 'instance' and 'fieldindex' and I'm not too sure on 'instanceclass' either.
    Posted in: Mods Discussion
  • To post a comment, please .