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.
RobinOfLocksley

Decay Mechanics

3 posts in this topic

Hello,

first of all Terra Firma Craft is an amazing mod. But in my Opinion there is a lack of diversity, when it comes to fishing. So I decided to use the Aquaculture mod by Shadowclaimer (http://www.curse.com/mc-mods/minecraft/aquaculture).It works pretty well with the TFC bioms and stuff, but the problem is that you can't eat the fish, because of the TFC food overhaul.

 

In Aquaculture the fish have to be crafted into fillets before the can be cooked. If I change the recepie with Minetweaker, so now instead of turning into a raw fishfillet the fish would turn into raw fish from TFC my problem would be solved and I will just have to change the image of the raw fish to a raw fishfillet.

 

I was able to change the recipe and have controle over the weight, but the state of decay doesn't seem to work. Here is my code:

 

recipes.addShapeless(<terrafirmacraft:item.Fish>.withTag({foodWeight:10.0 as float, foodDecay:-24.0 as float, decayTimer: 613 as float}), [fish]);

 

Every time I craft this recip, there is the correct item with correct weight and decay in the "product box" (right of the crafting grid). But as soon as I take it out it turns into a "Pickeld Salted Dried Fish" with no weight or decay at all.

 

Can you help me please?

 

Thank you

0

Share this post


Link to post
Share on other sites

I haven't had a chance to test this, so you'll need to try this out yourself.

First. MineTweaker is happy to use ingredients with the .withTag with only partial information, it just accepts any value for the undefined NBT variables. However as an output it needs to assign these values and so uses defaults. It seems that the default for the pickling etc is 1, so true. What I'd suggest is to catch a raw fish and look at all its nbt data. The nbtedit mod is handy for this. Just throw fish in a chest look at chest and run /nbtedit. I'm not sure if the taste profile values are on raw fish, since you can't eat and if they are if they are fixed or seed dependent.

Now the fact they are 0 weight and no decay I'm not quite sure about. But I have a hunch. The fish will have a TFC world time stamp on it, pretty sure this is the decay timer variable. So any fish you craft would have this stamp and decay according to the point in time you made script. This happens in HQM where if you use a food reward you get it and more likely than not it will rot away immediately. I'm not sure if you will be able to fix this, but you could try leaving that variable undefined and hope it defaults to current world time. I think that may be why the current crafting gives an empty fish.

0

Share this post


Link to post
Share on other sites

Thank you Bunsan.The nbtedit mod is a very usefull tool and I was able to create the result I wanted with it.But unfortunately, upon further testing, I came to the realisation, that no matter how many or which ntb tags I add, the result is always the same :

 

<terrafirmacraft:item.Fish>.withTag({foodDecay: 0.0 as float, foodWeight: 0.0 as float, "Processing Tag": {Brined: 1 as byte, Cooked: 0.0 as float, Dried: 4 as short, CookedProfile: [0, 0, 0, 0, 0] as int[], FuelProfile: [0, 0, 0, 0, 0] as int[], Pickled: 1 as byte, Salted: 1 as byte}, decayTimer: 663})

 

Just the decayTimer varies. It seems that the timestamp really is the problem. I will try to somehow add this via minetweaker, although I do not think, that this is possible.

 

If anyone has any futher suggestions feel free to add them.Thanks

0

Share this post


Link to post
Share on other sites