ModTweaker

ModTweaker

88M Downloads

[Request] Add fuels for the Railcraft Blast Furnace

SynfulChaot opened this issue ยท 20 comments

commented

Would it be possible to create a handler for adding new fuels to the Railcraft Blast Furnace?

commented

@Zixxl this doesn't seem to work very well - it just churns through the fuel in a matter of seconds although I set the burn time to 4000000. Proof

commented
commented

With error I meant that you should post your script, MT log and a description of the issue.

commented

@Yulife Fixed?

commented

Please test it.
Works for me with Railcraft 9.7.0, Modtweaker latest git version

commented

It would be possible to add / remove items to the filter (accepted items) but you can't specify the fuel value for the items.

commented

I know that current fuels in the Blast Furnace have differing fuel values. Perhaps it uses the default value of the fuel itself?

commented

The blast furnace uses some hard coded fuel values for coal coke, blaze rods and so on. If it doesn't know the fuel value, it will retrieve the value from the vanilla furnace.
So if you want adding new fuels to the railcraft blast furnace, you have to add a valid fuel source for the vanilla furnace and then add this item to the item filter for accepted items.
We could add a handler to manipulate the filter.

commented

Well, it would be possible to edit the vanilla fuel value Railcraft wants to grab. How would you imagine the manipulation @Zixxl?

commented

I original thougt the same way as zixxl that Tailcraft uses vanilla furnace fuel list.
But looking at https://github.com/CovertJaguar/Railcraft/blob/master/src/main/java/mods/railcraft/common/util/crafting/BlastFurnaceCraftingManager.java#L37 it seems the build an own list.
Shouldn't that complicated to modify.

commented

Seems like the Railcraft lib in the modtweaker repository is outdated. If it includes a list in newer versions, we could add a handler.

commented

So it will be possible or not to set new Fuels with the newest Version?

commented

Kind of. I've added the handlers to my dev branch. But you can only modify the filter, it must be a valid fuel item known by the vanilla furnace.

commented

So it can be added to but it's limited to anything that's registered as a fuel for vanilla furnaces?

commented

fuels = Collections.unmodifiableList(fuel);
Someone really wants to prevent modifications ๐Ÿ˜ž

commented

Exactly, you can burn your sticks for example or remove coal coke as a valid input.
If you want to add custom fuels, you have to register it first with MineTweaker as a vanilla fuel. E.g. you want to use redstone, you can use:
furnace.setFuel(<minecraft:redstone>, 100);

commented

How breaking would it be to register an item as a vanilla fuel, then add it to the furnace, then remove the item as a vanilla fuel?

I'm going to assume Railcraft won't know what to do with the item anymore since it's no longer a fuel, but it was registered as one at the time of being enabled as a furnace fuel.

commented

Sadly doesn't work this way. Railcraft has a list with all the items which can be used as an input. This list can be modified with the changes. But the fuel value will be fetched everytime the fuel will be used. Your method will lead to an exception.

commented

Darn, I was afraid of that.

commented

Cool! That's functionality enough, I think. After all, what would be used in a blast furnace as fuel that wouldn't be burnable everywhere else?