Jump to content

Help with porting BlockPhysics mod from 1.6.2 to 1.12.


Recommended Posts

Posted
  On 12/27/2018 at 8:17 PM, loordgek said:

 

that works but that is not the normal way

 

you should do it like so

EnumFacing orient = state.getValue(BlockDirectional.FACING);

 

Expand  

Something like this?:

EnumFacing orient = par1block.getDefaultState().getValue(BlockDirectional.FACING);
Posted

I'm not 100% sure that I can make this mod work. But this is sort of a challenge for me. I really want to try as hard as I can, with somebody's help of course, if they will.

Posted (edited)

is this:

AxusAlignedBB Sandbbox = new AxisAlignedBB(i, j, k, (float)i + 1, (float)j + 1, (float)k + 1);

a good replacement for this:

AxisAlignedBB Sandbbox = AxisAlignedBB.getBoundingBox(i, j, k, (float)i + 1, (float)j + 1, (float)k + 1);

?

Edited by st4s1k
Posted (edited)
  On 12/27/2018 at 9:17 PM, loordgek said:

no you are not annoying me

i am trying to help you

Expand  

I appreciate your responses, but telling me that I should stop doesn't really help =D


Maybe my questions may sound silly, idk, I've never been modding before, neither am I doing now. I'm trying to make an old minecraft mod working using my level of Java knowledge. I'm just exploring and I enjoy it. If I enjoy it, why should I simply stop. Or maybe you can give me an alternative starting point?

Edited by st4s1k
Posted

I had around 1k errors in the code I'm fixing now. Now it's around 300, and every day I'm making a little progress, small steps, but better than yesterday, and I think that's good.

Posted
  On 12/27/2018 at 7:03 PM, loordgek said:

do you know how ASM works if not please stop.

Expand  

Stop even if you do know how it works

You should start from scratch & then bring some of the old code in once you have good understanding of modding.

I've just ported a very rendering intensive mod from 1.7.10 -> 1.12.2 and I'm a little experienced in it (world rendering particularly) so pm me on discord if you have any questions @Cadiboo#8887

About Me

  Reveal hidden contents

Versions below 1.14.4 are no longer supported on this forum. Use the latest version to receive support.

When asking support remember to include all relevant log files (logs are found in .minecraft/logs/), code if applicable and screenshots if possible.

Only download mods from trusted sites like CurseForge (minecraft.curseforge.com). A list of bad sites can be found here, with more information available at stopmodreposts.org

Edit your own signature at www.minecraftforge.net/forum/settings/signature/ (Make sure to check its compatibility with the Dark Theme)

Posted (edited)
  On 12/28/2018 at 6:56 AM, Cadiboo said:

You should start from scratch & then bring some of the old code in once you have good understanding of modding.

Expand  

I guess this is what I am going to do. Do you have any advice, that would ease my learning trip? Aside referring to FORGEdocs , because it seems to be superficial.

All it has about rendering is this small paragraph:
https://mcforge.readthedocs.io/en/latest/rendering/teisr/

 

I mean, there is a giant library of minecraft & forge classes, but very little documentation. How can I possibly learn something meaningful? By guessing?

Edited by st4s1k
Posted
  On 12/28/2018 at 7:20 AM, st4s1k said:

By guessing?

Expand  

And trial & error, Minecraft isn't anywhere near open-source, so no documentation.
You might want to take a look at https://github.com/Cadiboo/Example-Mod, It's even got some rendering stuff already in there

About Me

  Reveal hidden contents

Versions below 1.14.4 are no longer supported on this forum. Use the latest version to receive support.

When asking support remember to include all relevant log files (logs are found in .minecraft/logs/), code if applicable and screenshots if possible.

Only download mods from trusted sites like CurseForge (minecraft.curseforge.com). A list of bad sites can be found here, with more information available at stopmodreposts.org

Edit your own signature at www.minecraftforge.net/forum/settings/signature/ (Make sure to check its compatibility with the Dark Theme)

Posted

Its a great concept, but it was appallingly implemented, has a horrible EULA and results in horrible & messed up code (that can easily break other mods & prevents forge from adding reloadable mods)

About Me

  Reveal hidden contents

Versions below 1.14.4 are no longer supported on this forum. Use the latest version to receive support.

When asking support remember to include all relevant log files (logs are found in .minecraft/logs/), code if applicable and screenshots if possible.

Only download mods from trusted sites like CurseForge (minecraft.curseforge.com). A list of bad sites can be found here, with more information available at stopmodreposts.org

Edit your own signature at www.minecraftforge.net/forum/settings/signature/ (Make sure to check its compatibility with the Dark Theme)

  • 8 months later...
Guest
This topic is now closed to further replies.

Announcements



×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.