Everything posted by Bauzli
-
Is there any source for Vanilla Java classes?
Well some of the classes get shown in the same way as a class when i create it and write it, and the others are shown like the picture i used.
-
Is there any source for Vanilla Java classes?
The weird thing being that some class files are correctly decompiled (for example the Block class) while most others aren't. What's goin on?
-
Is there any source for Vanilla Java classes?
Thanks. I read something about that, but had no real clue on how to get further. Did it now. Well turns put i did not. I only have the compiled class files and Eclipse will throw the "Source not found exception" at me. Any fix?
-
Is there any source for Vanilla Java classes?
I've seen a lot of people post the class code of specific classes as code for making examples, and i'm wondering where they got it from.
-
[SOLVED] "model missing for variant" exception
Yeah i know heritance fully, but to me writing mods in forge seems almost like a new language, especially because i have never worked with json before. Thanks, actually fixed my issue. So thank all of you guys, you've actually both really helped me understand the registry process and how minecraft works codewise way more.
-
[SOLVED] "model missing for variant" exception
Thanks.This would mean that i can -somehow- add this property to my block and it would work. I'm not advanced enough in Java to fully understand whats going on here, and i don't make a new class for the new Blocks i create. So i don't really know how to register a block that is in a whole new class.
-
[SOLVED] "model missing for variant" exception
I am pretty new to this so...what does that mean? I have basic understanding of Java, but if you don't wanna explain yourself, do you have an idea on where i could find information on how to do this? In the Vanilla assets, there is no axis.json file, so now i'm confused.
-
[SOLVED] "model missing for variant" exception
Like i said, i just copied the oak log blockstate json over and changed the model names so they reference the model of my block. Do i have to create the axis blockstate itself myself?
-
[SOLVED] "model missing for variant" exception
the name of both json files is carved_oak_log.json, the texture file is carved_oak_log.png. Both Blockstate and Model files are the corresponding oak log Models and Blockstates copied and changed. I don't really know what you mean with "The full log", but this is the 4 lines before it. Everything else is not related to the issues. [20:55:39.305] [Server-Worker-4/WARN] [minecraft/ModelBakery]: Exception loading blockstate definition: 'testmod:blockstates/carved_oak_log.json' in resourcepack: 'main' for variant: 'axis=z': Unknown blockstate property: 'axis' [20:55:39.305] [Server-Worker-4/WARN] [minecraft/ModelBakery]: Exception loading blockstate definition: 'testmod:blockstates/carved_oak_log.json' in resourcepack: 'main' for variant: 'axis=x': Unknown blockstate property: 'axis' [20:55:39.306] [Server-Worker-4/WARN] [minecraft/ModelBakery]: Exception loading blockstate definition: 'testmod:blockstates/carved_oak_log.json' in resourcepack: 'main' for variant: 'axis=y': Unknown blockstate property: 'axis' [20:55:39.306] [Server-Worker-4/WARN] [minecraft/ModelBakery]: Exception loading blockstate definition: 'testmod:blockstates/carved_oak_log.json' missing model for variant: 'testmod:carved_oak_log#'
-
[SOLVED] "model missing for variant" exception
done.
-
[SOLVED] "model missing for variant" exception
As stated in the title, i get the "model missing for variant" exception for a log-like block i'm creating, although the referenced model is there. The block is correctly looking in inventory and hand, but has the purple-black texture when placed. I know that, usually, when that exception is thrown, there is a description of the error underneath, however, in shell, there isn't. I'm doing 1.14.3 and using Eclipse, so i have to use a Windows Batch file to start the game. Exception loading blockstate definition: 'testmod:blockstates/carved_oak_log.json' missing model for variant: 'testmod:carved_oak_log#' Blockstate json: { "variants": { "axis=y": { "model": "testmod:block/carved_oak_log" }, "axis=z": { "model":"testmod:block/carved_oak_log", "x": 90 }, "axis=x": { "model": "testmod:block/carved_oak_log", "x": 90, "y": 90 } } } Model json: { "parent": "block/cube_column", "textures": { "end": "block/oak_log_top", "side": "testmod:block/carved_oak_log" } } Texture (pretty sure irrelevant but it is attachments). Registry: @Mod.EventBusSubscriber(bus = Mod.EventBusSubscriber.Bus.MOD) public static class RegistryEvents { //ITEMS ITEMS ITEMS// @SubscribeEvent public static void registerItems(final RegistryEvent.Register<Item> event) { event.getRegistry().registerAll ( //NormalItems ItemList.tutorial_item = new Item(new Item.Properties().group(ItemGroup.MISC)).setRegistryName(location("tutorial_item")), //Block Items ItemList.tutorial_block = new BlockItem(BlockList.tutorial_block, new Item.Properties().group(ItemGroup.MISC)).setRegistryName(BlockList.tutorial_block.getRegistryName()), ItemList.carved_oak_log = new BlockItem(BlockList.carved_oak_log, new Item.Properties().group(ItemGroup.BUILDING_BLOCKS)).setRegistryName(BlockList.carved_oak_log.getRegistryName()) ); logger.info("Items registered."); } //BLOCKS BLOCKS BLOCKS// @SubscribeEvent public static void registerBlocks(final RegistryEvent.Register<Block> event) { event.getRegistry().registerAll ( BlockList.tutorial_block = new Block(Block.Properties.create(Material.IRON).hardnessAndResistance(3.0f, 2.0f).lightValue(7).sound(SoundType.METAL)).setRegistryName(location("tutorial_block")), BlockList.carved_oak_log = new Block(Block.Properties.create(Material.WOOD).hardnessAndResistance(2.0f, 2.0f).sound(SoundType.WOOD)).setRegistryName(location("carved_oak_log")) ); logger.info("Blocks registered."); }
IPS spam blocked by CleanTalk.