The Meaning of Life, the Universe, and Everything.
Location:
Chatham
Join Date:
8/15/2013
Posts:
60
Minecraft:
superbigbeard
Member Details
I have spent the last couple of days searching all over the internet for a tutorial that explains how to make a basic machine (not just a chest gui). I saw that this post mentioned RF api which got me excited, but I couldn't find the tutorial. If anyone could either tell me how to make a machine (using some sort of power or not) or link me to a website that explains how to do this, that would be greatly appreciated. Sorry if this is the wrong location for this.
The Meaning of Life, the Universe, and Everything.
Location:
Chatham
Join Date:
8/15/2013
Posts:
60
Minecraft:
superbigbeard
Member Details
A simple power mod perse. Let's say a block that had one inventory slot for fuel, that generates some sort of power. A machine that uses it, and a block that stores it. I would love to add cables as well. by the way, I have a relatively good grasp on java.
You should be able to look at the interface for the furnace to figure out that, and once you start working with the RF api you'll see that it is actually pretty simple to use.
Rollback Post to RevisionRollBack
"If It Is To Be It Is Up To Me" simple quote and I don't know where it comes from but I enjoy it.
Current Mod: Armerger | Light Drafter
A simple power mod perse. Let's say a block that had one inventory slot for fuel, that generates some sort of power. A machine that uses it, and a block that stores it. I would love to add cables as well. by the way, I have a relatively good grasp on java.
Word of advice - do not create your own cables. People playings mods don't like multiple types of cables per mod. RF API has implementations for their pipes to connect to your blocks - use them.
The Meaning of Life, the Universe, and Everything.
Location:
Chatham
Join Date:
8/15/2013
Posts:
60
Minecraft:
superbigbeard
Member Details
I have been fooling around a lot with furnaces, and I finally got one completely working. However I have a slight problem with the texture of the block itself on the hotbar. I can fix it, but if I do then the furnace's textures won't rotate depending on my direction.
The Meaning of Life, the Universe, and Everything.
Location:
The End
Join Date:
5/27/2014
Posts:
105
Minecraft:
DoomDwarf_347
Member Details
Which code parts should I look at specifically? I get that there should be an aoetool class extending the itemtool class, and then each aoe tool should extend the main aoetool class, for organizations sake. But I'm just not sure what parts of the hammer class are important to have, since most of it is about the hammer being a tinkers tool such as having it be made of many parts and durability modifiers etc. I just want a vanilla-like tool that does AoE instead of a single block.
Use ItemSpade instead.
-
View User Profile
-
View Posts
-
Send Message
Curse PremiumThanks! Any Idea how I could also make a tool that mines every type of block?
Think of an open source mod that does, and go look at their github for how they do it.
I have spent the last couple of days searching all over the internet for a tutorial that explains how to make a basic machine (not just a chest gui). I saw that this post mentioned RF api which got me excited, but I couldn't find the tutorial. If anyone could either tell me how to make a machine (using some sort of power or not) or link me to a website that explains how to do this, that would be greatly appreciated. Sorry if this is the wrong location for this.
-
View User Profile
-
View Posts
-
Send Message
Curse PremiumThis tutorial for how to use an api and use either the full CoFH Lib or just the RF API
Current Mod: Armerger | Light Drafter
Thank you. That link will be useful, but I was looking for first how to construct a gui. I would like something more advanced than just a chest.
Define "more advanced". More advanced as in Furnaces, or something else?
EDIT
Made into a reply
http://www.minecraftforum.net/forums/mapping-and-modding/minecraft-mods/1290852-1-6-2-forge-medieval-weapons-mod-v1-1-0-crossbows
has such a tool (the shoveaxe) bu i'm not sure its open source...
A simple power mod perse. Let's say a block that had one inventory slot for fuel, that generates some sort of power. A machine that uses it, and a block that stores it. I would love to add cables as well. by the way, I have a relatively good grasp on java.
-
View User Profile
-
View Posts
-
Send Message
Curse PremiumYou should be able to look at the interface for the furnace to figure out that, and once you start working with the RF api you'll see that it is actually pretty simple to use.
Current Mod: Armerger | Light Drafter
-
View User Profile
-
View Posts
-
Send Message
Curse Premiumhttp://bedrockminer.jimdo.com/modding-tutorials/basic-modding-1-7/custom-tools-swords/
Word of advice - do not create your own cables. People playings mods don't like multiple types of cables per mod. RF API has implementations for their pipes to connect to your blocks - use them.
I have been fooling around a lot with furnaces, and I finally got one completely working. However I have a slight problem with the texture of the block itself on the hotbar. I can fix it, but if I do then the furnace's textures won't rotate depending on my direction.
Here is the code:
public IIcon getIcon(int side, int metadata){
return side == 1 ? this.top : (side == 0 ? this.top : (side != metadata ? this.blockIcon : this.front));
}
@SideOnly(Side.CLIENT)
public void registerBlockIcons(IIconRegister iiconRegister){
this.blockIcon = iiconRegister.registerIcon(RefStrings.MODID + ":TutFurnaceSide");
this.front = iiconRegister.registerIcon(this.isBurning2 ? RefStrings.MODID + ":TutFurnaceActive" : RefStrings.MODID + ":TutFurnaceInactive")
this.top = iiconRegister.registerIcon(RefStrings.MODID + ":TutFurnaceTop");
}
If you don't understand the picture demonstrates the hotbar problem, and also a picture of the code because it is hard to format code on the forum.
-
View User Profile
-
View Posts
-
Send Message
Curse PremiumWill there ever be a tutorial on making an AOE tool like the hammer from Tinker's construct?
-
View User Profile
-
View Posts
-
Send Message
Curse PremiumNo, but it's pretty easy once you look into the hammer's code...
-
View User Profile
-
View Posts
-
Send Message
Curse PremiumWhich code parts should I look at specifically? I get that there should be an aoetool class extending the itemtool class, and then each aoe tool should extend the main aoetool class, for organizations sake. But I'm just not sure what parts of the hammer class are important to have, since most of it is about the hammer being a tinkers tool such as having it be made of many parts and durability modifiers etc. I just want a vanilla-like tool that does AoE instead of a single block.
-
View User Profile
-
View Posts
-
Send Message
Curse Premiumhttps://github.com/SlimeKnights/TinkersConstruct/blob/master/src/main/java/tconstruct/library/tools/AOEHarvestTool.java
I tried to set up my workspace in eclipse using Terminal. I put in the following and got the following result:
Last login: Sat Aug 29 13:51:32 on ttys000
me's-Macbook-Air:~ me$ cd/Users/me/Desktop/Modding\ Workspace ./gradlew setupDecompWorkspace eclipse
-bash: cd/Users/me/Desktop/Modding Workspace: No such file or directory
How would one run/test a mod after compiling the classes (for 1.8)? And how would one compile the classes? From the command line would be preferred.
edit: Also this popped up. Should I worry about it?
Putting the CENDENT back in transcendent!