Jump to content

Hi everyone, tell me what needs to be done so that the json 3D model works.


GreatWolf

Recommended Posts

Here is my model:

{
   "credit": "Made with Blockbench",
   "parent": "item/generated",
   "textures": {
      "0": "gwmod:items/1",
      "1": "gwmod:items/2",
      "2": "gwmod:items/3",
      "3": "gwmod:items/4",
      "4": "gwmod:items/5",
      "7": "gwmod:items/6",
      "8": "gwmod:items/7",
      "9": "gwmod:items/8",
      "11": "gwmod:items/10",
      "12": "gwmod:items/11",
      "particle": "gwmod:items/1"
   },
   "elements": [
      {
         "from": [4, 0.5, 3.75],
         "to": [12.5, 1, 12.25],
         "faces": {
            "north": {"uv": [0, 0, 8.5, 0.5], "texture": "#4"},
            "east": {"uv": [0, 0, 8.5, 0.5], "texture": "#4"},
            "south": {"uv": [0, 0, 8.5, 0.5], "texture": "#4"},
            "west": {"uv": [0, 0, 8.5, 0.5], "texture": "#4"},
            "up": {"uv": [0, 0, 8.5, 8.5], "texture": "#missing"},
            "down": {"uv": [0, 0, 8.5, 8.5], "texture": "#4"}
         }
      },
      {
         "from": [4, 1, 3.75],
         "to": [12.5, 15, 12.25],
         "rotation": {"angle": 0, "axis": "y", "origin": [8, 9, 8]},
         "faces": {
            "north": {"uv": [0, 0, 0.5, 15.25], "texture": "#11"},
            "east": {"uv": [0, 0, 0.5, 15.25], "texture": "#11"},
            "south": {"uv": [0, 0, 0.5, 15.25], "texture": "#11"},
            "west": {"uv": [0, 0, 0.5, 15.25], "texture": "#11"},
            "up": {"uv": [0, 0, 16, 16], "texture": "#12"},
            "down": {"uv": [0, 0, 0.5, 15.25], "texture": "#missing"}
         }
      },
      {
         "from": [3.75, 0.75, 4],
         "to": [4, 1, 12],
         "faces": {
            "north": {"uv": [0, 0, 0.25, 0.25], "texture": "#4"},
            "east": {"uv": [0, 0, 8, 0.25], "texture": "#missing"},
            "south": {"uv": [0, 0, 0.25, 0.25], "texture": "#4"},
            "west": {"uv": [0, 0, 8, 0.25], "texture": "#4"},
            "up": {"uv": [0, 0, 0.25, 8], "texture": "#missing"},
            "down": {"uv": [0, 0, 0.25, 8], "texture": "#4"}
         }
      },
      {
         "from": [3.5, 1, 4],
         "to": [4, 15.5, 12],
         "rotation": {"angle": 0, "axis": "y", "origin": [8, 9, 8]},
         "faces": {
            "north": {"uv": [0, 0, 0.75, 14], "texture": "#8"},
            "east": {"uv": [0, 0, 8, 15], "texture": "#12"},
            "south": {"uv": [0, 0, 0.5, 14.5], "texture": "#2"},
            "west": {"uv": [0, 0, 7.5, 14], "texture": "#8"},
            "up": {"uv": [0, 0, 1, 8], "texture": "#12"},
            "down": {"uv": [0, 0, 1, 8], "texture": "#4"}
         }
      },
      {
         "from": [3.25, 1.25, 4.25],
         "to": [3.5, 15.25, 11.75],
         "rotation": {"angle": 0, "axis": "y", "origin": [8, 9, 8]},
         "faces": {
            "north": {"uv": [0, 0, 1, 14], "texture": "#0"},
            "east": {"uv": [0, 0, 8, 15], "texture": "#missing"},
            "south": {"uv": [0, 0, 1, 16], "texture": "#1"},
            "west": {"uv": [0, 0, 7.5, 14], "texture": "#0"},
            "up": {"uv": [0, 0, 1, 8], "texture": "#3"},
            "down": {"uv": [0, 0, 1, 8], "texture": "#4"}
         }
      },
      {
         "from": [4.25, 0.75, 12.25],
         "to": [12.25, 1, 12.5],
         "faces": {
            "north": {"uv": [0, 0, 8, 0.25], "texture": "#missing"},
            "east": {"uv": [0, 0, 0.25, 0.25], "texture": "#4"},
            "south": {"uv": [0, 0, 8, 0.25], "texture": "#4"},
            "west": {"uv": [0, 0, 0.25, 0.25], "texture": "#4"},
            "up": {"uv": [0, 0, 8, 0.25], "texture": "#missing"},
            "down": {"uv": [0, 0, 8, 0.25], "texture": "#4"}
         }
      },
      {
         "from": [4.25, 1, 12.25],
         "to": [12.25, 15.5, 12.75],
         "rotation": {"angle": 0, "axis": "y", "origin": [8, 9, 8]},
         "faces": {
            "north": {"uv": [0, 0, 8, 14.5], "texture": "#12"},
            "east": {"uv": [0, 0, 0.5, 14.5], "texture": "#2"},
            "south": {"uv": [0, 0, 7.5, 14], "texture": "#8"},
            "west": {"uv": [0, 0, 0.5, 14], "texture": "#8"},
            "up": {"uv": [0, 0, 8, 0.5], "texture": "#12"},
            "down": {"uv": [0, 0, 8, 0.5], "texture": "#4"}
         }
      },
      {
         "from": [4.5, 1.25, 12.75],
         "to": [12, 15.25, 13],
         "rotation": {"angle": 0, "axis": "y", "origin": [8, 9, 8]},
         "faces": {
            "north": {"uv": [0, 0, 7.5, 14], "texture": "#missing"},
            "east": {"uv": [0, 0, 0.25, 15.75], "texture": "#1"},
            "south": {"uv": [0, 0, 7.5, 14], "texture": "#0"},
            "west": {"uv": [0, 0, 0.25, 14], "texture": "#0"},
            "up": {"uv": [0, 0, 7.5, 0.25], "texture": "#3"},
            "down": {"uv": [0, 0, 7.5, 0.25], "texture": "#4"}
         }
      },
      {
         "from": [12.5, 0.75, 4],
         "to": [12.75, 1, 12],
         "faces": {
            "north": {"uv": [0, 0, 0.25, 0.25], "texture": "#4"},
            "east": {"uv": [0, 0, 8, 0.25], "texture": "#4"},
            "south": {"uv": [0, 0, 0.25, 0.25], "texture": "#4"},
            "west": {"uv": [0, 0, 8, 0.25], "texture": "#missing"},
            "up": {"uv": [0, 0, 0.25, 8], "texture": "#missing"},
            "down": {"uv": [0, 0, 0.25, 8], "texture": "#4"}
         }
      },
      {
         "from": [12.5, 1, 4],
         "to": [13, 15.5, 12],
         "rotation": {"angle": 0, "axis": "y", "origin": [8, 9, 8]},
         "faces": {
            "north": {"uv": [0, 0, 0, 14.5], "texture": "#2"},
            "east": {"uv": [0, 0, 7.5, 14], "texture": "#8"},
            "south": {"uv": [0, 0, 0.75, 14], "texture": "#8"},
            "west": {"uv": [0, 0, 8, 14.5], "texture": "#12"},
            "up": {"uv": [0, 0, 0.5, 8], "texture": "#12"},
            "down": {"uv": [0, 0, 0.5, 8], "texture": "#4"}
         }
      },
      {
         "from": [13, 1.25, 4.25],
         "to": [13.25, 15.25, 11.75],
         "rotation": {"angle": 0, "axis": "y", "origin": [8, 9, 8]},
         "faces": {
            "north": {"uv": [0, 0, 0.25, 15.75], "texture": "#1"},
            "east": {"uv": [0, 0, 7.5, 14], "texture": "#0"},
            "south": {"uv": [0, 0, 0.25, 14], "texture": "#0"},
            "west": {"uv": [0, 0, 7.5, 14], "texture": "#missing"},
            "up": {"uv": [0, 0, 0.25, 7.5], "texture": "#3"},
            "down": {"uv": [0, 0, 0.25, 7.5], "texture": "#4"}
         }
      },
      {
         "from": [4.25, 0.75, 3.5],
         "to": [12.25, 1, 3.75],
         "faces": {
            "north": {"uv": [0, 0, 8, 0.25], "texture": "#4"},
            "east": {"uv": [0, 0, 0.25, 0.25], "texture": "#4"},
            "south": {"uv": [0, 0, 8, 0.25], "texture": "#missing"},
            "west": {"uv": [0, 0, 0.25, 0.25], "texture": "#4"},
            "up": {"uv": [0, 0, 8, 0.25], "texture": "#missing"},
            "down": {"uv": [0, 0, 8, 0.25], "texture": "#4"}
         }
      },
      {
         "from": [4.25, 1, 3.25],
         "to": [12.25, 15.5, 3.75],
         "rotation": {"angle": 0, "axis": "y", "origin": [8, 9, 8]},
         "faces": {
            "north": {"uv": [0, 0, 7.5, 14], "texture": "#8"},
            "east": {"uv": [0, 0, 0.5, 14], "texture": "#8"},
            "south": {"uv": [0, 0, 8, 14.5], "texture": "#12"},
            "west": {"uv": [0, 0, 0.5, 14.5], "texture": "#2"},
            "up": {"uv": [0, 0, 8, 0.5], "texture": "#12"},
            "down": {"uv": [0, 0, 8, 0.5], "texture": "#4"}
         }
      },
      {
         "from": [4.5, 1.25, 3],
         "to": [12, 15.25, 3.25],
         "rotation": {"angle": 0, "axis": "y", "origin": [8, 9, 8]},
         "faces": {
            "north": {"uv": [0, 0, 7.5, 14], "texture": "#0"},
            "east": {"uv": [0, 0, 0.25, 14], "texture": "#0"},
            "south": {"uv": [0, 0, 7.5, 14], "texture": "#missing"},
            "west": {"uv": [0, 0, 0.25, 15.75], "texture": "#1"},
            "up": {"uv": [0, 0, 7.5, 0.25], "texture": "#3"},
            "down": {"uv": [0, 0, 7.5, 0.25], "texture": "#4"}
         }
      },
      {
         "from": [4, 15, 12],
         "to": [4.25, 15.5, 12.25],
         "faces": {
            "north": {"uv": [0, 0, 0.25, 0.5], "texture": "#12"},
            "east": {"uv": [0, 0, 0.25, 0.5], "texture": "#12"},
            "south": {"uv": [0, 0, 0.25, 0.5], "texture": "#9"},
            "west": {"uv": [0, 0, 0.25, 0.5], "texture": "#9"},
            "up": {"uv": [0, 0, 0.25, 0.25], "texture": "#12"},
            "down": {"uv": [0, 0, 0.25, 0.25], "texture": "#missing"}
         }
      },
      {
         "from": [4, 15, 3.75],
         "to": [4.25, 15.5, 4],
         "faces": {
            "north": {"uv": [0, 0, 0.25, 0.5], "texture": "#9"},
            "east": {"uv": [0, 0, 0.25, 0.5], "texture": "#12"},
            "south": {"uv": [0, 0, 0.25, 0.5], "texture": "#12"},
            "west": {"uv": [0, 0, 0.25, 0.5], "texture": "#9"},
            "up": {"uv": [0, 0, 0.25, 0.25], "texture": "#12"},
            "down": {"uv": [0, 0, 0.25, 0.25], "texture": "#missing"}
         }
      },
      {
         "from": [12.25, 15, 3.75],
         "to": [12.5, 15.5, 4],
         "faces": {
            "north": {"uv": [0, 0, 0.25, 0.5], "texture": "#9"},
            "east": {"uv": [0, 0, 0.25, 0.5], "texture": "#9"},
            "south": {"uv": [0, 0, 0.25, 0.5], "texture": "#12"},
            "west": {"uv": [0, 0, 0.25, 0.5], "texture": "#12"},
            "up": {"uv": [0, 0, 0.25, 0.25], "texture": "#12"},
            "down": {"uv": [0, 0, 0.25, 0.25], "texture": "#missing"}
         }
      },
      {
         "from": [12.25, 15, 12],
         "to": [12.5, 15.5, 12.25],
         "faces": {
            "north": {"uv": [0, 0, 0.25, 0.5], "texture": "#12"},
            "east": {"uv": [0, 0, 0.25, 0.5], "texture": "#9"},
            "south": {"uv": [0, 0, 0.25, 0.5], "texture": "#9"},
            "west": {"uv": [0, 0, 0.25, 0.5], "texture": "#12"},
            "up": {"uv": [0, 0, 0.25, 0.25], "texture": "#12"},
            "down": {"uv": [0, 0, 0.25, 0.25], "texture": "#missing"}
         }
      },
      {
         "from": [5, 15, 5.75],
         "to": [6, 15.25, 7.25],
         "faces": {
            "north": {"uv": [0, 0, 1, 0.25], "texture": "#7"},
            "east": {"uv": [0, 0, 1.5, 0.25], "texture": "#7"},
            "south": {"uv": [0, 0, 1, 0.25], "texture": "#7"},
            "west": {"uv": [0, 0, 1.5, 0.25], "texture": "#7"},
            "up": {"uv": [0, 0, 1, 1.5], "texture": "#7"},
            "down": {"uv": [0, 0, 1, 1.5], "texture": "#missing"}
         }
      }
   ],
   "display": {
      "thirdperson_righthand": {
         "translation": [-0.25, 0, 0.75],
         "scale": [0.28, 0.28, 0.28]
      },
      "thirdperson_lefthand": {
         "translation": [0.25, 0, 0.75],
         "scale": [0.28, 0.28, 0.28]
      },
      "firstperson_righthand": {
         "scale": [0.28, 0.28, 0.28]
      },
      "firstperson_lefthand": {
         "scale": [0.28, 0.28, 0.28]
      },
      "ground": {
         "rotation": [90, 0, 0],
         "scale": [0.28, 0.28, 0.28]
      },
      "gui": {
         "scale": [0.8, 0.8, 0.8]
      },
      "head": {
         "translation": [0, 8.5, 0],
         "scale": [0.28, 0.28, 0.28]
      }
   }
}

