st4s1k Posted December 27, 2018 Author Posted December 27, 2018 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);
st4s1k Posted December 27, 2018 Author Posted December 27, 2018 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.
loordgek Posted December 27, 2018 Posted December 27, 2018 no that will return null EnumFacing orient = state.getValue(BlockDirectional.FACING); and you can get the state for world.getBlockStae 1
st4s1k Posted December 27, 2018 Author Posted December 27, 2018 (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 December 27, 2018 by st4s1k
loordgek Posted December 27, 2018 Posted December 27, 2018 yes stop. you have no idea what you are doing
st4s1k Posted December 27, 2018 Author Posted December 27, 2018 Ok, I see I annoy you, maybe I'll try to figure it out for myself.
loordgek Posted December 27, 2018 Posted December 27, 2018 no you are not annoying me i am trying to help you
st4s1k Posted December 27, 2018 Author Posted December 27, 2018 (edited) 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 December 27, 2018 by st4s1k
st4s1k Posted December 27, 2018 Author Posted December 27, 2018 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.
st4s1k Posted December 27, 2018 Author Posted December 27, 2018 3 minutes ago, loordgek said: i can make a new mod for you =D That sounds very generous of you. I don't think you want to waste your time on somebody else's problems...)
st4s1k Posted December 27, 2018 Author Posted December 27, 2018 5 minutes ago, loordgek said: do you have discord ?? yes
st4s1k Posted December 27, 2018 Author Posted December 27, 2018 2 minutes ago, loordgek said: can have your name so we can DM st4s1k#7446
Cadiboo Posted December 28, 2018 Posted December 28, 2018 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 Website - Cadiboo.github.io My Mods - Cadiboo.github.io/projects My Tutorials - Cadiboo.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)
st4s1k Posted December 28, 2018 Author Posted December 28, 2018 (edited) 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 December 28, 2018 by st4s1k
Cadiboo Posted December 28, 2018 Posted December 28, 2018 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 Website - Cadiboo.github.io My Mods - Cadiboo.github.io/projects My Tutorials - Cadiboo.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)
st4s1k Posted December 28, 2018 Author Posted December 28, 2018 3 minutes ago, Cadiboo said: 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 Oh... ok, thanks.
Cadiboo Posted December 28, 2018 Posted December 28, 2018 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 Website - Cadiboo.github.io My Mods - Cadiboo.github.io/projects My Tutorials - Cadiboo.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)
Animefan8888 Posted September 13, 2019 Posted September 13, 2019 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.
Recommended Posts