• S'inscrire
    • Se connecter
    • Recherche
    • Récent
    • Mots-clés
    • Populaire
    • Utilisateurs
    • Groupes

    Résolu Probleme de rendu de bloc.

    1.12.x
    1.12.2
    2
    3
    156
    Charger plus de messages
    • Du plus ancien au plus récent
    • Du plus récent au plus ancien
    • Les plus votés
    Répondre
    • Répondre à l'aide d'un nouveau sujet
    Se connecter pour répondre
    Ce sujet a été supprimé. Seuls les utilisateurs avec les droits d'administration peuvent le voir.
    • S
      Steakmans dernière édition par

      Bonjour,
      J’ai un problème de rendue. Je n’arrive pas a afficher le modèle de fusée sur le bloc.
      Ma classe de bloc:

      package fr.ww3;
      
      import fr.ww3.blocks.FuseeBlock;
      import net.minecraft.block.Block;
      import net.minecraft.block.material.Material;
      
      public class ModBlocks {
      	
      	public static final Block FUSEE = new FuseeBlock(Material.IRON); 
      	
          public static void setBlockName(Block block, String name)    {
          	block.setRegistryName(ModWW3.MODID, name).setUnlocalizedName(name);
          }
      
      }
      

      La class du bloc:

      package fr.ww3.blocks;
      
      import fr.ww3.ModBlocks;
      import fr.ww3.ModWW3;
      import net.minecraft.block.Block;
      import net.minecraft.block.material.Material;
      
      public class FuseeBlock extends Block {
      	
      	public static final String NAME = "fusee"; 
      
      	public FuseeBlock(Material materialIn) {
      		super(materialIn);
      	    ModBlocks.setBlockName(this, NAME);
      
      	    setResistance(5.0F);
      
      	    setHardness(3.0F);
      
      	    setCreativeTab(ModWW3.WW3TAB);
      	}
      
      }
      

      Le model:

      {
          "__comment": "Model generated using MrCrayfish's Model Creator (https://mrcrayfish.com/tools?id=mc)",
          "textures": {
              "orange": "ww3:blocks/orange",
              "gris": "ww3:blocks/gris",
              "rougesVertical": "ww3:blocks/rougesVertical",
              "rouges": "ww3:blocks/rouges",
              "rougesmodif": "ww3:blocks/rougesmodif"
          },
          "display": {
              "gui": {
                  "rotation": [ 30, 45, 0 ],
                  "translation": [ 0, 0, 0 ],
                  "scale": [ 0.625, 0.625, 0.625 ]
              },
              "ground": {
                  "rotation": [ 0, 0, 0 ],
                  "translation": [ 0, 3, 0 ],
                  "scale": [ 0.25, 0.25, 0.25 ]
              },
              "fixed": {
                  "rotation": [ 0, 180, 0 ],
                  "translation": [ 0, 0, 0 ],
                  "scale": [ 1, 1, 1 ]
              },
              "head": {
                  "rotation": [ 0, 180, 0 ],
                  "translation": [ 0, 0, 0 ],
                  "scale": [ 1, 1, 1 ]
              },
              "firstperson_righthand": {
                  "rotation": [ 0, 315, 0 ],
                  "translation": [ 0, 2.5, 0 ],
                  "scale": [ 0.4, 0.4, 0.4 ]
              },
              "thirdperson_righthand": {
                  "rotation": [ 75, 315, 0 ],
                  "translation": [ 0, 2.5, 0 ],
                  "scale": [ 0.375, 0.375, 0.375 ]
              }
          },
          "elements": [
              {
                  "name": "wawll W",
                  "from": [ 1, 2, 1 ], 
                  "to": [ 1, 28, 15 ], 
                  "faces": {
                      "east": { "texture": "#gris", "uv": [ 0, 0, 14, 16 ] },
                      "west": { "texture": "#gris", "uv": [ 0, 0, 14, 16 ] }
                  }
              },
              {
                  "name": "ground",
                  "from": [ 1, 2, 1 ], 
                  "to": [ 15, 2, 15 ], 
                  "faces": {
                      "up": { "texture": "#gris", "uv": [ 0, 0, 14, 14 ] },
                      "down": { "texture": "#gris", "uv": [ 0, 0, 14, 14 ] }
                  }
              },
              {
                  "name": "wawll N 1",
                  "from": [ 1, 2, 1 ], 
                  "to": [ 15, 16, 1 ], 
                  "faces": {
                      "north": { "texture": "#gris", "uv": [ 0, 0, 14, 14 ] },
                      "south": { "texture": "#gris", "uv": [ 0, 0, 14, 14 ] }
                  }
              },
              {
                  "name": "wawll E",
                  "from": [ 15, 2, 1 ], 
                  "to": [ 15, 28, 15 ], 
                  "faces": {
                      "east": { "texture": "#gris", "uv": [ 0, 0, 14, 16 ] },
                      "west": { "texture": "#gris", "uv": [ 0, 0, 14, 16 ] }
                  }
              },
              {
                  "name": "wawll S",
                  "from": [ 1, 2, 15 ], 
                  "to": [ 15, 28, 15 ], 
                  "faces": {
                      "north": { "texture": "#gris", "uv": [ 0, 0, 14, 16 ] },
                      "south": { "texture": "#gris", "uv": [ 0, 0, 14, 16 ] }
                  }
              },
              {
                  "name": "wawll N 2",
                  "from": [ 1, 16, 1 ], 
                  "to": [ 4, 24, 1 ], 
                  "faces": {
                      "north": { "texture": "#gris", "uv": [ 0, 0, 3, 8 ] },
                      "south": { "texture": "#gris", "uv": [ 0, 0, 3, 8 ] }
                  }
              },
              {
                  "name": "wawll N 3",
                  "from": [ 12, 16, 1 ], 
                  "to": [ 15, 24, 1 ], 
                  "faces": {
                      "north": { "texture": "#gris", "uv": [ 0, 0, 3, 8 ] },
                      "south": { "texture": "#gris", "uv": [ 0, 0, 3, 8 ] }
                  }
              },
              {
                  "name": "wawll N 4",
                  "from": [ 1, 24, 1 ], 
                  "to": [ 15, 28, 1 ], 
                  "faces": {
                      "north": { "texture": "#gris", "uv": [ 0, 0, 14, 4 ] },
                      "south": { "texture": "#gris", "uv": [ 0, 0, 14, 4 ] }
                  }
              },
              {
                  "name": "roof",
                  "from": [ 1, 28, 1 ], 
                  "to": [ 15, 28, 15 ], 
                  "faces": {
                      "up": { "texture": "#gris", "uv": [ 0, 0, 14, 14 ] },
                      "down": { "texture": "#gris", "uv": [ 0, 0, 14, 14 ] }
                  }
              },
              {
                  "name": "pointe 1",
                  "from": [ 2, 28, 2 ], 
                  "to": [ 14, 29, 14 ], 
                  "faces": {
                      "north": { "texture": "#gris", "uv": [ 0, 0, 12, 1 ] },
                      "east": { "texture": "#gris", "uv": [ 0, 0, 12, 1 ] },
                      "south": { "texture": "#gris", "uv": [ 0, 0, 12, 1 ] },
                      "west": { "texture": "#gris", "uv": [ 0, 0, 12, 1 ] },
                      "up": { "texture": "#gris", "uv": [ 0, 0, 12, 12 ] }
                  }
              },
              {
                  "name": "pointe 2",
                  "from": [ 4, 29, 4 ], 
                  "to": [ 12, 30, 12 ], 
                  "faces": {
                      "north": { "texture": "#gris", "uv": [ 0, 0, 8, 1 ] },
                      "east": { "texture": "#gris", "uv": [ 0, 0, 8, 1 ] },
                      "south": { "texture": "#gris", "uv": [ 0, 0, 8, 1 ] },
                      "west": { "texture": "#gris", "uv": [ 0, 0, 8, 1 ] },
                      "up": { "texture": "#gris", "uv": [ 0, 0, 8, 8 ] }
                  }
              },
              {
                  "name": "pointe 3",
                  "from": [ 6, 30, 6 ], 
                  "to": [ 10, 31, 10 ], 
                  "faces": {
                      "north": { "texture": "#gris", "uv": [ 0, 0, 4, 1 ] },
                      "east": { "texture": "#gris", "uv": [ 0, 0, 4, 1 ] },
                      "south": { "texture": "#gris", "uv": [ 0, 0, 4, 1 ] },
                      "west": { "texture": "#gris", "uv": [ 0, 0, 4, 1 ] },
                      "up": { "texture": "#gris", "uv": [ 0, 0, 4, 4 ] }
                  }
              },
              {
                  "name": "pointe 4",
                  "from": [ 7.5, 31, 7.5 ], 
                  "to": [ 8.5, 36, 8.5 ], 
                  "faces": {
                      "north": { "texture": "#gris", "uv": [ 0, 0, 1, 5 ] },
                      "east": { "texture": "#gris", "uv": [ 0, 0, 1, 5 ] },
                      "south": { "texture": "#gris", "uv": [ 0, 0, 1, 5 ] },
                      "west": { "texture": "#gris", "uv": [ 0, 0, 1, 5 ] }
                  }
              },
              {
                  "name": "pointe 5",
                  "from": [ 7.5, 36, 7.5 ], 
                  "to": [ 8.5, 37, 8.5 ], 
                  "faces": {
                      "north": { "texture": "#orange", "uv": [ 0, 0, 1, 1 ] },
                      "east": { "texture": "#orange", "uv": [ 0, 0, 1, 1 ] },
                      "south": { "texture": "#orange", "uv": [ 0, 0, 1, 1 ] },
                      "west": { "texture": "#orange", "uv": [ 0, 0, 1, 1 ] },
                      "up": { "texture": "#orange", "uv": [ 0, 0, 1, 1 ] }
                  }
              },
              {
                  "name": "reactor 8",
                  "from": [ 5, 0, 4 ], 
                  "to": [ 11, 1, 5 ], 
                  "faces": {
                      "north": { "texture": "#rouges", "uv": [ 0, 11, 6, 12 ] },
                      "south": { "texture": "#rouges", "uv": [ 0, 11, 6, 12 ] },
                      "up": { "texture": "#rouges", "uv": [ 0, 11, 6, 12 ] },
                      "down": { "texture": "#rouges", "uv": [ 0, 11, 6, 12 ] }
                  }
              },
              {
                  "name": "reactor 2",
                  "from": [ 5, 1, 6 ], 
                  "to": [ 6, 2, 11 ], 
                  "faces": {
                      "east": { "texture": "#gris", "uv": [ 0, 0, 5, 1 ] },
                      "south": { "texture": "#gris", "uv": [ 0, 0, 1, 1 ] },
                      "west": { "texture": "#gris", "uv": [ 0, 0, 5, 1 ] },
                      "down": { "texture": "#gris", "uv": [ 0, 0, 1, 5 ] }
                  }
              },
              {
                  "name": "reactor 3",
                  "from": [ 6, 1, 10 ], 
                  "to": [ 11, 2, 11 ], 
                  "faces": {
                      "north": { "texture": "#gris", "uv": [ 0, 0, 5, 1 ] },
                      "east": { "texture": "#gris", "uv": [ 0, 0, 1, 1 ] },
                      "south": { "texture": "#gris", "uv": [ 0, 0, 6, 1 ] },
                      "down": { "texture": "#gris", "uv": [ 0, 0, 5, 1 ] }
                  }
              },
              {
                  "name": "reactor 4",
                  "from": [ 10, 1, 6 ], 
                  "to": [ 11, 2, 10 ], 
                  "faces": {
                      "east": { "texture": "#gris", "uv": [ 0, 0, 4, 1 ] },
                      "west": { "texture": "#gris", "uv": [ 0, 0, 4, 1 ] },
                      "down": { "texture": "#gris", "uv": [ 0, 0, 1, 4 ] }
                  }
              },
              {
                  "name": "reactor 5",
                  "from": [ 11, 0, 4 ], 
                  "to": [ 12, 1, 12 ], 
                  "faces": {
                      "north": { "texture": "#rouges", "uv": [ 0, 11, 1, 12 ] },
                      "east": { "texture": "#rouges", "uv": [ 0, 11, 8, 12 ] },
                      "south": { "texture": "#rouges", "uv": [ 0, 11, 1, 12 ] },
                      "west": { "texture": "#rouges", "uv": [ 0, 11, 8, 12 ] },
                      "up": { "texture": "#rougesVertical", "uv": [ 3, 5, 4, 13 ], "rotation": 90 },
                      "down": { "texture": "#rougesVertical", "uv": [ 3, 5, 4, 13 ] }
                  }
              },
              {
                  "name": "reactor 6",
                  "from": [ 4, 0, 11 ], 
                  "to": [ 11, 1, 12 ], 
                  "faces": {
                      "north": { "texture": "#rouges", "uv": [ 0, 11, 7, 12 ] },
                      "south": { "texture": "#rouges", "uv": [ 0, 11, 7, 12 ] },
                      "west": { "texture": "#rouges", "uv": [ 0, 11, 1, 12 ] },
                      "up": { "texture": "#rouges", "uv": [ 0, 11, 7, 12 ] },
                      "down": { "texture": "#rouges", "uv": [ 0, 11, 7, 12 ] }
                  }
              },
              {
                  "name": "reactor 7",
                  "from": [ 4, 0, 4 ], 
                  "to": [ 5, 1, 11 ], 
                  "faces": {
                      "north": { "texture": "#rouges", "uv": [ 0, 11, 1, 12 ] },
                      "east": { "texture": "#rouges", "uv": [ 0, 11, 7, 12 ] },
                      "west": { "texture": "#rouges", "uv": [ 0, 11, 7, 12 ] },
                      "up": { "texture": "#rougesVertical", "uv": [ 3, 5, 4, 12 ] },
                      "down": { "texture": "#rougesVertical", "uv": [ 3, 5, 4, 12 ] }
                  }
              },
              {
                  "name": "reactor 1",
                  "from": [ 5, 1, 5 ], 
                  "to": [ 11, 2, 6 ], 
                  "faces": {
                      "north": { "texture": "#gris", "uv": [ 0, 0, 6, 1 ] },
                      "east": { "texture": "#gris", "uv": [ 0, 0, 1, 1 ] },
                      "south": { "texture": "#gris", "uv": [ 0, 0, 6, 1 ] },
                      "west": { "texture": "#gris", "uv": [ 0, 0, 1, 1 ] },
                      "down": { "texture": "#gris", "uv": [ 0, 0, 6, 1 ] }
                  }
              },
              {
                  "name": "reactor9",
                  "from": [ 7.65, -3, 4 ], 
                  "to": [ 8.65, 0, 12 ], 
                  "rotation": { "origin": [ 8, 8, 8 ], "axis": "z", "angle": 22.5 },
                  "faces": {
                      "north": { "texture": "#rougesmodif", "uv": [ 0, 13.5, 1, 16 ], "rotation": 180 },
                      "east": { "texture": "#rougesVertical", "uv": [ 4, 4, 12, 7 ], "rotation": 90 },
                      "south": { "texture": "#rougesmodif", "uv": [ 0, 13.5, 1, 16 ], "rotation": 180 },
                      "west": { "texture": "#rougesVertical", "uv": [ 4, 4, 12, 7 ], "rotation": 90 },
                      "up": { "texture": "#rougesVertical", "uv": [ 11, 5, 12, 13 ] },
                      "down": { "texture": "#rougesVertical", "uv": [ 11, 5, 12, 13 ] }
                  }
              },
              {
                  "name": "reactor11",
                  "from": [ 4, -3, 7.65 ], 
                  "to": [ 12, 0, 8.65 ], 
                  "rotation": { "origin": [ 8, 8, 8 ], "axis": "x", "angle": -22.5 },
                  "faces": {
                      "north": { "texture": "#rougesVertical", "uv": [ 4, 4, 12, 7 ], "rotation": 90 },
                      "east": { "texture": "#rougesmodif", "uv": [ 0, 13.5, 1, 16 ], "rotation": 180 },
                      "south": { "texture": "#rougesVertical", "uv": [ 4, 4, 12, 7 ], "rotation": 90 },
                      "west": { "texture": "#rougesmodif", "uv": [ 0, 13.5, 1, 16 ], "rotation": 180 },
                      "up": { "texture": "#rouges", "uv": [ 0, 4, 8, 5 ] },
                      "down": { "texture": "#rouges", "uv": [ 0, 4, 8, 5 ] }
                  }
              },
              {
                  "name": "reactor10",
                  "from": [ 7.35, -3, 4 ], 
                  "to": [ 8.35, 0, 12 ], 
                  "rotation": { "origin": [ 8, 8, 8 ], "axis": "z", "angle": -22.5 },
                  "faces": {
                      "north": { "texture": "#rougesmodif", "uv": [ 0, 13.5, 1, 16 ], "rotation": 180 },
                      "east": { "texture": "#rougesVertical", "uv": [ 4, 4, 12, 7 ], "rotation": 90 },
                      "south": { "texture": "#rougesmodif", "uv": [ 0, 13.5, 1, 16 ], "rotation": 180 },
                      "west": { "texture": "#rougesVertical", "uv": [ 4, 4, 12, 7 ], "rotation": 90 },
                      "up": { "texture": "#rougesVertical", "uv": [ 11, 5, 12, 13 ] },
                      "down": { "texture": "#rougesVertical", "uv": [ 11, 5, 12, 13 ] }
                  }
              },
              {
                  "name": "reactor12",
                  "from": [ 4, -3, 7.35 ], 
                  "to": [ 12, 0, 8.35 ], 
                  "rotation": { "origin": [ 8, 8, 8 ], "axis": "x", "angle": 22.5 },
                  "faces": {
                      "north": { "texture": "#rougesVertical", "uv": [ 4, 4, 12, 7 ], "rotation": 90 },
                      "east": { "texture": "#rougesmodif", "uv": [ 0, 13.5, 1, 16 ], "rotation": 180 },
                      "south": { "texture": "#rougesVertical", "uv": [ 4, 4, 12, 7 ], "rotation": 90 },
                      "west": { "texture": "#rougesmodif", "uv": [ 0, 13.5, 1, 16 ], "rotation": 180 },
                      "up": { "texture": "#rouges", "uv": [ 0, 4, 8, 5 ] },
                      "down": { "texture": "#rouges", "uv": [ 0, 4, 8, 5 ] }
                  }
              }
          ]
      }
      

      Et l’erreur:

      Could not load vanilla model parent 'ww3:block/model_fusee' for 'net.minecraft.client.renderer.block.model.ModelBlock@29d14018'
      net.minecraftforge.client.model.ModelLoaderRegistry$LoaderException: Exception loading model ww3:block/model_fusee with loader VanillaLoader.INSTANCE, skipping
      	at net.minecraftforge.client.model.ModelLoaderRegistry.getModel(ModelLoaderRegistry.java:161) ~[ModelLoaderRegistry.class:?]
      	at net.minecraftforge.client.model.ModelLoaderRegistry.getModelOrLogError(ModelLoaderRegistry.java:211) [ModelLoaderRegistry.class:?]
      	at net.minecraftforge.client.model.ModelLoader$VanillaModelWrapper.getTextures(ModelLoader.java:387) [ModelLoader$VanillaModelWrapper.class:?]
      	at net.minecraftforge.client.model.ModelLoaderRegistry.getModel(ModelLoaderRegistry.java:171) [ModelLoaderRegistry.class:?]
      	at net.minecraftforge.client.model.ModelLoader$WeightedRandomModel.<init>(ModelLoader.java:658) [ModelLoader$WeightedRandomModel.class:?]
      	at net.minecraftforge.client.model.ModelLoader$VariantLoader.loadModel(ModelLoader.java:1176) [ModelLoader$VariantLoader.class:?]
      	at net.minecraftforge.client.model.ModelLoaderRegistry.getModel(ModelLoaderRegistry.java:157) [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:560) [Minecraft.class:?]
      	at net.minecraft.client.Minecraft.run(Minecraft.java:422) [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/:?]
      Caused by: com.google.gson.JsonParseException: 'to' specifier exceeds the allowed boundaries: Vector3f[8.5, 36.0, 8.5]
      	at net.minecraft.client.renderer.block.model.BlockPart$Deserializer.parsePositionTo(BlockPart.java:192) ~[BlockPart$Deserializer.class:?]
      	at net.minecraft.client.renderer.block.model.BlockPart$Deserializer.deserialize(BlockPart.java:77) ~[BlockPart$Deserializer.class:?]
      	at net.minecraft.client.renderer.block.model.BlockPart$Deserializer.deserialize(BlockPart.java:70) ~[BlockPart$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.ModelBlock$Deserializer.getModelElements(ModelBlock.java:315) ~[ModelBlock$Deserializer.class:?]
      	at net.minecraft.client.renderer.block.model.ModelBlock$Deserializer.deserialize(ModelBlock.java:248) ~[ModelBlock$Deserializer.class:?]
      	at net.minecraft.client.renderer.block.model.ModelBlock$Deserializer.deserialize(ModelBlock.java:242) ~[ModelBlock$Deserializer.class:?]
      	at com.google.gson.internal.bind.TreeTypeAdapter.read(TreeTypeAdapter.java:69) ~[TreeTypeAdapter.class:?]
      	at net.minecraft.util.JsonUtils.gsonDeserialize(JsonUtils.java:435) ~[JsonUtils.class:?]
      	at net.minecraft.client.renderer.block.model.ModelBlock.deserialize(ModelBlock.java:51) ~[ModelBlock.class:?]
      	at net.minecraft.client.renderer.block.model.ModelBakery.loadModel(ModelBakery.java:338) ~[ModelBakery.class:?]
      	at net.minecraftforge.client.model.ModelLoader.access$1400(ModelLoader.java:115) ~[ModelLoader.class:?]
      	at net.minecraftforge.client.model.ModelLoader$VanillaLoader.loadModel(ModelLoader.java:861) ~[ModelLoader$VanillaLoader.class:?]
      	at net.minecraftforge.client.model.ModelLoaderRegistry.getModel(ModelLoaderRegistry.java:157) ~[ModelLoaderRegistry.class:?]
      	... 27 more
      [14:32:51] [Client thread/ERROR] [FML]: Could not load vanilla model parent 'ww3:block/model_fusee' for 'net.minecraft.client.renderer.block.model.ModelBlock@15c5c99'
      net.minecraftforge.client.model.ModelLoaderRegistry$LoaderException: Exception loading model ww3:block/model_fusee with loader VanillaLoader.INSTANCE, skipping
      	at net.minecraftforge.client.model.ModelLoaderRegistry.getModel(ModelLoaderRegistry.java:161) ~[ModelLoaderRegistry.class:?]
      	at net.minecraftforge.client.model.ModelLoaderRegistry.getModelOrLogError(ModelLoaderRegistry.java:211) [ModelLoaderRegistry.class:?]
      	at net.minecraftforge.client.model.ModelLoader$VanillaModelWrapper.getTextures(ModelLoader.java:387) [ModelLoader$VanillaModelWrapper.class:?]
      	at net.minecraftforge.client.model.ModelLoaderRegistry.getModel(ModelLoaderRegistry.java:171) [ModelLoaderRegistry.class:?]
      	at net.minecraftforge.client.model.ModelLoader.loadItemModels(ModelLoader.java:302) [ModelLoader.class:?]
      	at net.minecraft.client.renderer.block.model.ModelBakery.loadVariantItemModels(ModelBakery.java:175) [ModelBakery.class:?]
      	at net.minecraftforge.client.model.ModelLoader.setupModelRegistry(ModelLoader.java:151) [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:560) [Minecraft.class:?]
      	at net.minecraft.client.Minecraft.run(Minecraft.java:422) [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/:?]
      Caused by: com.google.gson.JsonParseException: 'to' specifier exceeds the allowed boundaries: Vector3f[8.5, 36.0, 8.5]
      	at net.minecraft.client.renderer.block.model.BlockPart$Deserializer.parsePositionTo(BlockPart.java:192) ~[BlockPart$Deserializer.class:?]
      	at net.minecraft.client.renderer.block.model.BlockPart$Deserializer.deserialize(BlockPart.java:77) ~[BlockPart$Deserializer.class:?]
      	at net.minecraft.client.renderer.block.model.BlockPart$Deserializer.deserialize(BlockPart.java:70) ~[BlockPart$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.ModelBlock$Deserializer.getModelElements(ModelBlock.java:315) ~[ModelBlock$Deserializer.class:?]
      	at net.minecraft.client.renderer.block.model.ModelBlock$Deserializer.deserialize(ModelBlock.java:248) ~[ModelBlock$Deserializer.class:?]
      	at net.minecraft.client.renderer.block.model.ModelBlock$Deserializer.deserialize(ModelBlock.java:242) ~[ModelBlock$Deserializer.class:?]
      	at com.google.gson.internal.bind.TreeTypeAdapter.read(TreeTypeAdapter.java:69) ~[TreeTypeAdapter.class:?]
      	at net.minecraft.util.JsonUtils.gsonDeserialize(JsonUtils.java:435) ~[JsonUtils.class:?]
      	at net.minecraft.client.renderer.block.model.ModelBlock.deserialize(ModelBlock.java:51) ~[ModelBlock.class:?]
      	at net.minecraft.client.renderer.block.model.ModelBakery.loadModel(ModelBakery.java:338) ~[ModelBakery.class:?]
      	at net.minecraftforge.client.model.ModelLoader.access$1400(ModelLoader.java:115) ~[ModelLoader.class:?]
      	at net.minecraftforge.client.model.ModelLoader$VanillaLoader.loadModel(ModelLoader.java:861) ~[ModelLoader$VanillaLoader.class:?]
      	at net.minecraftforge.client.model.ModelLoaderRegistry.getModel(ModelLoaderRegistry.java:157) ~[ModelLoaderRegistry.class:?]
      	... 23 more
      
      1 réponse Dernière réponse Répondre Citer 0
      • robin4002
        robin4002 Moddeurs confirmés Rédacteurs Administrateurs dernière édition par

        Bonjour,

        Le problème est indiqué dans l’erreur :

        Caused by: com.google.gson.JsonParseException: ‘to’ specifier exceeds the allowed boundaries: Vector3f[8.5, 36.0, 8.5]

        Visiblement le modèle est trop grand, le morceau “pointe 4” a un to qui va trop loin.
        Le maximum est de 32 (code qui parse la valeur dans la classe BlockPart) :

                    private Vector3f parsePositionTo(JsonObject object)
                                    {
                                        Vector3f vector3f = this.parsePosition(object, "to");
                        
                                        if (vector3f.x >= -16.0F && vector3f.y >= -16.0F && vector3f.z >= -16.0F && vector3f.x <= 32.0F && vector3f.y <= 32.0F && vector3f.z <= 32.0F)
                                        {
                                            return vector3f;
                                        }
                                        else
                                        {
                                            throw new JsonParseException("'to' specifier exceeds the allowed boundaries: " + vector3f);
                                        }
                                    }
        
        1 réponse Dernière réponse Répondre Citer 0
        • robin4002
          robin4002 Moddeurs confirmés Rédacteurs Administrateurs dernière édition par

          Bonjour,

          Le problème est indiqué dans l’erreur :

          Caused by: com.google.gson.JsonParseException: ‘to’ specifier exceeds the allowed boundaries: Vector3f[8.5, 36.0, 8.5]

          Visiblement le modèle est trop grand, le morceau “pointe 4” a un to qui va trop loin.
          Le maximum est de 32 (code qui parse la valeur dans la classe BlockPart) :

                      private Vector3f parsePositionTo(JsonObject object)
                                      {
                                          Vector3f vector3f = this.parsePosition(object, "to");
                          
                                          if (vector3f.x >= -16.0F && vector3f.y >= -16.0F && vector3f.z >= -16.0F && vector3f.x <= 32.0F && vector3f.y <= 32.0F && vector3f.z <= 32.0F)
                                          {
                                              return vector3f;
                                          }
                                          else
                                          {
                                              throw new JsonParseException("'to' specifier exceeds the allowed boundaries: " + vector3f);
                                          }
                                      }
          
          1 réponse Dernière réponse Répondre Citer 0
          • S
            Steakmans dernière édition par

            Merci tout fonctionne maintenant.

            1 réponse Dernière réponse Répondre Citer 0
            • 1 / 1
            • Premier message
              Dernier message
            Design by Woryk
            Contact / Mentions Légales

            MINECRAFT FORGE FRANCE © 2018

            Powered by NodeBB