Problème avec mes ressources (ou mon code, ou les deux)



  • Bonjour, j'essaye depuis hier de trouver une solution au problème suivant: j'ai ajouté des bois (brut) à mon mod mais le problème est que je n'arrive pas a avoir mes textures sur les blocs en jeu.

    Je joint le code de mon bloc ainsi que le blockstates.json, les models ont l'air de marcher j'ai une texture pour les items dans l'inventaire (je vais quand même les mettre).

    Je précise aussi que je veux faire des metadata pour le bois (je sais que je pourrais faire plus simple mais j'ai envie de me compliquer la vie pour mieux apprendre de mes erreurs.)

    J'espère que c'est pas une erreur de parsing ou un erreur toute bête que j'ai pas du tout vue ^^ J'ai aussi utilisé le site http://jsonlint.com/ pour vérifier le parsing de mes json (merci captain obvious).

    Dossier: assets/md/blockstates, nom du fichier: log.json

    {
    	"variants": {
    		"variant=wair": {
    			"axis=y": {
    				"model": "md:log"
    			},
    			"axis=z": {
    				"model": "md:log",
    				"x": 90
    			},
    			"axis=x": {
    				"model": "md:log",
    				"x": 90,
    				"y": 90
    			},
    			"axis=none": {
    				"model": "md:logb"
    			}
    		},
    
    		"variant=wbreak": {
    			"axis=y": {
    				"model": "md:log_m6"
    			},
    			"axis=z": {
    				"model": "md:log_m6",
    				"x": 90
    			},
    			"axis=x": {
    				"model": "md:log_m6",
    				"x": 90,
    				"y": 90
    			},
    			"axis=none": {
    				"model": "md:log_m6b"
    			}
    		},
    
    		"variant=wearth": {
    			"axis=x": {
    				"model": "md:log_m3",
    				"x": 90,
    				"y": 90
    			},
    			"axis=y": {
    				"model": "md:log_m3"
    			},
    			"axis=z": {
    				"model": "md:log_m3",
    				"x": 90
    			},
    
    			"axis=none": {
    				"model": "md:log_m3b"
    			}
    		},
    
    		"variant=wfire": {
    			"axis=y": {
    				"model": "md:log_m2"
    			},
    			"axis=z": {
    				"model": "md:log_m2",
    				"x": 90
    			},
    			"axis=x": {
    				"model": "md:log_m2",
    				"x": 90,
    				"y": 90
    			},
    			"axis=none": {
    				"model": "md:log_m2b"
    			}
    		},
    
    		"variant=wice": {
    			"axis=y": {
    				"model": "md:log_m4"
    			},
    			"axis=z": {
    				"model": "md:log_m4",
    				"x": 90
    			},
    			"axis=x": {
    				"model": "md:log_m4",
    				"x": 90,
    				"y": 90
    			},
    			"axis=none": {
    				"model": "md:log_m4b"
    			}
    		},
    
    		"variant=wlava": {
    			"axis=y": {
    				"model": "md:log_m5"
    			},
    			"axis=z": {
    				"model": "md:log_m5",
    				"x": 90
    			},
    			"axis=x": {
    				"model": "md:log_m5",
    				"x": 90,
    				"y": 90
    			},
    			"axis=none": {
    				"model": "md:log_m5b"
    			}
    		},
    
    		"variant=wwater": {
    			"axis=y": {
    				"model": "md:log_m1"
    			},
    			"axis=z": {
    				"model": "md:log_m1",
    				"x": 90
    			},
    			"axis=x": {
    				"model": "md:log_m1",
    				"x": 90,
    				"y": 90
    			},
    			"axis=none": {
    				"model": "md:log_m1b"
    			}
    		}
    	}
    }
    

    Dossier: assets/md/models/block, nom du fichier: log.json

    {
       "parent": "block/cube_column",
       "textures": {
           "end": "md:blocks/log_airt", –> Précision pour ce post: c'est le PNG du dessus de la texture
           "side": "md:blocks/log_air"
       }
    }
    

    Dossier: assets/md/models/block, nom du fichier: logb.json

    {
       "parent": "block/cube_all",
       "textures": {
           "all": "md:blocks/log_air"
       }
    }
    

    Les erreurs (c'est mieux je pense)

    [13:36:38] [main/ERROR] [FML]: Exception loading model for variant md:log#axis=z,variant=wearth for blockstate "md:log[axis=z,variant=wearth]"
    net.minecraftforge.client.model.ModelLoaderRegistry$LoaderException: Exception loading model md:log#axis=z,variant=wearth with loader VariantLoader.INSTANCE, skipping
    at net.minecraftforge.client.model.ModelLoaderRegistry.getModel(ModelLoaderRegistry.java:153) ~[ModelLoaderRegistry.class:?]
    at net.minecraftforge.client.model.ModelLoader.registerVariant(ModelLoader.java:234) ~[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:222) ~[ModelLoader.class:?]
    at net.minecraftforge.client.model.ModelLoader.setupModelRegistry(ModelLoader.java:160) ~[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_151]
    at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) ~[?:1.8.0_151]
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) ~[?:1.8.0_151]
    at java.lang.reflect.Method.invoke(Unknown Source) ~[?:1.8.0_151]
    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_151]
    at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) ~[?:1.8.0_151]
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) ~[?:1.8.0_151]
    at java.lang.reflect.Method.invoke(Unknown Source) ~[?:1.8.0_151]
    at net.minecraftforge.gradle.GradleStartCommon.launch(GradleStartCommon.java:97) [start/:?]
    at GradleStart.main(GradleStart.java:26) [start/:?]
    Caused by: net.minecraft.client.renderer.block.model.ModelBlockDefinition$MissingVariantException
    at net.minecraft.client.renderer.block.model.ModelBlockDefinition.getVariant(ModelBlockDefinition.java:83) ~[ModelBlockDefinition.class:?]
    at net.minecraftforge.client.model.ModelLoader$VariantLoader.loadModel(ModelLoader.java:1173) ~[ModelLoader$VariantLoader.class:?]
    at net.minecraftforge.client.model.ModelLoaderRegistry.getModel(ModelLoaderRegistry.java:149) ~[ModelLoaderRegistry.class:?]
    … 21 more
    
    [13:36:38] [main/ERROR] [FML]: Exception loading blockstate for the variant md:log#axis=z,variant=wearth:
    java.lang.Exception: Could not load model definition for variant md:log
    at net.minecraftforge.client.model.ModelLoader.getModelBlockDefinition(ModelLoader.java:267) ~[ModelLoader.class:?]
    at net.minecraft.client.renderer.block.model.ModelBakery.loadBlock(ModelBakery.java:121) ~[ModelBakery.class:?]
    at net.minecraftforge.client.model.ModelLoader.loadBlocks(ModelLoader.java:222) ~[ModelLoader.class:?]
    at net.minecraftforge.client.model.ModelLoader.setupModelRegistry(ModelLoader.java:160) ~[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_151]
    at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) ~[?:1.8.0_151]
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) ~[?:1.8.0_151]
    at java.lang.reflect.Method.invoke(Unknown Source) ~[?:1.8.0_151]
    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_151]
    at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) ~[?:1.8.0_151]
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) ~[?:1.8.0_151]
    at java.lang.reflect.Method.invoke(Unknown Source) ~[?:1.8.0_151]
    at net.minecraftforge.gradle.GradleStartCommon.launch(GradleStartCommon.java:97) [start/:?]
    at GradleStart.main(GradleStart.java:26) [start/:?]
    Caused by: java.lang.RuntimeException: Encountered an exception when loading model definition of 'md:log' from: 'md:blockstates/log.json' in resourcepack: 'FMLFileResourcePack:Multi-Developped Mod'
    at net.minecraft.client.renderer.block.model.ModelBakery.loadModelBlockDefinition(ModelBakery.java:246) ~[ModelBakery.class:?]
    at net.minecraft.client.renderer.block.model.ModelBakery.loadMultipartMBD(ModelBakery.java:223) ~[ModelBakery.class:?]
    at net.minecraft.client.renderer.block.model.ModelBakery.getModelBlockDefinition(ModelBakery.java:208) ~[ModelBakery.class:?]
    at net.minecraftforge.client.model.ModelLoader.getModelBlockDefinition(ModelLoader.java:263) ~[ModelLoader.class:?]
    … 20 more
    Caused by: com.google.gson.JsonSyntaxException: Missing model, expected to find a string
    at net.minecraft.util.JsonUtils.getString(JsonUtils.java:111) ~[JsonUtils.class:?]
    at net.minecraft.client.renderer.block.model.Variant$Deserializer.getStringModel(Variant.java:130) ~[Variant$Deserializer.class:?]
    at net.minecraft.client.renderer.block.model.Variant$Deserializer.deserialize(Variant.java:93) ~[Variant$Deserializer.class:?]
    at net.minecraft.client.renderer.block.model.Variant$Deserializer.deserialize(Variant.java:87) ~[Variant$Deserializer.class:?]
    at com.google.gson.internal.bind.TreeTypeAdapter.read(TreeTypeAdapter.java:69) ~[TreeTypeAdapter.class:?]
    at com.google.gson.Gson.fromJson(Gson.java:887) ~[Gson.class:?]
    at com.google.gson.Gson.fromJson(Gson.java:952) ~[Gson.class:?]
    at com.google.gson.internal.bind.TreeTypeAdapter$GsonContextImpl.deserialize(TreeTypeAdapter.java:162) ~[TreeTypeAdapter$GsonContextImpl.class:?]
    at net.minecraft.client.renderer.block.model.VariantList$Deserializer.deserialize(VariantList.java:74) ~[VariantList$Deserializer.class:?]
    at net.minecraft.client.renderer.block.model.VariantList$Deserializer.deserialize(VariantList.java:51) ~[VariantList$Deserializer.class:?]
    at com.google.gson.internal.bind.TreeTypeAdapter.read(TreeTypeAdapter.java:69) ~[TreeTypeAdapter.class:?]
    at com.google.gson.Gson.fromJson(Gson.java:887) ~[Gson.class:?]
    at com.google.gson.Gson.fromJson(Gson.java:952) ~[Gson.class:?]
    at com.google.gson.internal.bind.TreeTypeAdapter$GsonContextImpl.deserialize(TreeTypeAdapter.java:162) ~[TreeTypeAdapter$GsonContextImpl.class:?]
    at net.minecraft.client.renderer.block.model.ModelBlockDefinition$Deserializer.parseMapVariants(ModelBlockDefinition.java:169) ~[ModelBlockDefinition$Deserializer.class:?]
    at net.minecraft.client.renderer.block.model.ModelBlockDefinition$Deserializer.deserialize(ModelBlockDefinition.java:146) ~[ModelBlockDefinition$Deserializer.class:?]
    at net.minecraft.client.renderer.block.model.ModelBlockDefinition$Deserializer.deserialize(ModelBlockDefinition.java:140) ~[ModelBlockDefinition$Deserializer.class:?]
    at com.google.gson.internal.bind.TreeTypeAdapter.read(TreeTypeAdapter.java:69) ~[TreeTypeAdapter.class:?]
    at com.google.gson.Gson.fromJson(Gson.java:887) ~[Gson.class:?]
    at com.google.gson.Gson.fromJson(Gson.java:825) ~[Gson.class:?]
    at net.minecraftforge.client.model.BlockStateLoader.load(BlockStateLoader.java:108) ~[BlockStateLoader.class:?]
    at net.minecraft.client.renderer.block.model.ModelBlockDefinition.parseFromReader(ModelBlockDefinition.java:42) ~[ModelBlockDefinition.class:?]
    at net.minecraft.client.renderer.block.model.ModelBakery.loadModelBlockDefinition(ModelBakery.java:242) ~[ModelBakery.class:?]
    at net.minecraft.client.renderer.block.model.ModelBakery.loadMultipartMBD(ModelBakery.java:223) ~[ModelBakery.class:?]
    at net.minecraft.client.renderer.block.model.ModelBakery.getModelBlockDefinition(ModelBakery.java:208) ~[ModelBakery.class:?]
    at net.minecraftforge.client.model.ModelLoader.getModelBlockDefinition(ModelLoader.java:263) ~[ModelLoader.class:?]
    … 20 more
    
    [13:36:38] [main/ERROR] [FML]: Exception loading model for variant md:log#axis=y,variant=wwater for blockstate "md:log[axis=y,variant=wwater]"
    net.minecraftforge.client.model.ModelLoaderRegistry$LoaderException: Exception loading model md:log#axis=y,variant=wwater with loader VariantLoader.INSTANCE, skipping
    at net.minecraftforge.client.model.ModelLoaderRegistry.getModel(ModelLoaderRegistry.java:153) ~[ModelLoaderRegistry.class:?]
    at net.minecraftforge.client.model.ModelLoader.registerVariant(ModelLoader.java:234) ~[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:222) ~[ModelLoader.class:?]
    at net.minecraftforge.client.model.ModelLoader.setupModelRegistry(ModelLoader.java:160) ~[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_151]
    at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) ~[?:1.8.0_151]
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) ~[?:1.8.0_151]
    at java.lang.reflect.Method.invoke(Unknown Source) ~[?:1.8.0_151]
    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_151]
    at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) ~[?:1.8.0_151]
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) ~[?:1.8.0_151]
    at java.lang.reflect.Method.invoke(Unknown Source) ~[?:1.8.0_151]
    at net.minecraftforge.gradle.GradleStartCommon.launch(GradleStartCommon.java:97) [start/:?]
    at GradleStart.main(GradleStart.java:26) [start/:?]
    Caused by: net.minecraft.client.renderer.block.model.ModelBlockDefinition$MissingVariantException
    at net.minecraft.client.renderer.block.model.ModelBlockDefinition.getVariant(ModelBlockDefinition.java:83) ~[ModelBlockDefinition.class:?]
    at net.minecraftforge.client.model.ModelLoader$VariantLoader.loadModel(ModelLoader.java:1173) ~[ModelLoader$VariantLoader.class:?]
    at net.minecraftforge.client.model.ModelLoaderRegistry.getModel(ModelLoaderRegistry.java:149) ~[ModelLoaderRegistry.class:?]
    … 21 more
    
    [13:36:38] [main/ERROR] [FML]: Exception loading model for variant md:log#axis=x,variant=wbreak for blockstate "md:log[axis=x,variant=wbreak]"
    net.minecraftforge.client.model.ModelLoaderRegistry$LoaderException: Exception loading model md:log#axis=x,variant=wbreak with loader VariantLoader.INSTANCE, skipping
    at net.minecraftforge.client.model.ModelLoaderRegistry.getModel(ModelLoaderRegistry.java:153) ~[ModelLoaderRegistry.class:?]
    at net.minecraftforge.client.model.ModelLoader.registerVariant(ModelLoader.java:234) ~[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:222) ~[ModelLoader.class:?]
    at net.minecraftforge.client.model.ModelLoader.setupModelRegistry(ModelLoader.java:160) ~[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_151]
    at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) ~[?:1.8.0_151]
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) ~[?:1.8.0_151]
    at java.lang.reflect.Method.invoke(Unknown Source) ~[?:1.8.0_151]
    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_151]
    at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) ~[?:1.8.0_151]
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) ~[?:1.8.0_151]
    at java.lang.reflect.Method.invoke(Unknown Source) ~[?:1.8.0_151]
    at net.minecraftforge.gradle.GradleStartCommon.launch(GradleStartCommon.java:97) [start/:?]
    at GradleStart.main(GradleStart.java:26) [start/:?]
    Caused by: net.minecraft.client.renderer.block.model.ModelBlockDefinition$MissingVariantException
    at net.minecraft.client.renderer.block.model.ModelBlockDefinition.getVariant(ModelBlockDefinition.java:83) ~[ModelBlockDefinition.class:?]
    at net.minecraftforge.client.model.ModelLoader$VariantLoader.loadModel(ModelLoader.java:1173) ~[ModelLoader$VariantLoader.class:?]
    at net.minecraftforge.client.model.ModelLoaderRegistry.getModel(ModelLoaderRegistry.java:149) ~[ModelLoaderRegistry.class:?]
    … 21 more
    
    [13:36:38] [main/ERROR] [FML]: Exception loading model for variant md:log#axis=none,variant=wair for blockstate "md:log[axis=none,variant=wair]"
    net.minecraftforge.client.model.ModelLoaderRegistry$LoaderException: Exception loading model md:log#axis=none,variant=wair with loader VariantLoader.INSTANCE, skipping
    at net.minecraftforge.client.model.ModelLoaderRegistry.getModel(ModelLoaderRegistry.java:153) ~[ModelLoaderRegistry.class:?]
    at net.minecraftforge.client.model.ModelLoader.registerVariant(ModelLoader.java:234) ~[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:222) ~[ModelLoader.class:?]
    at net.minecraftforge.client.model.ModelLoader.setupModelRegistry(ModelLoader.java:160) ~[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_151]
    at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) ~[?:1.8.0_151]
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) ~[?:1.8.0_151]
    at java.lang.reflect.Method.invoke(Unknown Source) ~[?:1.8.0_151]
    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_151]
    at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) ~[?:1.8.0_151]
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) ~[?:1.8.0_151]
    at java.lang.reflect.Method.invoke(Unknown Source) ~[?:1.8.0_151]
    at net.minecraftforge.gradle.GradleStartCommon.launch(GradleStartCommon.java:97) [start/:?]
    at GradleStart.main(GradleStart.java:26) [start/:?]
    Caused by: net.minecraft.client.renderer.block.model.ModelBlockDefinition$MissingVariantException
    at net.minecraft.client.renderer.block.model.ModelBlockDefinition.getVariant(ModelBlockDefinition.java:83) ~[ModelBlockDefinition.class:?]
    at net.minecraftforge.client.model.ModelLoader$VariantLoader.loadModel(ModelLoader.java:1173) ~[ModelLoader$VariantLoader.class:?]
    at net.minecraftforge.client.model.ModelLoaderRegistry.getModel(ModelLoaderRegistry.java:149) ~[ModelLoaderRegistry.class:?]
    … 21 more
    
    [13:36:38] [main/FATAL] [FML]: Suppressed additional 24 model loading errors for domain md
    
    (j'ai espacé pour que ça soit mieux lisible)
    

    Je met pas tous les fichiers que je mentionne dans le blockstate, ça servirait à rien puisque c'est les mêmes codes que pour les models ci-dessus.

    A savoir: j'ai cherché sur Google, j'ai regardé le tuto pour créer des metadata disponible sur ce site, j'ai essayé de nommer les blockstates par le nom des variants, j'ai aussi tenté de prendre le code du bois normal de Minecraft, j'ai même mis les resources de base de Minecraft.

    Si j'ai oublié de dire un truc qui pourrais vous aider à m'aider dites-le moi 🙂

    EDIT: j'ai oublié de dire que j'ai essayé de mettre les variants dans l'ordre alphabétique dans le fichier de blockstate, et j'ai aussi essayé de mettre log, log_metadonné1 etc dans les blockstate


  • Administrateurs

    Normal, ton dossier blockstates n'est pas au bon endroit, ça devrait être : assets/md/blockstates



  • @'Superloup10':

    Normal, ton dossier blockstates n'est pas au bon endroit, ça devrait être : assets/md/blockstates

    Ah si c'est juste que j'ai fais une erreur dans mon post:

    Il est bien dans assets/md/blockstates

    Désolé de l'erreur je modifie mon post pour corriger


  • Administrateurs

    Il me semble que le bon format est le suivant :
    "axis=x,variant=wbreak": {
    "model": "md:log",
    "x": 90,
    "y": 90
    },

    Et non avoir un sous objet json par propriété du blockstate.



  • @'robin4002':

    Il me semble que le bon format est le suivant :
    "axis=x,variant=wbreak": {
                   "model": "md:log",
                   "x": 90,
                   "y": 90
               },

    Et non avoir un sous objet json par propriété du blockstate.

    https://jsonlint.com/ ce site me dit que j'ai une erreur de parsing sur cette ligne: "axis=x,variant=wbreak", si je test sur minecraft il me mettra une erreur ou bien ça marchera ?


  • Administrateurs

    Si tu as copier le morceau que j'ai envoyé sur jsonlint c'est normal qu'il dit que c'est invalide.
    Un json complet pour un blockstate avec 2 propriété ressemble plutôt à cela :

    {
    "variants": {
    "delay=1,facing=south,locked=false": { "model": "repeater_on_1tick" },
    "delay=1,facing=west,locked=false": { "model": "repeater_on_1tick", "y": 90 },
    "delay=1,facing=north,locked=false": { "model": "repeater_on_1tick", "y": 180 },
    "delay=1,facing=east,locked=false": { "model": "repeater_on_1tick", "y": 270 },
    "delay=2,facing=south,locked=false": { "model": "repeater_on_2tick" },
    "delay=2,facing=west,locked=false": { "model": "repeater_on_2tick", "y": 90 },
    "delay=2,facing=north,locked=false": { "model": "repeater_on_2tick", "y": 180 },
    "delay=2,facing=east,locked=false": { "model": "repeater_on_2tick", "y": 270 },
    "delay=3,facing=south,locked=false": { "model": "repeater_on_3tick" },
    "delay=3,facing=west,locked=false": { "model": "repeater_on_3tick", "y": 90 },
    "delay=3,facing=north,locked=false": { "model": "repeater_on_3tick", "y": 180 },
    "delay=3,facing=east,locked=false": { "model": "repeater_on_3tick", "y": 270 },
    "delay=4,facing=south,locked=false": { "model": "repeater_on_4tick" },
    "delay=4,facing=west,locked=false": { "model": "repeater_on_4tick", "y": 90 },
    "delay=4,facing=north,locked=false": { "model": "repeater_on_4tick", "y": 180 },
    "delay=4,facing=east,locked=false": { "model": "repeater_on_4tick", "y": 270 },
    "delay=1,facing=south,locked=true": { "model": "repeater_on_locked_1tick" },
    "delay=1,facing=west,locked=true": { "model": "repeater_on_locked_1tick", "y": 90 },
    "delay=1,facing=north,locked=true": { "model": "repeater_on_locked_1tick", "y": 180 },
    "delay=1,facing=east,locked=true": { "model": "repeater_on_locked_1tick", "y": 270 },
    "delay=2,facing=south,locked=true": { "model": "repeater_on_locked_2tick" },
    "delay=2,facing=west,locked=true": { "model": "repeater_on_locked_2tick", "y": 90 },
    "delay=2,facing=north,locked=true": { "model": "repeater_on_locked_2tick", "y": 180 },
    "delay=2,facing=east,locked=true": { "model": "repeater_on_locked_2tick", "y": 270 },
    "delay=3,facing=south,locked=true": { "model": "repeater_on_locked_3tick" },
    "delay=3,facing=west,locked=true": { "model": "repeater_on_locked_3tick", "y": 90 },
    "delay=3,facing=north,locked=true": { "model": "repeater_on_locked_3tick", "y": 180 },
    "delay=3,facing=east,locked=true": { "model": "repeater_on_locked_3tick", "y": 270 },
    "delay=4,facing=south,locked=true": { "model": "repeater_on_locked_4tick" },
    "delay=4,facing=west,locked=true": { "model": "repeater_on_locked_4tick", "y": 90 },
    "delay=4,facing=north,locked=true": { "model": "repeater_on_locked_4tick", "y": 180 },
    "delay=4,facing=east,locked=true": { "model": "repeater_on_locked_4tick", "y": 270 }
    }
    }
    


  • Du coup ça donnerais quelque chose comme ceci dans mon cas  ?

    {
    "variants": {
    "variant=wair, axis=x": { "model": "md:log", "x": 90, "y": 90},
    "variant=wair, axis=y": { "model": "md:log" },
    "variant=wair, axis=z": { "model": "md:log", "x": 90 },
    "variant=wair, axis=none": { "model" : "md:logb" },
    
    "variant=wwater, axis=x": { "model": "md:log_m1", "x": 90, "y": 90},
    "variant=wwater, axis=y": { "model": "md:log_m1" },
    "variant=wwater, axis=z": { "model": "md:log_m1", "x": 90 },
    "variant=wwater, axis=none": { "model" : "md:log_m1b" },
    
    "variant=wfire, axis=x": { "model": "md:log_m2", "x": 90, "y": 90},
    "variant=wfire, axis=y": { "model": "md:log_m2" },
    "variant=wfire, axis=z": { "model": "md:log_m2", "x": 90 },
    "variant=wfire, axis=none": { "model" : "md:log_m2b" },
    
    "variant=wearth, axis=x": { "model": "md:log_m3", "x": 90, "y": 90},
    "variant=wearth, axis=y": { "model": "md:log_m3" },
    "variant=wearth, axis=z": { "model": "md:log_m3", "x": 90 },
    "variant=wearth, axis=none": { "model" : "md:log_m3b" },
    
    "variant=wice, axis=x": { "model": "md:log_m4", "x": 90, "y": 90},
    "variant=wice, axis=y": { "model": "md:log_m4" },
    "variant=wice, axis=z": { "model": "md:log_m4", "x": 90 },
    "variant=wice, axis=none": { "model" : "md:log_m4b" },
    
    "variant=wlava, axis=x": { "model": "md:log_m5", "x": 90, "y": 90},
    "variant=wlava, axis=y": { "model": "md:log_m5" },
    "variant=wlava, axis=z": { "model": "md:log_m5", "x": 90 },
    "variant=wlava, axis=none": { "model" : "md:log_m5b" },
    
    "variant=wbreak, axis=x": { "model": "md:log_m6", "x": 90, "y": 90},
    "variant=wbreak, axis=y": { "model": "md:log_m6" },
    "variant=wbreak, axis=z": { "model": "md:log_m6", "x": 90 },
    "variant=wbreak, axis=none": { "model" : "md:log_m6b" }
    }
    }
    
    

  • Administrateurs

    Oui mais sans l'espace entre la virgule et axis.



  • @'robin4002':

    Oui mais sans l'espace entre la virgule et axis.

    [16:03:42] [main/ERROR] [FML]: Exception loading model for variant md:log#axis=z,variant=wearth for blockstate "md:log[axis=z,variant=wearth]"
    net.minecraftforge.client.model.ModelLoaderRegistry$LoaderException: Exception loading model md:log#axis=z,variant=wearth with loader VariantLoader.INSTANCE, skipping
    at net.minecraftforge.client.model.ModelLoaderRegistry.getModel(ModelLoaderRegistry.java:153) ~[ModelLoaderRegistry.class:?]
    at net.minecraftforge.client.model.ModelLoader.registerVariant(ModelLoader.java:234) ~[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:222) ~[ModelLoader.class:?]
    at net.minecraftforge.client.model.ModelLoader.setupModelRegistry(ModelLoader.java:160) ~[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_151]
    at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) ~[?:1.8.0_151]
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) ~[?:1.8.0_151]
    at java.lang.reflect.Method.invoke(Unknown Source) ~[?:1.8.0_151]
    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_151]
    at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) ~[?:1.8.0_151]
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) ~[?:1.8.0_151]
    at java.lang.reflect.Method.invoke(Unknown Source) ~[?:1.8.0_151]
    at net.minecraftforge.gradle.GradleStartCommon.launch(GradleStartCommon.java:97) [start/:?]
    at GradleStart.main(GradleStart.java:26) [start/:?]
    Caused by: net.minecraft.client.renderer.block.model.ModelBlockDefinition$MissingVariantException
    at net.minecraft.client.renderer.block.model.ModelBlockDefinition.getVariant(ModelBlockDefinition.java:83) ~[ModelBlockDefinition.class:?]
    at net.minecraftforge.client.model.ModelLoader$VariantLoader.loadModel(ModelLoader.java:1173) ~[ModelLoader$VariantLoader.class:?]
    at net.minecraftforge.client.model.ModelLoaderRegistry.getModel(ModelLoaderRegistry.java:149) ~[ModelLoaderRegistry.class:?]
    … 21 more
    
    [16:03:42] [main/ERROR] [FML]: Exception loading model for variant md:log#axis=y,variant=wwater for blockstate "md:log[axis=y,variant=wwater]"
    net.minecraftforge.client.model.ModelLoaderRegistry$LoaderException: Exception loading model md:log#axis=y,variant=wwater with loader VariantLoader.INSTANCE, skipping
    at net.minecraftforge.client.model.ModelLoaderRegistry.getModel(ModelLoaderRegistry.java:153) ~[ModelLoaderRegistry.class:?]
    at net.minecraftforge.client.model.ModelLoader.registerVariant(ModelLoader.java:234) ~[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:222) ~[ModelLoader.class:?]
    at net.minecraftforge.client.model.ModelLoader.setupModelRegistry(ModelLoader.java:160) ~[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_151]
    at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) ~[?:1.8.0_151]
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) ~[?:1.8.0_151]
    at java.lang.reflect.Method.invoke(Unknown Source) ~[?:1.8.0_151]
    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_151]
    at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) ~[?:1.8.0_151]
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) ~[?:1.8.0_151]
    at java.lang.reflect.Method.invoke(Unknown Source) ~[?:1.8.0_151]
    at net.minecraftforge.gradle.GradleStartCommon.launch(GradleStartCommon.java:97) [start/:?]
    at GradleStart.main(GradleStart.java:26) [start/:?]
    Caused by: net.minecraft.client.renderer.block.model.ModelBlockDefinition$MissingVariantException
    at net.minecraft.client.renderer.block.model.ModelBlockDefinition.getVariant(ModelBlockDefinition.java:83) ~[ModelBlockDefinition.class:?]
    at net.minecraftforge.client.model.ModelLoader$VariantLoader.loadModel(ModelLoader.java:1173) ~[ModelLoader$VariantLoader.class:?]
    at net.minecraftforge.client.model.ModelLoaderRegistry.getModel(ModelLoaderRegistry.java:149) ~[ModelLoaderRegistry.class:?]
    … 21 more
    
    [16:03:42] [main/ERROR] [FML]: Exception loading model for variant md:log#axis=x,variant=wbreak for blockstate "md:log[axis=x,variant=wbreak]"
    net.minecraftforge.client.model.ModelLoaderRegistry$LoaderException: Exception loading model md:log#axis=x,variant=wbreak with loader VariantLoader.INSTANCE, skipping
    at net.minecraftforge.client.model.ModelLoaderRegistry.getModel(ModelLoaderRegistry.java:153) ~[ModelLoaderRegistry.class:?]
    at net.minecraftforge.client.model.ModelLoader.registerVariant(ModelLoader.java:234) ~[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:222) ~[ModelLoader.class:?]
    at net.minecraftforge.client.model.ModelLoader.setupModelRegistry(ModelLoader.java:160) ~[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_151]
    at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) ~[?:1.8.0_151]
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) ~[?:1.8.0_151]
    at java.lang.reflect.Method.invoke(Unknown Source) ~[?:1.8.0_151]
    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_151]
    at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) ~[?:1.8.0_151]
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) ~[?:1.8.0_151]
    at java.lang.reflect.Method.invoke(Unknown Source) ~[?:1.8.0_151]
    at net.minecraftforge.gradle.GradleStartCommon.launch(GradleStartCommon.java:97) [start/:?]
    at GradleStart.main(GradleStart.java:26) [start/:?]
    Caused by: net.minecraft.client.renderer.block.model.ModelBlockDefinition$MissingVariantException
    at net.minecraft.client.renderer.block.model.ModelBlockDefinition.getVariant(ModelBlockDefinition.java:83) ~[ModelBlockDefinition.class:?]
    at net.minecraftforge.client.model.ModelLoader$VariantLoader.loadModel(ModelLoader.java:1173) ~[ModelLoader$VariantLoader.class:?]
    at net.minecraftforge.client.model.ModelLoaderRegistry.getModel(ModelLoaderRegistry.java:149) ~[ModelLoaderRegistry.class:?]
    … 21 more
    
    [16:03:42] [main/ERROR] [FML]: Exception loading model for variant md:log#axis=none,variant=wair for blockstate "md:log[axis=none,variant=wair]"
    net.minecraftforge.client.model.ModelLoaderRegistry$LoaderException: Exception loading model md:log#axis=none,variant=wair with loader VariantLoader.INSTANCE, skipping
    at net.minecraftforge.client.model.ModelLoaderRegistry.getModel(ModelLoaderRegistry.java:153) ~[ModelLoaderRegistry.class:?]
    at net.minecraftforge.client.model.ModelLoader.registerVariant(ModelLoader.java:234) ~[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:222) ~[ModelLoader.class:?]
    at net.minecraftforge.client.model.ModelLoader.setupModelRegistry(ModelLoader.java:160) ~[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_151]
    at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) ~[?:1.8.0_151]
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) ~[?:1.8.0_151]
    at java.lang.reflect.Method.invoke(Unknown Source) ~[?:1.8.0_151]
    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_151]
    at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) ~[?:1.8.0_151]
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) ~[?:1.8.0_151]
    at java.lang.reflect.Method.invoke(Unknown Source) ~[?:1.8.0_151]
    at net.minecraftforge.gradle.GradleStartCommon.launch(GradleStartCommon.java:97) [start/:?]
    at GradleStart.main(GradleStart.java:26) [start/:?]
    Caused by: net.minecraft.client.renderer.block.model.ModelBlockDefinition$MissingVariantException
    at net.minecraft.client.renderer.block.model.ModelBlockDefinition.getVariant(ModelBlockDefinition.java:83) ~[ModelBlockDefinition.class:?]
    at net.minecraftforge.client.model.ModelLoader$VariantLoader.loadModel(ModelLoader.java:1173) ~[ModelLoader$VariantLoader.class:?]
    at net.minecraftforge.client.model.ModelLoaderRegistry.getModel(ModelLoaderRegistry.java:149) ~[ModelLoaderRegistry.class:?]
    … 21 more
    

    J'ai enlever les espaces mais je n'ai toujours pas les textures

    {
    "variants": {
    "variant=wair,axis=x": { "model": "md:log", "x": 90, "y": 90},
    "variant=wair,axis=y": { "model": "md:log" },
    "variant=wair,axis=z": { "model": "md:log", "x": 90 },
    "variant=wair,axis=none": { "model" : "md:logb" },
    
    "variant=wwater,axis=x": { "model": "md:log_m1", "x": 90, "y": 90},
    "variant=wwater,axis=y": { "model": "md:log_m1" },
    "variant=wwater,axis=z": { "model": "md:log_m1", "x": 90 },
    "variant=wwater,axis=none": { "model" : "md:log_m1b" },
    
    "variant=wfire,axis=x": { "model": "md:log_m2", "x": 90, "y": 90},
    "variant=wfire,axis=y": { "model": "md:log_m2" },
    "variant=wfire,axis=z": { "model": "md:log_m2", "x": 90 },
    "variant=wfire,axis=none": { "model" : "md:log_m2b" },
    
    "variant=wearth,axis=x": { "model": "md:log_m3", "x": 90, "y": 90},
    "variant=wearth,axis=y": { "model": "md:log_m3" },
    "variant=wearth,axis=z": { "model": "md:log_m3", "x": 90 },
    "variant=wearth,axis=none": { "model" : "md:log_m3b" },
    
    "variant=wice,axis=x": { "model": "md:log_m4", "x": 90, "y": 90},
    "variant=wice,axis=y": { "model": "md:log_m4" },
    "variant=wice,axis=z": { "model": "md:log_m4", "x": 90 },
    "variant=wice,axis=none": { "model" : "md:log_m4b" },
    
    "variant=wlava,axis=x": { "model": "md:log_m5", "x": 90, "y": 90},
    "variant=wlava,axis=y": { "model": "md:log_m5" },
    "variant=wlava,axis=z": { "model": "md:log_m5", "x": 90 },
    "variant=wlava,axis=none": { "model" : "md:log_m5b" },
    
    "variant=wbreak,axis=x": { "model": "md:log_m6", "x": 90, "y": 90},
    "variant=wbreak,axis=y": { "model": "md:log_m6" },
    "variant=wbreak,axis=z": { "model": "md:log_m6", "x": 90 },
    "variant=wbreak,axis=none": { "model" : "md:log_m6b" }
    }
    }
    

    J'ai résolu le problème, je vais l'expliquer au cas ou quelqu'un d'autre serait dans le même cas:

    C'était bien la solution, il fallait juste inverser variant et axis, donc ça donne pour une ligne:

    "axis=x,variant=wair": { "model": "md:log", "x": 90, "y": 90},

    Voila 🙂 merci de votre aide!


  • Administrateurs

    Ah oui, j'y avais pensé quand j'ai posté ce message
    @'robin4002':

    "axis=x,variant=wbreak": {
                   "model": "md:log",
                   "x": 90,
                   "y": 90
               },

    Mais j'avais plus fait attention lors de ma dernière réponse.

    Je ne sais plus si les propriétés sont dans l'ordre alphabétique ou dans l'ordre dans laquelle ils sont mis dans la fonction createBlockState, mais en tout cas vu tes logs axis devait être en premier.