1.15.2普通物品不显示材质,modid和注册名都是复制粘贴物品注册表里的

Oo0


版本信息
你使用的系统:<win10 64位>
你是用的JDK: <java version “1.8.0_211”
Java™ SE Runtime Environment (build 1.8.0_211-b12)
Java HotSpot™ 64-Bit Server VM (build 25.211-b12, mixed mode)>
你使用的IDE:IDEA
你使用的IDE版本:<IntelliJ IDEA Community Edition 2019.3.2 x64>
Forge版本: forge-1.15.2-31.2.0-mdk
Minecraft版本: <1.15.2>

mathematical_principles_of_nature_philosophy

出错图
<把图片直接拖拽上来>
错误情况简述
普通物品材质显示不出来,日志太长了后面

报错日志

[24八月2020 16:42:38.994] [main/INFO] [cpw.mods.modlauncher.Launcher/MODLAUNCHER]: ModLauncher running: args [--gameDir, ., --launchTarget, fmluserdevclient, --fml.mcpVersion, 20200515.085601, --fml.mcVersion, 1.15.2, --fml.forgeGroup, net.minecraftforge, --fml.forgeVersion, 31.2.0, --version, MOD_DEV, --assetIndex, 1.15, --assetsDir, C:\Users\Administrator\.gradle\caches\forge_gradle\assets, --username, Dev, --accessToken, ❄❄❄❄❄❄❄❄, --userProperties, {}]
[24八月2020 16:42:38.994] [main/INFO] [cpw.mods.modlauncher.Launcher/MODLAUNCHER]: ModLauncher 5.1.2+70+master.2845bb9 starting: java version 1.8.0_211 by Oracle Corporation
[24八月2020 16:42:39.853] [main/INFO] [net.minecraftforge.fml.loading.FixSSL/CORE]: Added Lets Encrypt root certificates as additional trust
[24八月2020 16:42:44.588] [main/INFO] [cpw.mods.modlauncher.LaunchServiceHandler/MODLAUNCHER]: Launching target 'fmluserdevclient' with arguments [--version, MOD_DEV, --gameDir, ., --assetsDir, C:\Users\Administrator\.gradle\caches\forge_gradle\assets, --assetIndex, 1.15, --username, Dev, --accessToken, ❄❄❄❄❄❄❄❄, --userProperties, {}]
[24八月2020 16:42:53.962] [Render thread/INFO] [net.minecraft.client.Minecraft/]: Setting user: Dev
[24八月2020 16:43:12.288] [Render thread/INFO] [net.minecraft.client.Minecraft/]: Backend library: LWJGL version 3.2.2 build 10
[24八月2020 16:43:15.271] [modloading-worker-0/INFO] [net.minecraftforge.common.ForgeMod/FORGEMOD]: Forge mod loading, version 31.2.0, for MC 1.15.2 with MCP 20200515.085601
[24八月2020 16:43:15.271] [modloading-worker-0/INFO] [net.minecraftforge.common.MinecraftForge/FORGE]: MinecraftForge v31.2.0 Initialized
[24八月2020 16:43:22.483] [Render thread/INFO] [com.mojang.text2speech.NarratorWindows/]: Narrator library for x64 successfully loaded
[24八月2020 16:43:22.810] [Render thread/INFO] [net.minecraft.resources.SimpleReloadableResourceManager/]: Reloading ResourceManager: Default, Mod Resources
[24八月2020 16:43:23.463] [Forge Version Check/INFO] [net.minecraftforge.fml.VersionChecker/]: [naturalscience] Starting version check at http://myurl.me/
[24八月2020 16:43:23.488] [Forge Version Check/WARN] [net.minecraftforge.fml.VersionChecker/]: Failed to process update information
java.net.UnknownHostException: myurl.me
	at java.net.AbstractPlainSocketImpl.connect(AbstractPlainSocketImpl.java:184) ~[?:1.8.0_211]
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:172) ~[?:1.8.0_211]
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:392) ~[?:1.8.0_211]
	at java.net.Socket.connect(Socket.java:589) ~[?:1.8.0_211]
	at java.net.Socket.connect(Socket.java:538) ~[?:1.8.0_211]
	at sun.net.NetworkClient.doConnect(NetworkClient.java:180) ~[?:1.8.0_211]
	at sun.net.www.http.HttpClient.openServer(HttpClient.java:463) ~[?:1.8.0_211]
	at sun.net.www.http.HttpClient.openServer(HttpClient.java:558) ~[?:1.8.0_211]
	at sun.net.www.http.HttpClient.<init>(HttpClient.java:242) ~[?:1.8.0_211]
	at sun.net.www.http.HttpClient.New(HttpClient.java:339) ~[?:1.8.0_211]
	at sun.net.www.http.HttpClient.New(HttpClient.java:357) ~[?:1.8.0_211]
	at sun.net.www.protocol.http.HttpURLConnection.getNewHttpClient(HttpURLConnection.java:1220) ~[?:1.8.0_211]
	at sun.net.www.protocol.http.HttpURLConnection.plainConnect0(HttpURLConnection.java:1156) ~[?:1.8.0_211]
	at sun.net.www.protocol.http.HttpURLConnection.plainConnect(HttpURLConnection.java:1050) ~[?:1.8.0_211]
	at sun.net.www.protocol.http.HttpURLConnection.connect(HttpURLConnection.java:984) ~[?:1.8.0_211]
	at sun.net.www.protocol.http.HttpURLConnection.getInputStream0(HttpURLConnection.java:1564) ~[?:1.8.0_211]
	at sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:1492) ~[?:1.8.0_211]
	at java.net.HttpURLConnection.getResponseCode(HttpURLConnection.java:480) ~[?:1.8.0_211]
	at net.minecraftforge.fml.VersionChecker$1.openUrlStream(VersionChecker.java:173) ~[?:?]
	at net.minecraftforge.fml.VersionChecker$1.process(VersionChecker.java:206) ~[?:?]
	at java.lang.Iterable.forEach(Iterable.java:75) [?:1.8.0_211]
	at net.minecraftforge.fml.VersionChecker$1.run(VersionChecker.java:157) [?:?]
