Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Some Considerable work to update to 1.12.2 #134

Open
wants to merge 56 commits into
base: master
Choose a base branch
from

Conversation

AhiVT
Copy link

@AhiVT AhiVT commented Jul 30, 2019

I really wanted to use this mod in my 1.12 modpack and thought to give a shot at updating the project to 1.12.2. While I'm not in any way new to programming, I barely had any clue where to start with Forge modding. I put forth my best effort to update and fix as much as I could, but there is still much left to be done. It is my hope that pushing my changes to master will catch the eyes of other would-be modders looking to update the mod.


@Mod(modid = Sanguimancy.modid, name = Sanguimancy.name, version = Sanguimancy.version, dependencies = Sanguimancy.depend, guiFactory = "tombenpotter.sanguimancy.client.gui.ConfigGuiFactory")
public class Sanguimancy {

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should be removed as blood tank was the only item using Universal Bucket, now since moved into base Blood Magic

@Mod.EventHandler
public void postInit(FMLPostInitializationEvent event) {
RecipesRegistry.registerCustomModRecipes();
SanguimancyGuide.registerGuide();
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

GuideAPI has changed a LOT since 1.10, I'm not sure how to register the book now since its no longer static

* Used to register crafting recipes to the guide
*/
public static IRecipe getLatestCraftingRecipe() {
IRecipe rec = (IRecipe) CraftingManager.getInstance().getRecipeList().get(CraftingManager.getInstance().getRecipeList().size() - 1);
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Broken on update to 1.12, couldn't find much info on a migration

@@ -1,21 +1,22 @@
package tombenpotter.sanguimancy.api.snManifestation;

import tombenpotter.sanguimancy.api.objects.BlockPostition;
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

BlockPostition obsoleted by Minecraft's built-in BlockPos


public class SoulCorruption implements IExtendedEntityProperties {

public static String ID = "SoulCorruption";
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This should probably now be a capability, but the tutorial I was following was particularly unhelpful

@@ -1,4 +1,4 @@
package tombenpotter.sanguimancy.api.tile;
package tombenpotter.sanguimancy.api.tiles;
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Refactor from 1.10.2 branch

@Tombenpotter
Copy link
Owner

Tombenpotter commented Aug 3, 2019 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants