-
Posts
6 -
Joined
-
Last visited
Posts posted by Artemix
-
-
Here's a screenshot from the file explorer/terminal, with full path.
Here's a `tree` view starting from the src/main folder:
Quote> $ tree [±master ●●]
.
├── java
│ └── xyz
│ └── artemix
│ └── mc
│ └── metrics
│ ├── ClientProxy.java
│ ├── CommonProxy.java
│ ├── Constants.java
│ ├── init
│ │ └── ItemHandler.java
│ ├── items
│ │ └── ItemTapeMeter.java
│ ├── MetricsMod.java
│ └── MetricsModTab.java
└── resources
├── assets
│ └── metricsmod
│ ├── blockstates
│ ├── lang
│ │ └── en_US.lang
│ ├── models
│ │ ├── block
│ │ └── item
│ │ └── tape_meter.json
│ └── textures
│ ├── block
│ └── items
│ ├── tape_meter.png
│ └── tape_meter.xcf
└── mcmod.info18 directories, 12 files
-
The error log is here.
It says that the path "metricsmod:models/item/tape_meter.json" can't be found, which I don't understand, as that's pretty much the only way to load it. That, or I missed something.
The json model file stored under assets/metricsmod/models/item/tape_meter.json contains
Quote{
"parent": "item/generated",
"textures": {
"layer0": "metricsmod:items/tape_meter"
}
} -
1 hour ago, Leviathan143 said:
I believe item/block model registration needs to be done during preinit, you are doing it during init.
I forgot about that, I changed that, but now I get this item rendering, which I don't understand.
While fixing, I also changed the registerRender class to use the registryName of the item instead of a fixed name (which was for testing).
I now get this item rendering:
-
I think giving a bit more informations about your mod, including a small description, would be a way better advertisement than just throwing random links, without even using valid tags.
-
Hello there,
I've been restarting to learn mod development, and after diving into the horrendous forge documentation, I started searching for tutorials and mods hosted on git hosters, to try to create a simple mod.
The thing is: I have an Item, a .json model stored under my {modid}/models/item/ and a .png texture file, under {modid}/textures/items/
When loading the mod, I get this error.
This is my folder structure: folder structure.txt
And my sourcecode (including gradle files) is available here
Note that due to some weird bug, I can't paste anything on this website. That includes sourcecode, so I must use external code hosting solutions.
Item, can't find model.json at runtime
in Modder Support
Posted
Any thoughts ?