[24八月2020 16:43:23.490] [Forge Version Check/INFO] [net.minecraftforge.fml.VersionChecker/]: [forge] Starting version check at https://files.minecraftforge.net/maven/net/minecraftforge/forge/promotions_slim.json
[24八月2020 16:43:27.553] [Forge Version Check/INFO] [net.minecraftforge.fml.VersionChecker/]: [forge] Found status: UP_TO_DATE Current: 31.2.0 Target: null
[24八月2020 16:43:35.151] [Server-Worker-1/WARN] [net.minecraft.client.renderer.model.ModelBakery/]: Unable to load model: 'naturalscience:mathematical_principles_of_nature_philosophy#inventory' referenced from: naturalscience:mathematical_principles_of_nature_philosophy#inventory: java.io.FileNotFoundException: naturalscience:models/item/mathematical_principles_of_nature_philosophy.json
[24八月2020 16:43:54.087] [Render thread/INFO] [net.minecraft.client.audio.SoundSystem/]: OpenAL initialized.
[24八月2020 16:43:54.088] [Render thread/INFO] [net.minecraft.client.audio.SoundEngine/SOUNDS]: Sound engine started
[24八月2020 16:43:54.514] [Render thread/INFO] [net.minecraft.client.renderer.texture.AtlasTexture/]: Created: 1024x512x4 minecraft:textures/atlas/blocks.png-atlas
[24八月2020 16:43:54.640] [Render thread/INFO] [net.minecraft.client.renderer.texture.AtlasTexture/]: Created: 128x128x4 minecraft:textures/atlas/signs.png-atlas
[24八月2020 16:43:54.641] [Render thread/INFO] [net.minecraft.client.renderer.texture.AtlasTexture/]: Created: 512x512x4 minecraft:textures/atlas/banner_patterns.png-atlas
[24八月2020 16:43:54.649] [Render thread/INFO] [net.minecraft.client.renderer.texture.AtlasTexture/]: Created: 512x512x4 minecraft:textures/atlas/shield_patterns.png-atlas
[24八月2020 16:43:54.661] [Render thread/INFO] [net.minecraft.client.renderer.texture.AtlasTexture/]: Created: 256x256x4 minecraft:textures/atlas/chest.png-atlas
[24八月2020 16:43:54.662] [Render thread/INFO] [net.minecraft.client.renderer.texture.AtlasTexture/]: Created: 512x256x4 minecraft:textures/atlas/beds.png-atlas
[24八月2020 16:43:54.671] [Render thread/INFO] [net.minecraft.client.renderer.texture.AtlasTexture/]: Created: 512x256x4 minecraft:textures/atlas/shulker_boxes.png-atlas
[24八月2020 16:43:55.676] [Render thread/INFO] [net.minecraft.client.renderer.texture.AtlasTexture/]: Created: 256x256x0 minecraft:textures/atlas/particles.png-atlas
[24八月2020 16:43:55.684] [Render thread/INFO] [net.minecraft.client.renderer.texture.AtlasTexture/]: Created: 256x256x0 minecraft:textures/atlas/paintings.png-atlas
[24八月2020 16:43:55.684] [Render thread/INFO] [net.minecraft.client.renderer.texture.AtlasTexture/]: Created: 128x128x0 minecraft:textures/atlas/mob_effects.png-atlas
[24八月2020 16:43:58.155] [Realms Notification Availability checker #1/INFO] [com.mojang.realmsclient.client.RealmsClient/]: Could not authorize you against Realms server: Invalid session id
[24八月2020 16:44:04.362] [Render thread/WARN] [net.minecraft.command.Commands/]: Ambiguity between arguments [teleport, destination] and [teleport, targets] with inputs: [Player, 0123, @e, dd12be42-52a9-4a91-a8a1-11c01849e498]
[24八月2020 16:44:04.363] [Render thread/WARN] [net.minecraft.command.Commands/]: Ambiguity between arguments [teleport, location] and [teleport, destination] with inputs: [0.1 -0.5 .9, 0 0 0]
[24八月2020 16:44:04.364] [Render thread/WARN] [net.minecraft.command.Commands/]: Ambiguity between arguments [teleport, location] and [teleport, targets] with inputs: [0.1 -0.5 .9, 0 0 0]
[24八月2020 16:44:04.365] [Render thread/WARN] [net.minecraft.command.Commands/]: Ambiguity between arguments [teleport, targets] and [teleport, destination] with inputs: [Player, 0123, dd12be42-52a9-4a91-a8a1-11c01849e498]
[24八月2020 16:44:04.367] [Render thread/WARN] [net.minecraft.command.Commands/]: Ambiguity between arguments [teleport, targets, location] and [teleport, targets, destination] with inputs: [0.1 -0.5 .9, 0 0 0]
[24八月2020 16:44:04.601] [Server thread/INFO] [net.minecraft.server.integrated.IntegratedServer/]: Starting integrated minecraft server version 1.15.2
[24八月2020 16:44:04.601] [Server thread/INFO] [net.minecraft.server.integrated.IntegratedServer/]: Generating keypair
[24八月2020 16:44:04.939] [Server thread/INFO] [net.minecraftforge.registries.GameData/REGISTRIES]: Injecting existing registry data into this SERVER instance
[24八月2020 16:44:05.266] [Server thread/INFO] [net.minecraft.resources.SimpleReloadableResourceManager/]: Reloading ResourceManager: Default, main, forge-1.15.2-31.2.0_mapped_snapshot_20200514-1.15.1-recomp.jar
[24八月2020 16:44:10.379] [Server thread/INFO] [net.minecraft.item.crafting.RecipeManager/]: Loaded 6 recipes
[24八月2020 16:44:12.963] [Server thread/INFO] [net.minecraft.advancements.AdvancementList/]: Loaded 825 advancements
[24八月2020 16:44:13.936] [Server thread/INFO] [net.minecraft.server.MinecraftServer/]: Preparing start region for dimension minecraft:overworld
[24八月2020 16:44:15.635] [Render thread/INFO] [net.minecraft.world.chunk.listener.LoggingChunkStatusListener/]: Preparing spawn area: 0%
[24八月2020 16:44:15.644] [Render thread/INFO] [net.minecraft.world.chunk.listener.LoggingChunkStatusListener/]: Preparing spawn area: 0%
[24八月2020 16:44:15.644] [Render thread/INFO] [net.minecraft.world.chunk.listener.LoggingChunkStatusListener/]: Preparing spawn area: 0%
[24八月2020 16:44:15.644] [Render thread/INFO] [net.minecraft.world.chunk.listener.LoggingChunkStatusListener/]: Preparing spawn area: 0%
[24八月2020 16:44:16.100] [Render thread/INFO] [net.minecraft.world.chunk.listener.LoggingChunkStatusListener/]: Preparing spawn area: 0%
[24八月2020 16:44:16.760] [Render thread/INFO] [net.minecraft.world.chunk.listener.LoggingChunkStatusListener/]: Preparing spawn area: 0%
[24八月2020 16:44:19.362] [Render thread/INFO] [net.minecraft.world.chunk.listener.LoggingChunkStatusListener/]: Preparing spawn area: 46%
[24八月2020 16:44:19.362] [Render thread/INFO] [net.minecraft.world.chunk.listener.LoggingChunkStatusListener/]: Preparing spawn area: 46%
[24八月2020 16:44:19.461] [Render thread/INFO] [net.minecraft.world.chunk.listener.LoggingChunkStatusListener/]: Preparing spawn area: 46%
[24八月2020 16:44:19.461] [Render thread/INFO] [net.minecraft.world.chunk.listener.LoggingChunkStatusListener/]: Preparing spawn area: 46%
[24八月2020 16:44:19.462] [Render thread/INFO] [net.minecraft.world.chunk.listener.LoggingChunkStatusListener/]: Preparing spawn area: 46%
[24八月2020 16:44:19.462] [Render thread/INFO] [net.minecraft.world.chunk.listener.LoggingChunkStatusListener/]: Preparing spawn area: 46%
[24八月2020 16:44:20.336] [Render thread/INFO] [net.minecraft.world.chunk.listener.LoggingChunkStatusListener/]: Preparing spawn area: 95%
[24八月2020 16:44:20.548] [Render thread/INFO] [net.minecraft.world.chunk.listener.LoggingChunkStatusListener/]: Preparing spawn area: 95%
[24八月2020 16:44:21.026] [Render thread/INFO] [net.minecraft.world.chunk.listener.LoggingChunkStatusListener/]: Preparing spawn area: 95%
[24八月2020 16:44:21.534] [Render thread/INFO] [net.minecraft.world.chunk.listener.LoggingChunkStatusListener/]: Preparing spawn area: 95%
[24八月2020 16:44:22.059] [Render thread/INFO] [net.minecraft.world.chunk.listener.LoggingChunkStatusListener/]: Preparing spawn area: 95%
[24八月2020 16:44:22.617] [Render thread/INFO] [net.minecraft.world.chunk.listener.LoggingChunkStatusListener/]: Preparing spawn area: 96%
[24八月2020 16:44:23.035] [Render thread/INFO] [net.minecraft.world.chunk.listener.LoggingChunkStatusListener/]: Preparing spawn area: 98%
[24八月2020 16:44:23.556] [Render thread/INFO] [net.minecraft.world.chunk.listener.LoggingChunkStatusListener/]: Time elapsed: 9602 ms
[24八月2020 16:44:24.117] [Server thread/INFO] [net.minecraft.world.server.ChunkManager/]: ThreadedAnvilChunkStorage (DIM-1): All chunks are saved
[24八月2020 16:44:24.123] [Server thread/INFO] [net.minecraft.world.server.ChunkManager/]: ThreadedAnvilChunkStorage (DIM1): All chunks are saved
[24八月2020 16:44:24.154] [Server thread/INFO] [net.minecraft.server.integrated.IntegratedServer/]: Changing view distance to 11, from 10
[24八月2020 16:44:29.204] [Netty Local Client IO #0/INFO] [net.minecraftforge.fml.network.NetworkHooks/]: Connected to a modded server.
[24八月2020 16:44:29.386] [Server thread/INFO] [net.minecraftforge.common.AdvancementLoadFix/]: Using new advancement loading for [email protected]
[24八月2020 16:44:29.430] [Server thread/INFO] [net.minecraft.server.management.PlayerList/]: Dev[local:E:9a40ab5f] logged in with entity id 88 at (29.498615912090827, 74.0, -750.6438246604733)
[24八月2020 16:44:29.569] [Server thread/INFO] [net.minecraft.server.MinecraftServer/]: Dev joined the game
[24八月2020 16:44:30.780] [Server thread/INFO] [net.minecraft.server.integrated.IntegratedServer/]: Saving and pausing game...
[24八月2020 16:44:30.828] [Server thread/INFO] [net.minecraft.server.MinecraftServer/]: Saving chunks for level 'New World'/minecraft:overworld
[24八月2020 16:44:33.070] [Server thread/WARN] [net.minecraft.server.MinecraftServer/]: Can't keep up! Is the server overloaded? Running 3779ms or 75 ticks behind
[24八月2020 16:44:33.207] [Render thread/INFO] [net.minecraft.advancements.AdvancementList/]: Loaded 21 advancements
[24八月2020 16:44:38.069] [Server thread/INFO] [net.minecraft.server.integrated.IntegratedServer/]: Saving and pausing game...
[24八月2020 16:44:38.077] [Server thread/INFO] [net.minecraft.server.MinecraftServer/]: Saving chunks for level 'New World'/minecraft:overworld
[24八月2020 16:53:56.559] [Server thread/INFO] [net.minecraft.server.integrated.IntegratedServer/]: Saving and pausing game...
[24八月2020 16:53:56.567] [Server thread/INFO] [net.minecraft.server.MinecraftServer/]: Saving chunks for level 'New World'/minecraft:overworld
[24八月2020 16:59:29.919] [Server thread/INFO] [net.minecraft.entity.Entity/]: Villager VillagerEntity['Mason'/94, l='New World', x=7.31, y=67.00, z=-736.70] died, message: 'Mason was slain by Zombie'
[24八月2020 16:59:29.927] [Render thread/INFO] [net.minecraft.entity.Entity/]: Villager VillagerEntity['Mason'/94, l='MpServer', x=7.46, y=67.23, z=-736.70] died, message: 'Mason died'
[24八月2020 17:03:40.004] [Server thread/INFO] [net.minecraft.entity.Entity/]: Villager VillagerEntity['Farmer'/93, l='New World', x=-13.30, y=69.00, z=-791.50] died, message: 'Farmer was slain by Zombie'
[24八月2020 17:03:40.008] [Render thread/INFO] [net.minecraft.entity.Entity/]: Villager VillagerEntity['Farmer'/93, l='MpServer', x=-13.30, y=69.02, z=-791.50] died, message: 'Farmer died'
[24八月2020 17:16:03.444] [Server thread/INFO] [net.minecraft.server.MinecraftServer/]: Dev has made the advancement [Acquire Hardware]
[24八月2020 17:16:03.479] [Render thread/INFO] [net.minecraft.client.gui.NewChatGui/]: [CHAT] Dev has made the advancement [Acquire Hardware]
[24八月2020 17:16:03.535] [Render thread/INFO] [net.minecraft.advancements.AdvancementList/]: Loaded 54 advancements
[24八月2020 17:16:26.106] [Server thread/INFO] [net.minecraft.server.integrated.IntegratedServer/]: Saving and pausing game...
[24八月2020 17:16:26.112] [Server thread/INFO] [net.minecraft.server.MinecraftServer/]: Saving chunks for level 'New World'/minecraft:overworld
[24八月2020 17:16:56.662] [Server thread/INFO] [net.minecraft.server.MinecraftServer/]: Dev has made the advancement [Sweet Dreams]
[24八月2020 17:16:56.670] [Render thread/INFO] [net.minecraft.client.gui.NewChatGui/]: [CHAT] Dev has made the advancement [Sweet Dreams]
[24八月2020 17:16:56.760] [Render thread/INFO] [net.minecraft.advancements.AdvancementList/]: Loaded 57 advancements
[24八月2020 17:17:09.542] [Server thread/INFO] [net.minecraft.server.integrated.IntegratedServer/]: Saving and pausing game...
[24八月2020 17:17:09.558] [Server thread/INFO] [net.minecraft.server.MinecraftServer/]: Saving chunks for level 'New World'/minecraft:overworld
[24八月2020 17:17:19.442] [Server thread/INFO] [net.minecraft.server.integrated.IntegratedServer/]: Saving and pausing game...
[24八月2020 17:17:19.450] [Server thread/INFO] [net.minecraft.server.MinecraftServer/]: Saving chunks for level 'New World'/minecraft:overworld
[24八月2020 17:17:38.301] [Server thread/INFO] [net.minecraft.server.MinecraftServer/]: Dev has made the advancement [Monster Hunter]
[24八月2020 17:17:38.313] [Render thread/INFO] [net.minecraft.client.gui.NewChatGui/]: [CHAT] Dev has made the advancement [Monster Hunter]
[24八月2020 17:17:38.347] [Render thread/INFO] [net.minecraft.advancements.AdvancementList/]: Loaded 70 advancements
[24八月2020 17:18:25.909] [Render thread/INFO] [net.minecraft.advancements.AdvancementList/]: Loaded 71 advancements
[24八月2020 17:18:29.111] [Server thread/INFO] [net.minecraft.server.MinecraftServer/]: Dev has made the advancement [What a Deal!]
[24八月2020 17:18:29.117] [Render thread/INFO] [net.minecraft.client.gui.NewChatGui/]: [CHAT] Dev has made the advancement [What a Deal!]
[24八月2020 17:18:29.158] [Render thread/INFO] [net.minecraft.advancements.AdvancementList/]: Loaded 71 advancements
[24八月2020 17:18:30.964] [Render thread/INFO] [net.minecraft.advancements.AdvancementList/]: Loaded 72 advancements
[24八月2020 17:19:41.405] [Render thread/INFO] [net.minecraft.advancements.AdvancementList/]: Loaded 74 advancements
[24八月2020 17:19:58.991] [Server thread/INFO] [net.minecraft.server.integrated.IntegratedServer/]: Saving and pausing game...
[24八月2020 17:19:58.997] [Server thread/INFO] [net.minecraft.server.MinecraftServer/]: Saving chunks for level 'New World'/minecraft:overworld
[24八月2020 17:21:15.892] [Server thread/INFO] [net.minecraft.server.integrated.IntegratedServer/]: Saving and pausing game...
[24八月2020 17:21:15.898] [Server thread/INFO] [net.minecraft.server.MinecraftServer/]: Saving chunks for level 'New World'/minecraft:overworld
[24八月2020 17:27:15.940] [Server thread/INFO] [net.minecraft.server.integrated.IntegratedServer/]: Saving and pausing game...
[24八月2020 17:27:15.947] [Server thread/INFO] [net.minecraft.server.MinecraftServer/]: Saving chunks for level 'New World'/minecraft:overworld

相关代码
<NaturalScience>

package com.naturalscience.naturalsciencemod;

import net.minecraftforge.fml.common.Mod;
import net.minecraftforge.fml.javafmlmod.FMLJavaModLoadingContext;

@Mod("naturalscience")
public class NaturalScience {
    public NaturalScience(){
        ItemRegistry.ITEMS.register(FMLJavaModLoadingContext.get().getModEventBus());
    }
}



package com.naturalscience.naturalsciencemod;

import net.minecraft.item.Item;
import net.minecraftforge.fml.RegistryObject;
import net.minecraftforge.registries.DeferredRegister;
import net.minecraftforge.registries.ForgeRegistries;

public class ItemRegistry {
    public static final DeferredRegister<Item>ITEMS =new DeferredRegister<>(ForgeRegistries.ITEMS,"naturalscience");
    public static RegistryObject<Item>MathematicalPrinciplesOfNaturePhilosophy=ITEMS.register("mathematical_principles_of_nature_philosophy",()->{
        return new MathematicalPrinciplesOfNaturePhilosophy();
    });
}

'<mathematical_principles_of_nature_philosophy.json>

{"parent": "item/generated",
  "textures":{
    "layer0":"naturalscience:item/mathematical_principles_of_nature_philosophy"
  }
}

查到的资料
请粘贴你查询过的资料,如果没有请删除此段


FledgeXu


你少了一个你以modid命名的文件……
https://neutrino.v2mcdev.com/item/modelandtextures.html


Oo0


非常感谢!!!


system


该主题在最后一个回复创建后7天后自动关闭。不再允许新的回复。