January 22Jan 22 I apologize in advance if the translation sounds unnatural, as I'm not very good at English.As a beginner, I managed to run runClient in my own MOD and display items in-game by watching videos posted on YouTube. However, the item images did not appear.Since there's no one in Japan who can help me, I humbly request your assistance.I thought checking the directories and image names within IDEA might solve it, but...I committed the src of my mod to Git. If anyone has time to take a look, I'd be very grateful.https://github.com/ZousanElephant/noob-mod
January 22Jan 22 It would appear your resources are not in the proper place, named incorrectly, or missing files.I would highly suggest setting up data generators, and not writing your json files by hand, as doing so eliminates these errors. There are examples of data generators on the internet, as well as the MinecraftForge github. Link to datagen docs: https://docs.minecraftforge.net/en/1.21.x/datagen/This page explains resource locations and where to place things if you insist on doing it manually: https://docs.minecraftforge.net/en/1.21.x/concepts/resources/#ResourceLocation
February 16Feb 16 こんにちは。1.21.4ごろから仕様が変更されて "assets/mod名/items" の中に "アイテム名.json" が必要になりました。assets/mod名 のディレクトリにitems ファイルを新しく作成し、それに以下の内容を入れます。assets/example_mod/items/example_item.json{ "model": { "type": "minecraft:model", "model": "example_mod:item/example_item" } }example_mod のところに自分のmodのIDを入れ example_item のところにアイテム名を記述します。"type": "minecraft:model" は何か特別な理由がない限りこれで大丈夫です。あとは従来のとおり(多分) models/item に以下の内容を書きます。assets/example_mod/models/item/example_item.json{ "parent": "minecraft:item/generated", "textures": { "layer0": "example_mod:item/example_item" } }何か間違っているかもしれないので、できなかったらまたご返信ください。
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.