Jump to content

Help with porting BlockPhysics mod from 1.6.2 to 1.12.


st4s1k

Recommended Posts

13 minutes ago, loordgek said:

 

that works but that is not the normal way

 

you should do it like so


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

 

Something like this?:

EnumFacing orient = par1block.getDefaultState().getValue(BlockDirectional.FACING);
Link to comment
Share on other sites

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
Link to comment
Share on other sites

10 minutes ago, loordgek said:

no you are not annoying me

i am trying to help you

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
Link to comment
Share on other sites

11 hours ago, loordgek said:

do you know how ASM works if not please stop.

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

Spoiler

My Discord - Cadiboo#8887

My WebsiteCadiboo.github.io

My ModsCadiboo.github.io/projects

My TutorialsCadiboo.github.io/tutorials

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)

Link to comment
Share on other sites

34 minutes ago, Cadiboo said:

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

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
Link to comment
Share on other sites

23 minutes ago, st4s1k said:

By guessing?

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

Spoiler

My Discord - Cadiboo#8887

My WebsiteCadiboo.github.io

My ModsCadiboo.github.io/projects

My TutorialsCadiboo.github.io/tutorials

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)

Link to comment
Share on other sites

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

Spoiler

My Discord - Cadiboo#8887

My WebsiteCadiboo.github.io

My ModsCadiboo.github.io/projects

My TutorialsCadiboo.github.io/tutorials

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)

Link to comment
Share on other sites

  • 8 months later...
1 hour ago, Membrillo said:

Did you manage to port the mod?

Please don't necro old threads. You could have DMed him.

VANILLA MINECRAFT CLASSES ARE THE BEST RESOURCES WHEN MODDING

I will be posting 1.15.2 modding tutorials on this channel. If you want to be notified of it do the normal YouTube stuff like subscribing, ect.

Forge and vanilla BlockState generator.

Link to comment
Share on other sites

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.