Content: Slate Blackcurrant Watermelon Strawberry Orange Banana Apple Emerald Chocolate Marble
Background: Slate Blackcurrant Watermelon Strawberry Orange Banana Apple Emerald Chocolate Marble
Pattern: Blank Waves Notes Sharp Wood Rockface Leather Honey Vertical Triangles
Welcome to TerraFirmaCraft Forums

Register now to gain access to all of our features. Once registered and logged in, you will be able to contribute to this site by submitting your own content or replying to existing content. You'll be able to customize your profile, receive reputation points as a reward for submitting content, while also communicating with other members via your own private inbox, plus much more! This message will be removed once you have signed in.

  • Announcements

    • Crysyn

      Only help if you can be helpful

      Hey All, A topic has come up of late in the IRC channel in regards to the general feel of the forums and the community that supports them. Things have progressed further than I would have liked with out this being addressed more publicly because I would much rather have snubbed this out sooner rather than later.. but I have been busy. Here is the general rule I would like people to follow: Wheaton's Law "Don't be a dick." Those of you from the IRC channel know that this is the only rule I ask people in there to follow and we generally have a good and lively time chatting about all manner of things. This is basic rule that just about everyone understands and I am going to expand it to the forums from here moving forward. If you can not help people in a helpful and polite manner then I simply ask you to stop. Now I generally take a back seat to moderating the forums as I like to participate in the suggestions forum fairly heavily at times and would rather do so as a forums user than a moderator. But I am also fairly well known for being the person who constantly puts their foot down and so I am stepping up and doing so on here. If you find yourself unable to respond to a message politely then I ask that you do not respond. This mostly focuses on the increasing level of hostility found within the Suggestion forum as well as the Server forum. I do not care if this is the 30th some odd time you have seen someone make the same suggestion. Or even if the new post on an older topic is one entry above the old one. I expect the members of this forum to respond politely to the user, new or old, and point to the older topic if it applies and even go the extra step to suggest they either add in new information or to summarize the outcome of the previous discussion based upon the new post's entry into it. That is what we are here for, that is why I close most topics instead of deleting them, so that they can be found and referenced down the road. The next topic is the slew of derailment attempts I have seen as of late. If you want to have fun and joke around that is what the off topic forum is for and pretty much anything goes there. I do not expect to read a suggestion thread and have to go through 3 pages of image memes people have shot back and forth. Quite simply this is a waste of my time to read and then have to clean up. Now for the summary. I am going to start taking a more active role, especially in policing the suggestion forum, and handing out warn levels to people whom I see doing this. These will be indiscriminate and applied not to just the first person who derails or is impolite on a topic or response, but to everyone whom follows the lead of that person. As I do not like doing things with out giving you all warning this post shall serve as that warning. If you have a desire to bring this topic up with me then I invite you to do so on the IRC channel. Lets raise the level of quality and grow the community. Let us not descend into the quality often found on the minecraft or league of legend forums. There is simply no need for that here. Be passionate about things, just do not be abusive.
    • Kittychanley

      Offline Servers

      Recently I've seen a few server listings showing up on the first page of the Servers forum that have been closed for an extended period of time, but have recently gotten a reply from a new member who didn't realize the server is offline. To help prevent this from happening in the future, it would be greatly appreciated if you could use the report function on the original post of any servers that have been confirmed as offline, so that the topic may be locked. If you are the admin of a server and plan on taking the server offline, please use the report function on the original post of your topic to let the TFC Staff know that the topic should be locked. If you are the admin of a server that has a locked topic, and would wish to bring the server back online, please use the report function on the original post of the topic to let the TFC Staff know that the topic should be unlocked. As always, please remember to follow rule #3 of the servers forum and update your topic title to contain the version of TFC that the server is currently running. You can do so by editing the OP, and then clicking on "Use Full Editor."
Powerman913717

[Request] Addon Devlopment Guide

135 posts in this topic

Quick question how does TFC handle doing the extra damage/durability for tools and weapons based on smithing skills?

0

Share this post


Link to post
Share on other sites

It's an NBT tag that is saved on the tool head on creation, and then we've got a crafting handler that reads that NBT tag.

 

https://github.com/Deadrik/TFCraft/blob/master/src/Common/com/bioxx/tfc/Handlers/CraftingHandler.java#L216

 

The PreCraft method in that class does the same thing, but for if the player shift-clicks the tool out of the output slot.

 

https://github.com/Deadrik/TFCraft/blob/master/src/API/com/bioxx/tfc/api/Crafting/AnvilManager.java#L139

 

Those getBuff methods are then called in the individual item classes. Here's just one example:

 

https://github.com/Deadrik/TFCraft/blob/master/src/Common/com/bioxx/tfc/Items/ItemTFCArmor.java#L180

0

Share this post


Link to post
Share on other sites

a quick heads up if you're going to be adding axes:

 

extending ItemCustomAxe isn't enough, there is an array of axes types in the Recipes class that trees check to make sure you're using an axe.

0

Share this post


Link to post
Share on other sites

No not axes its for my custom weapons and they currently work fine just I want to give them a little bit more so they are closer to real TFC tools/weapons.

 

P.S. Thanks Kitty

0

Share this post


Link to post
Share on other sites

Anyone know where the minecraft bow renderer is at? Or the TFC one either way I need to take a look at how bows are rendered and I can't find any sort of good info online.

0

Share this post


Link to post
Share on other sites

