Shazer Posted October 5, 2018 Posted October 5, 2018 In the log I get the Don't know how to convert <modid:model[state=state]> back into data... error then my Minecraft crashes at init stage. My code is public CameraBlockBase(String id) { super(Material.IRON); this.setUnlocalizedName(id); this.setRegistryName(id); this.setCreativeTab(Cameramod.camera_tab); } @Override public IBlockState getStateForPlacement(World world, BlockPos pos, EnumFacing facing, float hitX, float hitY, float hitZ, int meta, EntityLivingBase placer, EnumHand hand) { IBlockState state = super.getStateForPlacement(world, pos, facing, hitX, hitY, hitZ, meta, placer, hand); return state.withProperty(FACING, placer.getHorizontalFacing()); } @Override protected BlockStateContainer createBlockState() { return new BlockStateContainer(this, FACING); } crash-2018-10-05_17.39.14-client.txt Quote
Cadiboo Posted October 5, 2018 Posted October 5, 2018 Until 1.13 comes out you still need the methods getStateFromMeta and getMetaFromState. In future please post your code as a GitHub repository & use GitHub Gist for posting your logs Quote 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)
Shazer Posted October 8, 2018 Author Posted October 8, 2018 I did try that, all the difference it made was that it didn't crash, when I tried to place the block, it had the missing texture all round, no model. I still got the error at the start. Quote
Cadiboo Posted October 8, 2018 Posted October 8, 2018 (edited) 33 minutes ago, Shazer said: I did try that, all the difference it made was that it didn't crash, when I tried to place the block, it had the missing texture all round, no model. I still got the error at the start. If you changed something, post your updated code & your new logs On 10/5/2018 at 6:46 PM, Cadiboo said: In future please post your code as a GitHub repository & use GitHub Gist for posting your logs Edited October 8, 2018 by Cadiboo Quote 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)
Shazer Posted October 8, 2018 Author Posted October 8, 2018 I will later i'm working on other stuff in the mod rn. Quote
Cadiboo Posted October 8, 2018 Posted October 8, 2018 6 minutes ago, Shazer said: I will later i'm working on other stuff in the mod rn. If you post your mod as a GitHub repository, these two things can happen in parallel Quote 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)
Shazer Posted October 8, 2018 Author Posted October 8, 2018 The github is https://github.com/ShazerHD/CameraMod, its in the CameraBlockBase class Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.