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

      ATTENTION Forum Database Breach   03/04/2019

      There has been a breach of our database. Please make sure you change your password (use a password manager, like Lastpass).
      If you used this password anywhere else, change that too! The passwords themselves are stored hashed, but may old accounts still had old, insecure (by today's standards) hashes from back when they where created. This means they can be "cracked" more easily. Other leaked information includes: email, IP, account name.
      I'm trying my best to find out more and keep everyone up to date. Discord (http://invite.gg/TerraFirmaCraft) is the best option for up to date news and questions. I'm sorry for this, but the damage has been done. All I can do is try to make sure it doesn't happen again.
    • Claycorp

      This forum is now READ ONLY!   01/20/2020

      As of this post and forever into the future this forum has been put into READ ONLY MODE. There will be no new posts! A replacement is coming SoonTM . If you wish to stay up-to-date on whats going on or post your content. Please use the Discord or Sub-Reddit until the new forums are running.

      Any questions or comments can be directed to Claycorp on either platform.
SioxerNic

Know coding, new to Java and Minecraft

6 posts in this topic

Greetings my fellow programmers.

 

Some friends and me are setting up a server, although we do need to do some TFC balance changes, in terms of specific items stats and so on, and I've been tasked to write an addon for it.

 

I'll be more than capable of doing the necessary changes although I've been poking around the code to see where I can find the following, so I can extend or override them in my addon:

 

Armor Rating (Has been found)

Base Weapon Stats

Base Tool Strengths

Base Health

The objects and/or functions that applies damage to monsters

The objects and/or functions that applies the tool strength to blocks and entities

The objects and/or functions that deals with Hunger & Thirst

 

The rest of writing an addon I should be more than capable of figuring out myself, although any help with that would also be very much appreciated.

 

If this information is secret in any way shape or form, I'm sorry to have asked.

 

If it is something you can supply information for, but don't want to do it publicly, my email is [email protected]

 

The addon itself will not be "public" and will be limited to the server I'll be running with my friends.

 

Thank you very much for the hopefully forthcoming assistance.

0

Share this post


Link to post
Share on other sites

I recommend that you get familiar with the TFC codebase then come to IRC to ask for access to specific parts of the code via the API if it doesn't already exist. Damaging monsters and players for instance can be handled via the EntityArmorCalcEvent in the TFC API. We're always looking to expand the API, I just need requests.

0

Share this post


Link to post
Share on other sites

Thanks for the reply, I'll join the IRC when I get the chance

0

Share this post


Link to post
Share on other sites

I recommend that you get familiar with the TFC codebase then come to IRC to ask for access to specific parts of the code via the API if it doesn't already exist. Damaging monsters and players for instance can be handled via the EntityArmorCalcEvent in the TFC API. We're always looking to expand the API, I just need requests.

 

I might be sounding like a complete newb at this (and I am, whatever), but I need a way to cancel/repurpose an item drop event from breaking blocks. I know the 'inheritance' way to do it, but that's not ideal way to do it, I reckon.

0

Share this post


Link to post
Share on other sites

Typically item dropping is handled by vanilla, so unless I totally redid that(I'm not gonna) extending is the only way to do it.

0

Share this post


Link to post
Share on other sites

Booo forge

Well, okay. I'll see what I can do. Doesn't that mean I gotta alter the terrain gen too then?

0

Share this post


Link to post
Share on other sites