net.minecraft.client.renderer.ItemRenderer line 459

0

Share this post


Link to post
Share on other sites

Ok, so I'm working on a new building block and due to how TFC has so many stone types I'm attempting to use metadata to create multiple blocks from one. Anyway how do the bricks in TFC do this, I want to go about this as closely as I can to how TFC does it.

0

Share this post


Link to post
Share on other sites

Ok so I have all the important things working, however I'm having trouble with the lang file names.

 

Block Registering

public static Block blockRoadIgEx;

public static Block blockRoadIgIn;

public static Block blockRoadMM;

public static Block blockRoadSed;

 

        blockRoadIgEx = new BlockRoadIgEx().setHardness(16F).setBlockName("blockRoadIgEx");

GameRegistry.registerBlock(blockRoadIgEx, ItemStone.class, "blockRoadIgEx");

blockRoadIgIn = new BlockRoadIgIn().setHardness(16F).setBlockName("blockRoadIgIn");

GameRegistry.registerBlock(blockRoadIgIn, ItemStone.class, "blockRoadIgIn");

blockRoadMM = new BlockRoadMM().setHardness(15F).setBlockName("blockRoadMM");

GameRegistry.registerBlock(blockRoadMM, ItemStone.class, "blockRoadMM");

blockRoadSed = new BlockRoadSed().setHardness(14F).setBlockName("blockRoadSed");

GameRegistry.registerBlock(blockRoadSed, ItemStone.class, "blockRoadSed");

 

Lang File

tile.blockRoadIgEx.Andesite.name=Andesite Road

tile.blockRoadIgEx.Basalt.name=Basalt Road

tile.blockRoadSed.Chalk.name=Chalk Road

tile.blockRoadSed.Chert.name=Chert Road

tile.blockRoadSed.Claystone.name=Claystone Road

tile.blockRoadSed.Conglomerate.name=Conglomerate Road

tile.blockRoadIgEx.Dacite.name=Dacite Road

tile.blockRoadIgIn.Diorite.name=Diorite Road

tile.blockRoadSed.Dolomite.name=Dolomite Road

tile.blockRoadIgIn.Gabbro.name=Gabbro Road

tile.blockRoadMM.Gneiss.name=Gneiss Road

tile.blockRoadIgIn.Granite.name=Granite Road

tile.blockRoadSed.Limestone.name=Limestone Road

tile.blockRoadMM.Marble.name=Marble Road

tile.blockRoadMM.Phyllite.name=Phyllite Road

tile.blockRoadMM.Quartzite.name=Quartzite Road

tile.blockRoadIgEx.Rhyolite.name=Rhyolite Road

tile.blockRoadSed.Rock Salt.name=Rock Salt Road

tile.blockRoadMM.Schist.name=Schist Road

tile.blockRoadSed.Shale.name=Shale Road

tile.blockRoadMM.Slate.name=Slate Road

0

Share this post


Link to post
Share on other sites

Where does TFC do its armor rendering at?(The model that appears on the player) I know it has something to do with the TFC proxy but I'm having trouble finding any additional information.

0

Share this post


Link to post
Share on other sites

It's just the vanilla render code. TFC armor directly extends the vanilla armor class.

0

Share this post


Link to post
Share on other sites

I want to prevent TFC from generating mushrooms and want it to generate my custom mushrooms instead. How would I implement that (So far I've only had success adding stuff, not removing/replacing).

0

Share this post


Link to post
Share on other sites

I'm trying to implement some TFC style versions of stained clay and would like to not have to copy and paste minecraft resources into my mod for textures...is there a way to call up minecraft's resources when applying a texture to a block?

 

Edit: Nvm I got it figured out.

Edited by Powerman913717
0

Share this post


Link to post
Share on other sites

Hey currently I'm trying to remove some recipes like the clock/compass recipes because my addon adds better recipes and I know its possible to remove recipes and I kinda see where TFC does it for some things but could someone provide a more in depth explanation of this?

 

Edit: Also I'm trying to add recipes using the forge/campfire kinda like the sand to glass recipes but I can't find where those recipes are registered as they aren't in the main recipes class.

Edited by Powerman913717
0

Share this post


Link to post
Share on other sites

Hey Kitty so that script kinda helps but not really, could you put me in the direction of how heat recipes work in TFC? Also any sort of help with the removing recipes would be great, thanks. :D 

0

Share this post


Link to post
Share on other sites

Ok so I got the heat recipe part setup with no errors, so now the problem is the block can't be placed in the forge, and I have no heat indicator thing on the block item. I've looked into how ingots are handled and I don't think iSmeltable is the way to go, and I can't find anything with the sand block that would explain how it can be put in the forge and how it gets a heat indicator when it has heat.

0

Share this post


Link to post
Share on other sites

Look how tfc does sand to glass etc. There is asking for clarification is one thing. Expecting others to do your the leg work for you.

0

Share this post


Link to post
Share on other sites

Look how tfc does sand to glass etc. There is asking for clarification is one thing. Expecting others to do your the leg work for you.

 

What do you think I've been doing? Just having a magical fun tea party with the code? I am asking for clarification, TFC's code does not contain many notes and the notes it does have make zero sense most of the time. 

 

Most of the code contained within the sand class is for the sand to fall and move around, as well as updating itself. In my theory the code that handles this is on the block item which is what the player holds in their inventory. however sand doesn't have its own unique block item, therefore I'm trying to find location of the code that handles this.

0

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now