and i have error

[13:54:09] [Client thread/ERROR] [FML]: Exception loading model for variant gwmod:pepsi#inventory for item "gwmod:pepsi", normal location exception: 
net.minecraftforge.client.model.ModelLoaderRegistry$LoaderException: Exception loading model gwmod:item/pepsi with loader VanillaLoader.INSTANCE, skipping
    at net.minecraftforge.client.model.ModelLoaderRegistry.getModel(ModelLoaderRegistry.java:161) ~[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_201]
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) ~[?:1.8.0_201]
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[?:1.8.0_201]
    at java.lang.reflect.Method.invoke(Method.java:498) ~[?:1.8.0_201]
    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_201]
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) ~[?:1.8.0_201]
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[?:1.8.0_201]
    at java.lang.reflect.Method.invoke(Method.java:498) ~[?:1.8.0_201]
    at net.minecraftforge.gradle.GradleStartCommon.launch(GradleStartCommon.java:97) [start/:?]
    at GradleStart.main(GradleStart.java:25) [start/:?]
Caused by: java.io.FileNotFoundException: gwmod:models/item/pepsi.json
    at net.minecraft.client.resources.FallbackResourceManager.getResource(FallbackResourceManager.java:69) ~[FallbackResourceManager.class:?]
    at net.minecraft.client.resources.SimpleReloadableResourceManager.getResource(SimpleReloadableResourceManager.java:65) ~[SimpleReloadableResourceManager.class:?]
    at net.minecraft.client.renderer.block.model.ModelBakery.loadModel(ModelBakery.java:334) ~[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:?]
    ... 20 more
