Railcraft

Railcraft

34M Downloads

[Suggestion] Make Cart Inventories TFC Compatible

abculatter2 opened this issue ยท 12 comments

commented

TerraFirmaCraft has a container tick handler, which must be called in order for its food to decay and heated items to cool down. I was wondering if it might be possible to have RC's cart inventories call this method if TFC is installed?

EDIT: Apparently, this is more difficult then I anticipated it would be, due to incompatibilities on TFC's side. Probably not going to happen, but I can DREAM!

commented

TFC can probably do this from their end by using capabilities, attaching one on each TE with an inventory and using that for the food decay (atleast for TE's where the items are accessable)

commented

@Forecaster yes but forge allows you to attach capabilities onto TE's that are not your own

commented

And this works on entities such as minecarts?

commented

@AEnterprise They already do this with their own containers. The issue is that decay doesn't happen in railcraft minecarts.

commented

What about vanilla hopper minecarts, does it work with those when Railcraft is not installed?

commented

if they use this method it should as all carts are entities

commented

Well caps doesn't matter because those don't exist in 1.7

commented

for 1.7 but there is barely development for 1.7.10 atm so as doubt we will see new version of RC or TFC on 1.7.10 but TFC can implement this on 1.8+

commented

At this point the ball has left our court entirely it seems. Should probably close this issue and interested parties can bring it up at TFC instead.

commented

I should also point out that you can hook into the MinecartUpdate event as well.

commented

yeah, it can be done from RC's end but it would be much, much better if TFC does it from it's end as that would be cleaner, less likely to cause issues and compatible with other mods that add carts