
[QUESTION] Greenhouses support Agricraft?
hron84 opened this issue ยท 18 comments
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?
@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;
}
It's launching now but the above method is always returning null despite agricraft being loaded.
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.
@InfinityRaider what is the best method for creating/using the Agricraft API??
@SonarSonic @InfinityRaider thanks for your hard work and great assistance in this integration!
A few little problems with the current build, servers may not work but should be sorted tonight/tommorrow
Let me get this straight. You want a way to remove compatibility with Agricraft? Both are very easy to do :)
@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?
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.
@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.
Yeah that's not a problem. As long as the maker of Agricraft has clear code I can do it :)
@InfinityRaider can help you :-)
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.
@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?