[13:54:09] [Client thread/ERROR] [FML]: Exception loading model for variant gwmod:pepsi#inventory for item "gwmod:pepsi", blockstate location exception: 
net.minecraftforge.client.model.ModelLoaderRegistry$LoaderException: Exception loading model gwmod:pepsi#inventory with loader VariantLoader.INSTANCE, skipping
    at net.minecraftforge.client.model.ModelLoaderRegistry.getModel(ModelLoaderRegistry.java:161) ~[ModelLoaderRegistry.class:?]
    at net.minecraftforge.client.model.ModelLoader.loadItemModels(ModelLoader.java:296) ~[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_201]
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) ~[?:1.8.0_201]
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[?:1.8.0_201]
    at java.lang.reflect.Method.invoke(Method.java:498) ~[?:1.8.0_201]
    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_201]
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) ~[?:1.8.0_201]
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[?:1.8.0_201]
    at java.lang.reflect.Method.invoke(Method.java:498) ~[?:1.8.0_201]
    at net.minecraftforge.gradle.GradleStartCommon.launch(GradleStartCommon.java:97) [start/:?]
    at GradleStart.main(GradleStart.java:25) [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:1175) ~[ModelLoader$VariantLoader.class:?]
    at net.minecraftforge.client.model.ModelLoaderRegistry.getModel(ModelLoaderRegistry.java:157) ~[ModelLoaderRegistry.class:?]
    ... 20 more

Link to comment
Share on other sites

1 hour ago, GreatWolf said:

Caused by: java.io.FileNotFoundException: gwmod:models/item/pepsi.json

Probably by fixing this.

Apparently I'm a complete and utter jerk and come to this forum just like to make fun of people, be confrontational, and make your personal life miserable.  If you think this is the case, JUST REPORT ME.  Otherwise you're just going to get reported when you reply to my posts and point it out, because odds are, I was trying to be nice.

 

Exception: If you do not understand Java, I WILL NOT HELP YOU and your thread will get locked.

 

DO NOT PM ME WITH PROBLEMS. No help will be given.

Link to comment
Share on other sites

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.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Announcements



×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.