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

    • Dries007

      Server Move   09/13/18

      I (Dries007) have recently taken over as main developer and server admin. This involved moving servers to reduce cost. It's likely there will be some more downtime in the future but most  things should be sorted by now. This forum is in dire need of replacement as the software is quite old and can't be easily updated. If you wish to discuss or stay updated, join our discord: https://invite.gg/terrafirmacraft. The forum will remain available to read, but will be locked in the future, when a new system is setup. The forum and wiki are now ad free. If you'd like to contribute to keeping it that way, you can do so via paypal or patreon.
Tordak

A Sample Mod for a Newbie

4 posts in this topic

I started modding Minecraft a week ago. I know the basics, But I'm having trouble modding TerraFirmaCraft. Due to lack of tutorials. And also due to the TerraFirmaCraft it is much more difficult to add items. If anyone has free time and willingness to help a Newbie, I would like to have an example mod with comments explaining each function. My greatest trouble is to create a plan for the anvil. And the properties of items such as weight and size. The rest I manage

0

Share this post


Link to post
Share on other sites

Check here:

There is the addon template and document with usage instructions.

1

Share this post


Link to post
Share on other sites

How to create anvil plans: https://github.com/Deadrik/TFCraft/blob/7b22189d269b2b1e65b4e7529a43cd416a0ba7f6/src/Common/com/bioxx/tfc/Core/Recipes.java#L1215

How to set weight and size: https://github.com/Deadrik/TFCraft/blob/7b22189d269b2b1e65b4e7529a43cd416a0ba7f6/src/Common/com/bioxx/tfc/Items/ItemArrow.java#L12

Just extend ItemTerra class and set these properties in constructor.

P.S.

Don't be lazy, see the source code, analyze and learn.

Edited by Shurgent
1

Share this post


Link to post
Share on other sites

Thanks Shurgent. I was reading the wrong code. This helps me a lot. 

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