• 0

    posted a message on How do I make Custom Leave Blocks in Minecraft?

    It works, thank you. (Hurray!)


    Do you think this does also work for other plants?

    Posted in: Modification Development
  • 0

    posted a message on How do I make Custom Leave Blocks in Minecraft?

    This is the Model-json for leaves_cherry:

    {
        "parent": "block/leaves",
        "textures": {
            "all": "biodiversity:blocks/leaves_cherry"
        }
    }

    This is the Item-json for leaves_cherry:

    {
        "parent": "biodiversity:block/leaves_cherry",
        "display": {
            "thirdperson": {
                "rotation": [
                    10,
                    -45,
                    170
                ],
                "translation": [
                    0,
                    1.5,
                    -2.75
                ],
                "scale": [
                    0.375,
                    0.375,
                    0.375
                ]
            }
        }
    }

    I did a little change to my Leaves-Source and used the following Blockstate:

    {"variants": {
    		"decayable=true,check_decay=true": { "model": "biodiversity:leaves_cherry" },
    		"decayable=false,check_decay=true": { "model": "biodiversity:leaves_cherry" },
    		"decayable=true,check_decay=false": { "model": "biodiversity:leaves_cherry" },
    		"decayable=false,check_decay=false": { "model": "biodiversity:leaves_cherry" }
    	}
    }


    The following Error occurred:

    [15:48:16] [main/ERROR] [FML]: Exception loading model for variant biodiversity:leaves_cherry#check_decay=false,decayable=true for blockstate "biodiversity:leaves_cherry[check_decay=false,decayable=true]"
    net.minecraftforge.client.model.ModelLoaderRegistry$LoaderException: Exception loading model biodiversity:leaves_cherry#check_decay=false,decayable=true with loader VariantLoader.INSTANCE, skipping
     at net.minecraftforge.client.model.ModelLoaderRegistry.getModel(ModelLoaderRegistry.java:161) ~[ModelLoaderRegistry.class:?]
     at net.minecraftforge.client.model.ModelLoader.registerVariant(ModelLoader.java:235) ~[ModelLoader.class:?]
     at net.minecraft.client.renderer.block.model.ModelBakery.loadBlock(ModelBakery.java:153) ~[ModelBakery.class:?]
     at net.minecraftforge.client.model.ModelLoader.loadBlocks(ModelLoader.java:223) ~[ModelLoader.class:?]
     at net.minecraftforge.client.model.ModelLoader.setupModelRegistry(ModelLoader.java:150) ~[ModelLoader.class:?]
     at net.minecraft.client.renderer.block.model.ModelManager.onResourceManagerReload(ModelManager.java:28) [ModelManager.class:?]
     at net.minecraft.client.resources.SimpleReloadableResourceManager.registerReloadListener(SimpleReloadableResourceManager.java:121) [SimpleReloadableResourceManager.class:?]
     at net.minecraft.client.Minecraft.init(Minecraft.java:559) [Minecraft.class:?]
     at net.minecraft.client.Minecraft.run(Minecraft.java:421) [Minecraft.class:?]
     at net.minecraft.client.main.Main.main(Main.java:118) [Main.class:?]
     at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.8.0_251]
     at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) ~[?:1.8.0_251]
     at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) ~[?:1.8.0_251]
     at java.lang.reflect.Method.invoke(Unknown Source) ~[?:1.8.0_251]
     at net.minecraft.launchwrapper.Launch.launch(Launch.java:135) [launchwrapper-1.12.jar:?]
     at net.minecraft.launchwrapper.Launch.main(Launch.java:28) [launchwrapper-1.12.jar:?]
     at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.8.0_251]
     at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) ~[?:1.8.0_251]
     at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) ~[?:1.8.0_251]
     at java.lang.reflect.Method.invoke(Unknown Source) ~[?:1.8.0_251]
     at net.minecraftforge.gradle.GradleStartCommon.launch(GradleStartCommon.java:97) [start/:?]
     at GradleStart.main(GradleStart.java:25) [start/:?]

    I don't know how to react to this Stacktrace.

    Posted in: Modification Development
  • 0

    posted a message on How do I make Custom Leave Blocks in Minecraft?

    As an Example here is the Blockstates-File for the Cherrytree, the other files look similar.


    {
    	"variants": {
    		"normal": { "model": "biodiversity:leaves_cherry" }
    	}
    }
    Posted in: Modification Development
  • 0

    posted a message on How do I make Custom Leave Blocks in Minecraft?

    I am currently working on an Update for a Mod for Java-Edition Version 1.12 (.2). The old Version was for 1.10.

    Most other Blocks are working now (they have a Texture,..), but there seems to be a Problem with Leaves. This is the first time I am working on a Mod, so I am not so experienced with everything. Also it is a little bit irritating because there are different Variants to do everything (as it seems).


    I already have all the necessary json-Files (as far as I know). The Blocks already work in the Inventory, but not in the world. There it shows this purple-black "missing-texture" - Texture.


    If required I can provide extra Information.

    The Mod is called Biodiversity.

    Posted in: Modification Development
  • To post a comment, please .