版本信息
你使用的系统:<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:IntelliJ IDEA
你使用的IDE版本:<IntelliJ IDEA Community Edition 2019.3.2 x64>
Forge版本: forge-1.15.2-31.2.0-mdk
Minecraft版本: <1.15.2>
出错图
错误情况简述
这旁边多出来的碰撞箱是什么,我是不是可以通过减少这些碰撞箱来解决这个问题,我是注册在同一个方块里的。方块的朝向我是否能通过注册创建方块状态来解决问题。或许这是不是在模型绘制过程中出了什么问题
报错日志
[30九月2020 21:10:49.985] [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, {}]
[30九月2020 21:10:50.001] [main/INFO] [cpw.mods.modlauncher.Launcher/MODLAUNCHER]: ModLauncher 5.1.2+70+master.2845bb9 starting: java version 1.8.0_211 by Oracle Corporation
[30九月2020 21:10:51.274] [main/INFO] [net.minecraftforge.fml.loading.FixSSL/CORE]: Added Lets Encrypt root certificates as additional trust
[30九月2020 21:10:55.292] [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, {}]
[30九月2020 21:11:04.315] [Render thread/INFO] [net.minecraft.client.Minecraft/]: Setting user: Dev
[30九月2020 21:11:27.194] [Render thread/INFO] [net.minecraft.client.Minecraft/]: Backend library: LWJGL version 3.2.2 build 10
[30九月2020 21:11:30.665] [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
[30九月2020 21:11:30.665] [modloading-worker-0/INFO] [net.minecraftforge.common.MinecraftForge/FORGE]: MinecraftForge v31.2.0 Initialized
[30九月2020 21:11:42.074] [Render thread/INFO] [com.mojang.text2speech.NarratorWindows/]: Narrator library for x64 successfully loaded
[30九月2020 21:11:42.460] [Render thread/INFO] [net.minecraft.resources.SimpleReloadableResourceManager/]: Reloading ResourceManager: Default, Mod Resources
[30九月2020 21:11:43.387] [Forge Version Check/INFO] [net.minecraftforge.fml.VersionChecker/]: [naturalscience] Starting version check at http://myurl.me/
[30九月2020 21:11:44.095] [Forge Version Check/WARN] [net.minecraftforge.fml.VersionChecker/]: Failed to process update information
java.io.IOException: Server returned HTTP response code: 403 for URL: http://myurl.me/
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) ~[?:1.8.0_211]
at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62) ~[?:1.8.0_211]
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45) ~[?:1.8.0_211]
at java.lang.reflect.Constructor.newInstance(Constructor.java:423) ~[?:1.8.0_211]
at sun.net.www.protocol.http.HttpURLConnection$10.run(HttpURLConnection.java:1944) ~[?:1.8.0_211]
at sun.net.www.protocol.http.HttpURLConnection$10.run(HttpURLConnection.java:1939) ~[?:1.8.0_211]
at java.security.AccessController.doPrivileged(Native Method) ~[?:1.8.0_211]
at sun.net.www.protocol.http.HttpURLConnection.getChainedException(HttpURLConnection.java:1938) ~[?:1.8.0_211]
at sun.net.www.protocol.http.HttpURLConnection.getInputStream0(HttpURLConnection.java:1508) ~[?:1.8.0_211]
at sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:1492) ~[?:1.8.0_211]
at net.minecraftforge.fml.VersionChecker$1.openUrlStream(VersionChecker.java:189) ~[?:?]
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) [?:?]
Caused by: java.io.IOException: Server returned HTTP response code: 403 for URL: http://myurl.me/
at sun.net.www.protocol.http.HttpURLConnection.getInputStream0(HttpURLConnection.java:1894) ~[?: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) ~[?:?]
... 3 more
[30九月2020 21:11:44.107] [Forge Version Check/INFO] [net.minecraftforge.fml.VersionChecker/]: [forge] Starting version check at https://files.minecraftforge.net/maven/net/minecraftforge/forge/promotions_slim.json
[30九月2020 21:11:48.000] [Forge Version Check/INFO] [net.minecraftforge.fml.VersionChecker/]: [forge] Found status: UP_TO_DATE Current: 31.2.0 Target: null
[30九月2020 21:11:57.201] [Server-Worker-2/WARN] [net.minecraft.client.renderer.model.ModelBakery/]: Unable to load model: 'naturalscience:weight#inventory' referenced from: naturalscience:weight#inventory: java.io.FileNotFoundException: naturalscience:models/item/weight.json
[30九月2020 21:12:21.845] [Render thread/INFO] [net.minecraft.client.audio.SoundSystem/]: OpenAL initialized.
[30九月2020 21:12:21.847] [Render thread/INFO] [net.minecraft.client.audio.SoundEngine/SOUNDS]: Sound engine started
[30九月2020 21:12:23.919] [Render thread/INFO] [net.minecraft.client.renderer.texture.AtlasTexture/]: Created: 1024x512x4 minecraft:textures/atlas/blocks.png-atlas
[30九月2020 21:12:24.023] [Render thread/INFO] [net.minecraft.client.renderer.texture.AtlasTexture/]: Created: 128x128x4 minecraft:textures/atlas/signs.png-atlas
[30九月2020 21:12:24.024] [Render thread/INFO] [net.minecraft.client.renderer.texture.AtlasTexture/]: Created: 512x512x4 minecraft:textures/atlas/banner_patterns.png-atlas
[30九月2020 21:12:24.027] [Render thread/INFO] [net.minecraft.client.renderer.texture.AtlasTexture/]: Created: 512x512x4 minecraft:textures/atlas/shield_patterns.png-atlas
[30九月2020 21:12:24.033] [Render thread/INFO] [net.minecraft.client.renderer.texture.AtlasTexture/]: Created: 256x256x4 minecraft:textures/atlas/chest.png-atlas
[30九月2020 21:12:24.034] [Render thread/INFO] [net.minecraft.client.renderer.texture.AtlasTexture/]: Created: 512x256x4 minecraft:textures/atlas/beds.png-atlas
[30九月2020 21:12:24.035] [Render thread/INFO] [net.minecraft.client.renderer.texture.AtlasTexture/]: Created: 512x256x4 minecraft:textures/atlas/shulker_boxes.png-atlas
[30九月2020 21:12:25.051] [Render thread/INFO] [net.minecraft.client.renderer.texture.AtlasTexture/]: Created: 256x256x0 minecraft:textures/atlas/particles.png-atlas
[30九月2020 21:12:25.063] [Render thread/INFO] [net.minecraft.client.renderer.texture.AtlasTexture/]: Created: 256x256x0 minecraft:textures/atlas/paintings.png-atlas
[30九月2020 21:12:25.063] [Render thread/INFO] [net.minecraft.client.renderer.texture.AtlasTexture/]: Created: 128x128x0 minecraft:textures/atlas/mob_effects.png-atlas
[30九月2020 21:12:32.593] [Realms Notification Availability checker #1/INFO] [com.mojang.realmsclient.client.RealmsClient/]: Could not authorize you against Realms server: Invalid session id
[30九月2020 21:12:42.703] [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]
[30九月2020 21:12:42.704] [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]
[30九月2020 21:12:42.708] [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]
[30九月2020 21:12:42.709] [Render thread/WARN] [net.minecraft.command.Commands/]: Ambiguity between arguments [teleport, targets] and [teleport, destination] with inputs: [Player, 0123, dd12be42-52a9-4a91-a8a1-11c01849e498]
[30九月2020 21:12:42.711] [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]
[30九月2020 21:12:43.137] [Server thread/INFO] [net.minecraft.server.integrated.IntegratedServer/]: Starting integrated minecraft server version 1.15.2
[30九月2020 21:12:43.137] [Server thread/INFO] [net.minecraft.server.integrated.IntegratedServer/]: Generating keypair
[30九月2020 21:12:43.774] [Server thread/INFO] [net.minecraftforge.registries.GameData/REGISTRIES]: Injecting existing registry data into this SERVER instance
[30九月2020 21:12:44.186] [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
[30九月2020 21:12:49.311] [Server thread/INFO] [net.minecraft.item.crafting.RecipeManager/]: Loaded 6 recipes
[30九月2020 21:12:52.936] [Server thread/INFO] [net.minecraft.advancements.AdvancementList/]: Loaded 825 advancements
[30九月2020 21:12:54.409] [Server thread/INFO] [net.minecraft.server.MinecraftServer/]: Preparing start region for dimension minecraft:overworld
[30九月2020 21:12:56.984] [Render thread/INFO] [net.minecraft.world.chunk.listener.LoggingChunkStatusListener/]: Preparing spawn area: 0%
[30九月2020 21:12:56.985] [Render thread/INFO] [net.minecraft.world.chunk.listener.LoggingChunkStatusListener/]: Preparing spawn area: 0%
[30九月2020 21:12:56.985] [Render thread/INFO] [net.minecraft.world.chunk.listener.LoggingChunkStatusListener/]: Preparing spawn area: 0%
[30九月2020 21:12:56.985] [Render thread/INFO] [net.minecraft.world.chunk.listener.LoggingChunkStatusListener/]: Preparing spawn area: 0%
[30九月2020 21:12:56.985] [Render thread/INFO] [net.minecraft.world.chunk.listener.LoggingChunkStatusListener/]: Preparing spawn area: 0%
[30九月2020 21:12:56.985] [Render thread/INFO] [net.minecraft.world.chunk.listener.LoggingChunkStatusListener/]: Preparing spawn area: 0%
[30九月2020 21:12:57.477] [Render thread/INFO] [net.minecraft.world.chunk.listener.LoggingChunkStatusListener/]: Preparing spawn area: 0%
[30九月2020 21:13:00.853] [Render thread/INFO] [net.minecraft.world.chunk.listener.LoggingChunkStatusListener/]: Preparing spawn area: 32%
[30九月2020 21:13:00.985] [Render thread/INFO] [net.minecraft.world.chunk.listener.LoggingChunkStatusListener/]: Preparing spawn area: 32%
[30九月2020 21:13:00.985] [Render thread/INFO] [net.minecraft.world.chunk.listener.LoggingChunkStatusListener/]: Preparing spawn area: 32%
[30九月2020 21:13:00.985] [Render thread/INFO] [net.minecraft.world.chunk.listener.LoggingChunkStatusListener/]: Preparing spawn area: 32%
[30九月2020 21:13:00.985] [Render thread/INFO] [net.minecraft.world.chunk.listener.LoggingChunkStatusListener/]: Preparing spawn area: 32%
[30九月2020 21:13:00.985] [Render thread/INFO] [net.minecraft.world.chunk.listener.LoggingChunkStatusListener/]: Preparing spawn area: 32%
[30九月2020 21:13:00.985] [Render thread/INFO] [net.minecraft.world.chunk.listener.LoggingChunkStatusListener/]: Preparing spawn area: 32%
[30九月2020 21:13:01.831] [Render thread/INFO] [net.minecraft.world.chunk.listener.LoggingChunkStatusListener/]: Preparing spawn area: 32%
[30九月2020 21:13:02.100] [Render thread/INFO] [net.minecraft.world.chunk.listener.LoggingChunkStatusListener/]: Preparing spawn area: 96%
[30九月2020 21:13:02.533] [Render thread/INFO] [net.minecraft.world.chunk.listener.LoggingChunkStatusListener/]: Preparing spawn area: 96%
[30九月2020 21:13:03.002] [Render thread/INFO] [net.minecraft.world.chunk.listener.LoggingChunkStatusListener/]: Preparing spawn area: 96%
[30九月2020 21:13:03.583] [Render thread/INFO] [net.minecraft.world.chunk.listener.LoggingChunkStatusListener/]: Preparing spawn area: 96%
[30九月2020 21:13:03.964] [Render thread/INFO] [net.minecraft.world.chunk.listener.LoggingChunkStatusListener/]: Preparing spawn area: 96%
[30九月2020 21:13:04.469] [Render thread/INFO] [net.minecraft.world.chunk.listener.LoggingChunkStatusListener/]: Preparing spawn area: 96%
[30九月2020 21:13:05.161] [Render thread/INFO] [net.minecraft.world.chunk.listener.LoggingChunkStatusListener/]: Preparing spawn area: 99%
[30九月2020 21:13:05.874] [Render thread/INFO] [net.minecraft.world.chunk.listener.LoggingChunkStatusListener/]: Time elapsed: 11436 ms
[30九月2020 21:13:07.348] [Server thread/INFO] [net.minecraft.world.server.ChunkManager/]: ThreadedAnvilChunkStorage (DIM-1): All chunks are saved
[30九月2020 21:13:07.360] [Server thread/INFO] [net.minecraft.world.server.ChunkManager/]: ThreadedAnvilChunkStorage (DIM1): All chunks are saved
[30九月2020 21:13:07.366] [Server thread/INFO] [net.minecraft.server.integrated.IntegratedServer/]: Changing view distance to 11, from 10
[30九月2020 21:13:16.181] [Netty Local Client IO #0/INFO] [net.minecraftforge.fml.network.NetworkHooks/]: Connected to a modded server.
[30九月2020 21:13:16.547] [Server thread/INFO] [net.minecraftforge.common.AdvancementLoadFix/]: Using new advancement loading for net.minecraft.advancements.PlayerAdvancements@6d5ef498
[30九月2020 21:13:16.646] [Server thread/INFO] [net.minecraft.server.management.PlayerList/]: Dev[local:E:cc52a753] logged in with entity id 83 at (72.31323411042305, 63.0, -747.1214969359621)
[30九月2020 21:13:16.978] [Server thread/INFO] [net.minecraft.server.MinecraftServer/]: Dev joined the game
[30九月2020 21:13:18.644] [Server thread/WARN] [net.minecraft.server.MinecraftServer/]: Can't keep up! Is the server overloaded? Running 2270ms or 45 ticks behind
[30九月2020 21:13:20.352] [Server thread/INFO] [net.minecraft.server.integrated.IntegratedServer/]: Saving and pausing game...
[30九月2020 21:13:20.600] [Render thread/INFO] [net.minecraft.advancements.AdvancementList/]: Loaded 88 advancements
[30九月2020 21:13:20.818] [Server thread/INFO] [net.minecraft.server.MinecraftServer/]: Saving chunks for level 'New World'/minecraft:overworld
[30九月2020 21:15:03.208] [Server thread/INFO] [net.minecraft.server.integrated.IntegratedServer/]: Saving and pausing game...
[30九月2020 21:15:03.239] [Server thread/INFO] [net.minecraft.server.MinecraftServer/]: Saving chunks for level 'New World'/minecraft:overworld
[30九月2020 21:16:35.035] [Server thread/INFO] [net.minecraft.server.integrated.IntegratedServer/]: Saving and pausing game...
[30九月2020 21:16:35.212] [Server thread/INFO] [net.minecraft.server.MinecraftServer/]: Saving chunks for level 'New World'/minecraft:overworld
[30九月2020 21:16:53.290] [Server thread/INFO] [net.minecraft.network.play.ServerPlayNetHandler/]: Dev lost connection: Disconnected
[30九月2020 21:16:53.291] [Server thread/INFO] [net.minecraft.server.MinecraftServer/]: Dev left the game
[30九月2020 21:16:53.315] [Server thread/INFO] [net.minecraft.network.play.ServerPlayNetHandler/]: Stopping singleplayer server as player logged out
[30九月2020 21:16:53.372] [Server thread/INFO] [net.minecraft.server.MinecraftServer/]: Stopping server
[30九月2020 21:16:53.373] [Server thread/INFO] [net.minecraft.server.MinecraftServer/]: Saving players
[30九月2020 21:16:53.373] [Server thread/INFO] [net.minecraft.server.MinecraftServer/]: Saving worlds
[30九月2020 21:16:53.373] [Server thread/INFO] [net.minecraft.server.MinecraftServer/]: Saving chunks for level 'New World'/minecraft:overworld
[30九月2020 21:16:53.635] [Server thread/INFO] [net.minecraft.world.server.ChunkManager/]: ThreadedAnvilChunkStorage (New World): All chunks are saved
[30九月2020 21:16:53.649] [Server thread/INFO] [net.minecraft.world.server.ChunkManager/]: ThreadedAnvilChunkStorage (New World): All chunks are saved
[30九月2020 21:16:58.816] [Render thread/INFO] [net.minecraft.client.Minecraft/]: Stopping!
代码
public class Microscope extends Block {
private static VoxelShape shape;
static{
VoxelShape base = Block.makeCuboidShape(6, 6, 5,9.7, 10.8, 6.8);
VoxelShape column1 = Block.makeCuboidShape(3, 0, 9,5, 0.8, 14);
VoxelShape column2 = Block.makeCuboidShape(11, 0, 9,13, 0.8, 14);
VoxelShape column3 = Block.makeCuboidShape(7.1, 3.5, -5,8.9, 9.6, -3);
VoxelShape column4 = Block.makeCuboidShape(7.1, -3.5, 7,8.9, 1.6, 8.7);
VoxelShape column5 = Block.makeCuboidShape(6.1, 5.6, 6.8,9.4, 12.8, 10);
VoxelShape column6 = Block.makeCuboidShape(6.8, 12.8, 7.3,8.6, 13.75, 9.3);
VoxelShape column7 = Block.makeCuboidShape(3, 1.95, 6.1,12.9, 2.65, 13.1);
VoxelShape column8 = Block.makeCuboidShape(5.4, 6.75, 3.25,10.1, 8, 7.65);
VoxelShape column9 = Block.makeCuboidShape(5.5, 9, 5.5,6, 9.5, 6);
VoxelShape column10 = Block.makeCuboidShape(6, 2.75, 7,9.75, 3, 9);
VoxelShape column11 = Block.makeCuboidShape(7.25, 7.9, 2.7,8.25, 9.6, 3.6);
VoxelShape column12 = Block.makeCuboidShape(7.25, 3.3, 6.9,8.25, 4.6, 7.8);
VoxelShape column13 = Block.makeCuboidShape(8.35, -3.1, 8.2,9.35, -1.8, 9.1);
VoxelShape column14 = Block.makeCuboidShape(1.35, 6.8, 8.2,2.35, 9.2, 9.1);
VoxelShape column15 = Block.makeCuboidShape(5.6, 7.8, 5.8,6, 8.4, 6.4);
VoxelShape top = Block.makeCuboidShape(3, 0, 5,13, 1.8, 9);
shape = VoxelShapes.or(base, column1, column2, column3, column4,column5,column6,column7,column8,column9,column10,column11,column12,column13,column14,column15,top);
}
public Microscope(){
super(Properties.create(Material.ROCK).hardnessAndResistance(5));
}
@Override
public VoxelShape getShape(BlockState state, IBlockReader worldIn, BlockPos pos, ISelectionContext context) {
return shape;
}
}