Calculator

Calculator

6M Downloads

[QUESTION] Greenhouses support Agricraft?

hron84 opened this issue ยท 18 comments

commented

I'd like to include this mod in my modpack, however I already use Agricraft in hard mode, so no planting allowed other than AC crop sticks. How Calculator can fit in this world?

commented

@InfinityRaider Hey, i'm having trouble using your mod in my dev environment trying to use the API. It just crashes every time because it can't find the APISelector class. Is there a dev jar version?
This is how i'm getting the API at the moment

public static Object getAgricraftAPI() {
if (Loader.isModLoaded("Agricraft")) {
APIBase api = API.getAPI(1);
if (api.getStatus().isOK() && api.getVersion() == 1) {
return api;
}
}
return null;
}

commented

A dev jar version of the API or one for AgriCraft?

commented

It's launching now but the above method is always returning null despite agricraft being loaded.

commented

Hmm, do you have AgriCraft as a lib as well as the api seperatly? It might be grabbing from the duplicate API, which is not initialized.

commented

@InfinityRaider what is the best method for creating/using the Agricraft API??

commented

Give me some time, I'll make a PR

commented

done!

commented

@SonarSonic @InfinityRaider thanks for your hard work and great assistance in this integration!

commented

A few little problems with the current build, servers may not work but should be sorted tonight/tommorrow

commented

Let me get this straight. You want a way to remove compatibility with Agricraft? Both are very easy to do :)

commented

@SonarSonic Absolutely not, I just do not know if calculator supports or not Agricraft's hard mode. Does it? I mean, greenhouses can automagically put down cropsticks and plant plants on them?

commented

In that case no. Currently you greenhouse's don't place down cropsticks or plant things into them. I could add a feature which lets Crops be planted into crop sticks but it would make more sense if you had to place the crop sticks yourself.

commented

@SonarSonic I can live with it if otherwise greenhouses can plant/harvest things correctly. This is not trivial with cropsticks since for harvesting you cannot break the whole block (that would break the cropstick too), just reset the growth stage.

commented

Yeah that's not a problem. As long as the maker of Agricraft has clear code I can do it :)

commented

@InfinityRaider can help you :-)

commented

I'm not familiar with this mod and I don't know what this is about, but if you have a question about Agricraft, I'm happy to help out.

commented

@InfinityRaider Well basically along with loads of other things Calculator has some Green Houses which automate crop growth. I am wondering if there is an API or some other way of planting into Crop Sticks and removing them automatically once fully grown?