Giter Club home page Giter Club logo

Comments (5)

7ekhed avatar 7ekhed commented on August 23, 2024 1

for anyone else who may read this, this addition requires the variable to be converted to an integer as such:

protected int func_214005_h()
{
    AbstractCookingRecipe rec = getRecipe();
    if (rec == null) return (int) (200 * 0.1);
    return (int) (rec.getCookTime() * 0.1);
}

from brickfurnace.

cech12 avatar cech12 commented on August 23, 2024

Hey, thanks a lot! :)
There is a method in the tile entities where the cooking time is returned. The normal cooking time of a furnace is 200. So you can multiply 0.5 or 2 to half or double this value for example.
In the brick furnace tile entity the method is called func_214005_h()

Good luck. And if you share a link to you repository will be awesome :)

from brickfurnace.

7ekhed avatar 7ekhed commented on August 23, 2024

Awesome, thank you so much! I have found what you referenced, and divided it in half, but the cooking time is the same. Do I need to modify ONLY this variable, or are there multiple things?

I have not a repository yet, but I will once I am complete, thank you!

from brickfurnace.

cech12 avatar cech12 commented on August 23, 2024

In every tile entity there is such a method. The multiplication of the return value should be enough.

protected int func_214005_h() {
AbstractCookingRecipe rec = getRecipe();
if (rec == null) return 200 * 0.5;
return rec.getCookTime() * 0.5;
}

should be enough. If it does not work, than I cannot help you sorry.

from brickfurnace.

7ekhed avatar 7ekhed commented on August 23, 2024

Okay! Thank you so much!

from brickfurnace.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.