Jump to content

Recommended Posts

Posted

PASTEBIN OF CODE

 

I am trying to make a block with connected textures for its top and bottom faces, and I've got it working except for the orientation of the textures. Using metadata, I can get the right type of texture, but not the right orientation of it. There are too many textures for metadata to handle (using separate textures for each orientation), and this cannot be a tile entity, as it is a decorative block.

 

Can I set something other than metadata, without making the block a tile entity, to get the right orientation of the texture? I tried using an instance variable, but of course that doesn't set per instance; every instance of the block changes when one does. I am starting to think what I want is not possible, only I know that others have done connected textures for decorative blocks, like glass.

 

Quite possibly, there's an obvious, better way to do this. I am still learning Java, so I apologize if I seem obtuse. Certainly this code is not elegant or pretty. Many thanks for any help or advice!

Posted

Could anyone point me to an example of connected textures code?

 

Or, alternately, help me to understand this code:

 

Im trying to make this glass block(That im going to make later today, also dont know how to make blocks transparent(yes I need a lot of help on stuff)) have connected texture but I cant find any tutorials that I could follow(yes im a noob, but I like to do things my way, not the professional way, yet) And I also need to update to 1.6 but I dont know how. I read somewhere that you need to make sure you backed up your code, then delete it all and do it again but with the current versions but I dont know. Any help would be greatly appreciated!

 

package f1rSt1k.blocks;

import java.util.List;
import java.util.Random;

import f1rSt1k.Main;

import net.minecraft.block.Block;
import net.minecraft.block.BlockGlass;
import net.minecraft.block.material.Material;
import net.minecraft.client.renderer.texture.IconRegister;
import net.minecraft.entity.player.EntityPlayer;
import net.minecraft.item.Item;
import net.minecraft.item.ItemStack;
import net.minecraft.util.Icon;
import net.minecraft.world.IBlockAccess;

public class BlockDecorativeGlass extends BlockGlass 
{

public static boolean connectedTexture = true;

public static Icon[] textures = new Icon[47];

public static int[] textureRefByID = { 0, 0, 6, 6, 0, 0, 6, 6, 3, 3, 19, 15, 3, 3, 19, 15, 1, 1, 18, 18, 1, 1,
                                       13, 13, 2, 2, 23, 31, 2, 2, 27, 14, 0, 0, 6, 6, 0, 0, 6, 6, 3, 3, 19,
                                       15, 3, 3, 19, 15, 1, 1, 18, 18, 1, 1, 13, 13, 2, 2, 23, 31, 2, 2, 27,
                                       14, 4, 4, 5, 5, 4, 4, 5, 5, 17, 17, 22, 26, 17, 17, 22, 26, 16, 16, 20,
                                       20, 16, 16, 28, 28, 21, 21, 46, 42, 21, 21, 43, 38, 4, 4, 5, 5, 4, 4,
                                       5, 5, 9, 9, 30, 12, 9, 9, 30, 12, 16, 16, 20, 20, 16, 16, 28, 28, 25,
                                       25, 45, 37, 25, 25, 40, 32, 0, 0, 6, 6, 0, 0, 6, 6, 3, 3, 19, 15, 3, 3,
                                       19, 15, 1, 1, 18, 18, 1, 1, 13, 13, 2, 2, 23, 31, 2, 2, 27, 14, 0, 0,
                                       6, 6, 0, 0, 6, 6, 3, 3, 19, 15, 3, 3, 19, 15, 1, 1, 18, 18, 1, 1, 13,
                                       13, 2, 2, 23, 31, 2, 2, 27, 14, 4, 4, 5, 5, 4, 4, 5, 5, 17, 17, 22, 26,
                                       17, 17, 22, 26, 7, 7, 24, 24, 7, 7, 10, 10, 29, 29, 44, 41, 29, 29, 39,
                                       33, 4, 4, 5, 5, 4, 4, 5, 5, 9, 9, 30, 12, 9, 9, 30, 12, 7, 7, 24, 24,
                                       7, 7, 10, 10, 8, 8, 36, 35, 8, 8, 34, 11 };

public BlockDecorativeGlass()
{
         super(502, Material.glass, false);
         setHardness(0.6F);
         setResistance(2.0F);
         setCreativeTab(Main.f1rSt1kCraftCreativeTab);
         setStepSound(soundGlassFootstep);
}

public int idDropped(int par1, Random par2Random, int par3)
{
    return Item.stick.itemID;
}

public int quantityDropped(Random par1Random)
{
    return 1 + par1Random.nextInt(4);
}



public void registerIcons(IconRegister iconRegistry)
{
         for (int i = 0; i < 47; i++) textures[i] = iconRegistry.registerIcon("f1rst1kcraft:woodGlass_" + (i+1));
}

public Icon getBlockTexture(IBlockAccess world, int x, int y, int z, int side)
{
    
	if(connectedTexture){

	boolean[] bitMatrix = new boolean[8];
        
         if (side == 0 || side == 1)
         {
                 bitMatrix[0] = world.getBlockId(x-1, y, z-1) == this.blockID;
                 bitMatrix[1] = world.getBlockId(x, y, z-1) == this.blockID;
                 bitMatrix[2] = world.getBlockId(x+1, y, z-1) == this.blockID;
                 bitMatrix[3] = world.getBlockId(x-1, y, z) == this.blockID;
                 bitMatrix[4] = world.getBlockId(x+1, y, z) == this.blockID;
                 bitMatrix[5] = world.getBlockId(x-1, y, z+1) == this.blockID;
                 bitMatrix[6] = world.getBlockId(x, y, z+1) == this.blockID;
                 bitMatrix[7] = world.getBlockId(x+1, y, z+1) == this.blockID;
         }
         if (side == 2 || side == 3)
         {
                 bitMatrix[0] = world.getBlockId(x+(side==2?1:-1), y+1, z) == this.blockID;
                 bitMatrix[1] = world.getBlockId(x, y+1, z)                      == this.blockID;
                 bitMatrix[2] = world.getBlockId(x+(side==3?1:-1), y+1, z) == this.blockID;
                 bitMatrix[3] = world.getBlockId(x+(side==2?1:-1), y, z) == this.blockID;
                 bitMatrix[4] = world.getBlockId(x+(side==3?1:-1), y, z) == this.blockID;
                 bitMatrix[5] = world.getBlockId(x+(side==2?1:-1), y-1, z) == this.blockID;
                 bitMatrix[6] = world.getBlockId(x, y-1, z)                      == this.blockID;
                 bitMatrix[7] = world.getBlockId(x+(side==3?1:-1), y-1, z) == this.blockID;
         }
         if (side == 4 || side == 5)
         {
                 bitMatrix[0] = world.getBlockId(x, y+1, z+(side==5?1:-1)) == this.blockID;
                 bitMatrix[1] = world.getBlockId(x, y+1, z)                      == this.blockID;
                 bitMatrix[2] = world.getBlockId(x, y+1, z+(side==4?1:-1)) == this.blockID;
                 bitMatrix[3] = world.getBlockId(x, y, z+(side==5?1:-1)) == this.blockID;
                 bitMatrix[4] = world.getBlockId(x, y, z+(side==4?1:-1)) == this.blockID;
                 bitMatrix[5] = world.getBlockId(x, y-1, z+(side==5?1:-1)) == this.blockID;
                 bitMatrix[6] = world.getBlockId(x, y-1, z)                      == this.blockID;
                 bitMatrix[7] = world.getBlockId(x, y-1, z+(side==4?1:-1)) == this.blockID;
         }
        
         int idBuilder = 0;

         for (int i = 0; i <= 7; i++) idBuilder = idBuilder + (bitMatrix[i]?(i==0?1:(i==1?2:(i==2?4:(i==3?8:(i==4?16:(i==5?32:(i==6?64:128))))))):0);
        
         return idBuilder>255||idBuilder<0?textures[0]:textures[textureRefByID[idBuilder]];
         
	}
	return textures[0];
}

public Icon getIcon(int side, int meta)
{
         return textures[0];
}
}

 

It just occurred to me: the GetBlockTexture lets you get the surrounding block IDs -- I'm going to see whether I can do it there, without metadata.

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



  • Recently Browsing

    • No registered users viewing this page.
  • Posts

    • 有人可以帮我吗? JVM 信息: Oracle Corporation - 1.8.0_431 - 25.431-b10java.net.preferIPv4Stack=true当前时间:15/01/2025 17:45:17主机:files.minecraftforge.net [104.21.58.163, 172.67.161.211]主机:maven.minecraftforge.net [172.67.161.211, 104.21.58.163]主机:libraries.minecraft.net [127.0.0.1]主机:launchermeta.mojang.com [127.0.0.1]主机:piston-meta.mojang.com [127.0.0.1]主机:sessionserver.mojang.com [127.0.0.1]主机:authserver.mojang.com [未知]错误检查 sun.security.validator.ValidatorException:PKIX 路径构建失败:sun.security.provider.certpath.SunCertPathBuilderException:找不到指向请求目标的有效认证路径的数据由 CreeperHost 在 <b1 上友好镜像12>https://www.creeperhost.net/ 考虑 minecraft 服务器 jar下载库找到 1 个额外的库目录考虑库 cpw.mods:securejarhandler:2.1.10 从 下载库 下载完成:校验和验证。JVM 信息:Oracle Corporation - 1.8.0_431 - 25.431-b10 java.net.preferIPv4Stack=true 当前时间:15/01/2025 17:45:17 主机:files.minecraftforge.net [104.21.58.163, 172.67.161.211] 主机: maven.minecraftforge.net [172.67.161.211, 104.21.58.163] 主机: libraries.minecraft.net [127.0.0.1] 主机: launchermeta.mojang.com [127.0.0.1] 主机: piston-meta.mojang.com [127.0.0.1] 主机: sessionserver.mojang.com [127.0.0.1] 主机:authserver.mojang.com [未知] 错误检查 https://launchermeta.mojang.com/:sun.security.validator.ValidatorException:PKIX 路径构建失败:sun.security.provider.certpath.SunCertPathBuilderException:找不到指向请求目标 的有效认证路径数据由 CreeperHost 在 https://www.creeperhost.net/ 考虑 minecraft 服务器 jar 时进行镜像wnloading libraries 找到 1 个额外的库目录 考虑库 cpw.mods:securejarhandler:2.1.10 从 https://maven.creeperhost.net/cpw/mods/securejarhandler/2.1.10/securejar 下载库handler-2.1.10.jar https://maven.creeperhost.net/org/ow2/asm/asm-analysis/9.7.1/asm-analysis-9.7.1.jar 下载完成:校验和验证。 考虑到库 org.ow2.asm:asm:9.7.1 从 https://maven.creeperhost.net/org/ow2/asm/asm/9.7.1/asm-9.7.1.jar 下载库 https://maven.creeperhost.net/net/minecraftforge/accesstransformers/8.0.4/accesstransformers-8.0.4.jar 下载完成:校验和已验证。 考虑库 org.ow2.asm:asm-commons:9.7.1 从库 org.ow2.asm:asm-commons:9.7.1 从 https://maven.creeperhost.net/org/ow2/asm/asm-tree/9.7.1/asm-tree-9.7.1.jar https://maven.creeperhost.net/org/ow2/asm/asm-commons/9.7.1/asm-commons-9.7.1.jar https://maven.creeperhost.net/org/antlr/antlr4-runtime/4.9.1/antlr4-runtime-4.9.1.jar 下载库 下载已完成:校验 https://maven.creeperhost.net/net/minecraftforge/eventbus/6.0.5/eventbus-6.0.5.jar和已验证。 考虑库 org.ow2.asm:asm-util:9.7.1 从 https://maven.creeperhost.net/org/ow2/asm/asm-util/9.7.1/asm-util-9.7.1.jar 下载库 https://maven.creeperhost.net/net/minecraftforge/forgespi/7.0.1/forgespi-7.0.1.jar 下载完成:勾选pleted:校验和验证。 考虑库 net.minecraftforge:coremods:5.2.1 从 https://maven.creeperhost.net/net/minecraftforge/coremods/5.2.1/coremods-5.2.1.jar 下载库 下载完成:校验和验证。 考虑库 cpw.mods:modlauncher:10.0.9 从 https://maven.creeperhost.net/cpw/mods/modlauncher/10.0.9/modlauncher-10.0.9.jar 下载库 下载完成:校验和验证。 考虑库 net.minecraftforge:unsafe:0.2.0 从 https://maven.creeperhost.net/net/minecraftforge/unsafe/0.2.0/unsafe-0.2.0.jar 下载库 下载完成:校验和验证。 考虑库 net.minecraftforge:mergetool:1.1.5:api 从 https://maven.creeperhost.net/net/minecraftforge/mergetool/1.1.5/mergetool-1.1.5-api.jar 下载库 下载完成:校验和验证。 考虑到库 com.electronwill.night-config:core:3.6.4 从 https://maven.creeperhost.net/com/electronwill/night-config/core/3.6.4/core-3.6.4.jar 下载库 下载完成:校验和验证。 考虑到库 com.electronwill.night-config:toml:3.6.4 从 https://maven.creeperhost.net/com/electronwill/night-config/toml/3.6.4/toml-3.6.4.jar 下载库 下载完成:校验和验证。 考虑库 org.apache.maven:maven-artifact:3.8.5 从 https://maven.creeperhost.net/org/apache/maven/maven-artifact/3.8.5/maven-artifact-3.8.5.jar 下载完成:校验和验证。 考虑库 net.jodah:typetools:0.6.3 从 https://maven.creeperhost.net/net/jodah/typetools/0.6.3/typetools-0.6.3.jar 下载库 下载完成:校验和验证。 考虑库 net.minecrell:terminalconsoleappender:1.2.0 从 https://maven.creeperhost.net/net/minecrell/terminalconsoleappender/1.2.0/terminalconsoleappender-1.2.0.jar 下载库 下载完成:校验和验证。 考虑库 org.jline:jline-reader:3.12.1 从 https://maven.creeperhost.net/org/jline/jline-reader/3.12.1/jline-reader-3.12.1.jar 下载库 下载完成:校验和验证。 考虑库 org.jline:jline-terminal:3.12.1 从 https://maven.creeperhost.net/org/jline/jline-terminal/3.12.1/jline-terminal-3.12.1.jar 下载库 下载完成:校验和验证。 考虑库 org.spongepowered:mixin:0.8.5 从 https://maven.creeperhost.net/org/spongepowered/mixin/0.8.5/mixin-0.8.5.jar 下载库 下载完成:校验和验证。 考虑库 org.openjdk.nashorn:nashorn-core:15.4 从库下载库 https://maven.creeperhost.net/org/openjdk/nashorn/nashorn-core/15.4/nashorn-core-15.4.jar 下载完成:校验和验证。 考虑库 net.minecraftforge:JarJarSelector:0.3.19 从https://maven.creeperhost.net/net/minecraftforge/JarJarSelector/0.3.19/JarJarSelector-0.3.19.jar 下载完成:校验和验证。 考虑库 net.minecraftforge:JarJarMetadata:0.3.19 从 https://maven.creeperhost.net/net/minecraftforge/JarJarMetadata/0.3.19/JarJarMetadata-0.3.19.jar 下载库下载完成:校验和验证。 考虑库 cpw.mods:bootstraplauncher:1.1.2 从 https://maven.creeperhost.net/cpw/mods/bootstraplauncher/1.1.2/bootstraplauncher-1.1.2.jar 下载库 下载完成:校验和验证。 考虑库 net.minecraftforge:JarJarFileSystems:0.3.19 从 https://maven.creeperhost.net/net/minecraftforge/JarJarFileSystems/0.3.19/JarJarFileSystems-0.3.19.jar 下载库 下载完成:校验和验证。 考虑库 net.minecraftforge:fmlloader:1.20.1-47.3.12 从 https://maven.creeperhost.net/net/minecraftforge/fmlloader/1.20.1-47.3.12/fmlloader-1.20.1-47.3.12.jar 下载库 下载完成:校验和验证。 考虑到库 net.minecraftforge:fmlearlydisplay:1.20.1-47.3.12 从 https://maven.creeperhost.net/net/minecraftforge/fmlearlydisplay/1.20.1-47.3.12/fmlearlydisplay-1.20.1-47.3.12.jar 下载库 下载完成:校验和验证。 考虑库 com.github.jponge:lzma-java:1.3 从 https://maven.creeperhost.net/com/github/jponge/lzma-java/1.3/lzma-java-1.3.jar 下载库 下载已完成:校验和已验证。 考虑到库 com.google.code.findbugs:jsr305:3.0.2 从 https://libraries.minecraft.net/com/google/code/findbugs/jsr305/3.0.2/jsr305-3.0.2.jar 下载库无法建立与 https://libraries.minecraft.net/com/google/code/findbugs/jsr305/3.0.2/jsr305-3.0.2.jar 主机的连接:libraries.minecraft.net [127.0.0.1] javax.net.ssl.SSLHandshakeException:sun.security.validator.ValidatorException:PKIX 路径构建失败:sun.security.provider.certpath.SunCertPathBuilderException:无法找到指向请求目标 的有效认证路径 在 sun.security.ssl.Alert.createSSLException(未知来源) 在 sun.security.ssl.TransportContext.fatal(未知来源) 在 sun.security.ssl.TransportContext.fatal(未知来源 ) 在 sun.security.ssl.CertificateMessage$T13CertificateConsumer.checkServerCerts(未知来源) .security.ssl.CertificateMessage$T13CertificateConsumer.onConsumeCertificate(未知来源) at sun.security.ssl.CertificateMessage$T13CertificateConsumer.consume(未知来源) at sun.security.ssl.SSLHandshake.consume(未知来源) at sun.security.ssl.HandshakeContext.dispatch(未知来源) at sun.security.ssl.HandshakeContext.dispatch(未知来源) at sun.security.ssl.SSLTransport.decode(未知来源) 位于 sun.security.ssl.SSLSocketImpl.decode(未知来源) 位于 sun.security.ssl.SSLSocketImpl.readHandshakeRecord(未知来源) 位于 sun.security.ssl.SSLSocketImpl.startHandshake(未知来源) 位于 sun.security.ssl.SSLSocketImpl.startHandshake(未知来源) 位于 sun.net.www.protocol.https.HttpsClient.afterConnect(未知来源) 位于 sun.net.www.protocol.https.AbstractDelegateHttpsURLConnection.connect(未知来源) 在 sun.net.www.protocol.http.HttpURLConnection.getInputStream0(未知来源) 在 sun.net.www.protocol.http.HttpURLConnection.getInputStream(未知来源) 在 java.net.HttpURLConnection.getResponseCode(未知来源) 在 sun.net.www.protocol.https.HttpsURLConnectionImpl.getResponseCode(未知来源) 在 net.minecraftforge.installer.DownloadUtils.getConnection(DownloadUtils.java:240) 在 net.minecraftforge.installer.DownloadUtils.download(DownloadUtils.java:174) 在 net.minecraftforge.installer.DownloadUtils.download(DownloadUtils.java:164) 在 net.minecraftforge.installer.DownloadUtils.downloadLibrary(DownloadUtils.java:149) 在 net.minecraftforge.installer.actions.Action.downloadLibraries(Action.java:73) 在 net.minecraftforge.installer.actions.ServerInstall.run(ServerInstall.java:72) 在net.minecraftforge.installer.InstallerPanel.run(InstallerPanel.java:271) at net.minecraftforge.installer.SimpleInstaller.launchGui(SimpleInstaller.java:182) at net.minecraftforge.installer.SimpleInstaller.main(SimpleInstaller.java:154) 原因:sun.security.validator.ValidatorException:PKIX 路径构建失败:sun.security.provider.certpath.SunCertPathBuilderException:找不到请求目标 a 的有效证书路径t sun.security.validator.PKIXValidator.doBuild(未知来源) at sun.security.validator.PKIXValidator.engineValidate(未知来源) at sun.security.validator.Validator.validate(未知来源) at sun.security.ssl.X509TrustManagerImpl.validate(未知来源) at sun.security.ssl.X509TrustManagerImpl.checkTrusted(未知来源 ) ...ecode(未知来源) 位于 sun.security.ssl.SSLSocketImpl.decode(未知来源) 位于 sun.security.ssl.SSLSocketImpl.readHandshakeRecord(未知来源) 位于 sun.security.ssl.SSLSocketImpl.startHandshake(未知来源) 位于 sun.security.ssl.SSLSocketImpl.startHandshake(未知来源) 位于 sun.net.www.protocol.https.HttpsClient.afterConnect(未知来源) 在 sun.net.www.protocol.https.AbstractDelegateHttpsURLConnection.connect(未知来源) 在 sun.net.www.protocol.http.HttpURLConnection.getInputStream0(未知来源) 在 sun.net.www.protocol.http.HttpURLConnection.getInputStream(未知来源) https://libraries.minecraft.net/com/google/code/gson/gson/2.10.1/gson-2.10.1.jar在 java.net.HttpURLConnection.getResponseCode(未知来源) 在 sun.net.www.protocol.https.HttpsURLConnectionImpl.getResponseCode(未知来源) https://libraries.minecraft.net/com/google/code/gson/gson/2.10.1/gson-2.10.1.jar 在 net.minecraftforge.installer.DownloadUtils.getConnection(DownloadUtils.java:240) 在 nlderException: 无法找到指向请求目标 的有效证书路径 sun.security.ssl.Alert.createSSLException(未知源) 在 sun.security.ssl.TransportContext.fatal(未知源) 在 sun.security.ssl.TransportContext.fatal(未知源 ) 在 sun.security.ssl.CertificateMessage$T13CertificateConsumer.checkServerCerts(未知源) 在 sun.security.ssl.CertificateMessage$T13CertificateConsumer.onConsumeCertificate(Un已知来源) 位于 sun.security.ssl.CertificateMessage$T13CertificateConsumer.consume(未知来源) 位于 sun.security.ssl.SSLHandshake.consume(未知来源) 位于 sun.security.ssl.HandshakeContext.dispatch(未知来源) 位于 sun.security.ssl.HandshakeContext.dispatch(未知来源) 位于 sun.security.ssl.TransportContext.dispatch(未知来源) 位于 sun.security.ssl.SSLTransport.decode(未知来源) 位于 sun.security.ssl.SSLSocketImpl.decode(未知来源)。 security.ssl.SSLSocketImpl.readHandshakeRecord(未知来源) at sun.security.ssl.SSLSocketImpl.startHandshake(未知来源) sun.security.ssl.SSLSocketImpl.startHandshake(未知来源) 在 sun.net.www.protocol.https.Https.HttpsClient.afterConnect(未知来源) at sun.net.www.protocol.https.AbstractDelegateHttpsURLConnection.connect(未知来源) at sun.net.www.protocol.http.HttpURLConnection.getInputStream0(未知来源) at sun.net.www.protocol.http.HttpURLConnection.getInputStream(未知来源) java.net.HttpURLConnection.getResponseCode(未知来源) 在 sun.net.www.protocol.https.HttpsURLConnectionImpl.getResponseCode(未知来源) 在 net.minecraftforge.installer.DownloadUtils.getConnection(DownloadUtils.java:240) 在 net.minecraftforge.installer.DownloadUtils.download(DownloadUtils.java:174) 在 net.minecraftforge.installer.DownloadUtils.download(DownloadUtils.java:164) 在 net.minecraftforge.installer.DownloadUtils.downloadLibrary(DownloadUtils.java:149) 在 net.minecraftforge.installer.actions.Action.downloadLibraries(Action.java:73) 在 net.minecraftforge.installer.actions.ServerInstall.run(ServerInstall.java:72) 在 net.minecraftforge.installer.Installer.InstallerPanel.run(InstallerPanel.java:271) 在 net.minecraftforge.installer.SimpleInstaller.launchGui(SimpleInstaller.java:182) 在 net.minecraftforge.installer.SimpleInstaller.main(SimpleInstaller.java:154) 原因:sun.security.validator.ValidatorException:PKIX 路径构建失败:sun.security。provider.certpath.SunCertPathBuilderException: 无法找到指向请求目标 的有效认证路径 sun.security.validator.PKIXValidator.doBuild(未知来源) 在 sun.security.validator.PKIXValidator.engineValidate(未知来源) 在 sun.security.validator.Validator.validate(未知来源) 在 sun.security.ssl.X509TrustManagerImpl.validate(未知来源) 在 sun.security.ssl.X509TrustManagerImpl.checkServerTrus ted(未知来源) ...27 更多 原因: sun.security.provider.certpath.SunCertPathBuilderException: 无法找到指向请求目标 的有效认证路径 在 sun.security.provider.certpath.SunCertPathBuilder.build(未知来源) 在 sun.security.provider.certpath.sunCertPathBuilder.engineBuild(未知来源) 在 java.security.cert.CertPathBuilder.build(未知来源) ...另外 33 个考虑库 com.google.errorprone:error_prone_annotations:2.1.3 从 https://maven.creeperhost.net/com/google/errorprone/error_prone_annotations/2.1.3/error_prone_annotations-2.1.3.jar 下载库 下载已完成:校验和验证。 考虑到库 com.google.guava:guava:25.1-jre 从 https://maven.creeperhost.net/com/google/guava/guava/25.1-jre/guava-25.1-jre.jar 下载库下载已完成:校验和已验证。 考虑到库 com.google.j2objc:j2objc-annotations:1.1 从 https://maven.creeperhost.net/com/google/j2objc/j2objc-annotations/1.1/j2objc-annotations-1.1.jar 下载库 下载已完成:校验和已验证。 考虑库 com.nothome:javaxdelta:2.0.1 从 https://maven.creeperhost.net/com/nothome/javaxdelta/2.0.1/javaxdelta-2.0.1.jar 下载库下载已完成:校验和已验证。 考虑库 commons-io:commons-io:2.4 从 https://libraries.minecraft.net/commons-io/commons-io/2.4/commons-io-2.4.jar 下载库 无法建立与 https://libraries.minecraft.net/commons-io/commons-io/2.4/commons-io-2.4.jar 主机的连接:libraries.minecraft.net [127.0.0.1] javax.net.ssl.SSLHandshakeException: sun.security.validator.ValidatorException:PKIX 路径构建失败: sun.security.provider.certpath.SunCertPathBuilderException: 无法找到指向请求目标 的有效认证路径 在 sun.security.ssl.Alert.createSSLException(未知来源) 在 sun.security.ssl.TransportContext.fatal(未知来源) 在 sun.security.ssl.TransportContext.fatal(未知来源 ) 在 sun.security.ssl.CertificateMessage$T13CertificateConsumer.checkServerCerts(未知来源) at sun.security.ssl.CertificateMessage$T13CertificateConsumer.onConsumeCertificate(未知来源) at sun.security.ssl.CertificateMessage$T13CertificateConsumer.consume(未知来源) at sun.security.ssl.SSLHandshake.consume(未知来源) at sun.security.ssl.HandshakeContext.dispatch(未知来源) at sun.security.ssl.HandshakeContext.dispatch(未知来源) 在 sun.security.ssl.TransportContext.dispatch(未知来源) 在 sun.security.ssl.SSLTransport.decode(未知来源) 在 sun.security.ssl.SSLSocketImpl.decode(未知来源) 在 sun.security.ssl.SSLSocketImpl.readHandshakeRecord(未知来源) 在 sun.security.ssl.SSLSocketImpl.st artHandshake(未知来源) at sun.net.www.protocol.https.HttpsClient.afterConnect(未知来源) at sun.net.www.protocol.https.AbstractDelegateHttpsURLConnection.connect(未知来源) at sun.net.www.protocol.http.HttpURLConnection.getInputStream0(未知来源) at sun.net.www.protocol.http.HttpURLConnection.getInputStream(未知来源) at java.net.HttpURLConnection.getResponseCode(未知来源) at sun.net.www.protocol.https.HttpsURLConnectionImpl.getResponseCode(未知来源) at net.minecraftforge.installer.DownloadUtils.getConnection(DownloadUtils.java:240) at net.minecraftforge.installer.DownloadUtils.download(DownloadUtils.java:174) at net.minecraftforge.installer.DownloadUtils.download(DownloadUtils.java:164) at net.minecraftforge.installer.DownloadUtils.downloadLibrary(DownloadUtils.java:149) at net.minecraftforge.installer.actions.Action.downloadLibraries(Action.java:73) at net.minecraftforge.installer.actions.ServerInstall.run(ServerInstall.java:72) at net.minecraftforge.installer.InstallerPanel.run(InstallerPanel.java:271) at net.minecraftforge.installer.SimpleInstaller.launchGui(SimpleInstaller.java:182) at net.minecraftforge.installer.SimpleInstaller.main(SimpleInstaller.java:154) 原因: sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certifica请求目标 的路径 at sun.security.validator.PKIXValidator.doBuild(未知来源) at sun.security.validator.PKIXValidator.engineValidate(未知来源) at sun.security.validator.Validator.validate(未知来源) at sun.security.ssl.X509TrustManagerImpl.validate(未知来源) at sun.security.ssl.X509TrustManagerImpl.checkTrusted( 未知来源) ...artHandshake(未知来源) 在 sun.net.www.protocol.https.HttpsClient.afterConnect(未知来源) 在 sun.net.www.protocol.https.AbstractDelegateHttpsURLConnection.connect(未知来源) 在 sun.net.www.protocol.http.HttpURLConnection.getInputStream0(未知来源) 在 java.net。HttpURLConnection.getResponseCode(未知来源) 在 sun.net.www.protocol.https.Https.HttpsURLConnectionImpl.getResponseCode(未知来源) 在 net.minecraftforge.installer.DownloadUtils.getConnection(DownloadUtils.java:240) 在 net.minecraftforge.installer.DownloadUtils.download(DownloadUtils.java:174) https://maven.creeperhost.net/de/oceanlabs/mcp/mcp_config/1.20.1-20230612.114412/mcp_config-1.20.1-20230612.114412.zip 在 net.minecraftforge.installer.DownloadUtils.download(DownloadUtils.java:164) 在 net.minecraft.installer.DownloadUtils.downloadLibrary(DownloadUtils.java:149) 在 net.minecraftforge.installer.actions.Action.downloadLibraries(Action.java:73) 在 net.minecraftforge.installer.actions.ServerInstall.run(ServerInstall.java:72) https://maven.creeperhost.net/de/siegmar/fastcsv/2.2.2/fastcsv-2.2.2.jar 在 net.minecraftforge.installer.InstallerPanel.run(InstallerPanel.java:271) 在 net.minecraftforge.installer.SimpleInstaller.launchG1317>考虑库 net.minecraftforge:binarypatcher:1.1.1 从 https://maven.creeperhost.net/net/minecraftforge/binarypatcher/1.1.1/binarypatcher-1.1.1.jar 下载库 下载已完成:校验和已验证。 考虑到库 net.minecraftforge:fmlcore:1.20.1-47.3.12 从 https://maven.creeperhost.net/net/minecraftforge/fmlcore/1.20.1-47.3.12/fmlcore-1.20.1-47.3.12.jar 下载库 下载完成:校验和验证。 考虑到库 net.minecraftforge:fmlearlydisplay:1.20.1-47.3.12 文件存在:校验和验证。 考虑到库 net.minecraftforge:fmlloader:1.20.1-47.3.12 文件存在:校验和已验证。 考虑到库 net.minecraftforge:forge:1.20.1-47.3.12:universal 从 https://maven.creeperhost.net/net/minecraftforge/forge/1.20.1-47.3.12/forge-1.20.1-47.3.12-universal.jar 下载库下载完成:校验和验证。 考虑库 net.minecraftforge:installertools:1.4.1 从 https://maven.creeperhost.net/net/minecraftforge/installertools/1.4.1/installertools-1.4.1.jar 下载库 下载完成:校验和验证。 考虑库 net.minecraftforge:jarsplitter:1.1.4 从 https://maven.creeperhost.net/net/minecraftforge/jarsplitter/1.1.4/jarsplitter-1.1.4.jar 下载库 下载完成:校验和验证。 考虑库 net.minecraftforge:javafmllanguage:1.20.1-47.3.12 从 https://maven.creeperhost.net/net/minecraftforge/javafmllanguage/1.20.1-47.3.12/javafmllanguage-1.20.1-47.3.12.jar 下载库 下载完成:校验和验证。 考虑库 net.minecraftforge:lowcodelanguage:1.20.1-47.3.12 从 https://maven.creeperhost.net/net/minecraftforge/lowcodelanguage/1.20.1-47.3.12/lowcodelanguage-1.20.1-47.3.12.jar 下载库 下载完成:校验和验证。 考虑库 net.minecraftforge:mclanguage:1.20.1-47.3.12 从 https://maven.creeperhost.net/net/minecraftforge/mclanguage/1.20.1-47.3.12/mclanguage-1.20.1-47.3.12.jar 下载库 下载完成:校验和验证。 考虑库 net.minecraftforge:srgutils:0.4.3 从 https://maven.creeperhost.net/net/minecraftforge/srgutils/0.4.3/srgutils-0.4.3.jar 下载库 下载已完成:校验和验证。 考虑库 net.minecraftforge:srgutils:0.4.9 从 https://maven.creeperhost.net/net/minecraftforge/srgutils/0.4.9/srgutils-0.4.9.jar 下载库 下载完成:校验和验证。 考虑库 net.minecraftforge:srgutils:0.5.6 从 https://maven.creeperhost.net/net/minecraftforge/srgutils/0.5.6/srgutils-0.5.6.jar 下载库 下载完成:校验和验证。 考虑库 net.sf.jopt-simple:jopt-simple:5.0.4 从 https://libraries.minecraft.n 下载库et/net/sf/jopt-simple/jopt-simple/5.0.4/jopt-simple-5.0.4.jar 无法建立与主机的连接 https://libraries.minecraft.net/net/sf/jopt-simple/jopt-simple/5.0.4/jopt-simple-5.0.4.jar 主机:libraries.minecraft.net [127.0.0.1] javax.net.ssl.SSLHandshakeException: sun.security.validator.ValidatorException: PKIX 路径构建失败: sun.security.provider.certpath.SunCertPathBuilderException: 无法在 sun.security.ssl.Alert.createSSLException(U 上找到指向请求目标 的有效证书路径)未知来源) 在 sun.security.ssl.TransportContext.fatal(未知来源) 在 sun.security.ssl.TransportContext.fatal(未知来源) 在 sun.security.ssl.TransportContext.fatal(未知来源) 在 sun.security.ssl.CertificateMessage$T13CertificateConsumer.checkServerCerts(未知来源) 在 sun.security.ssl.CertificateMessage$T13CertificateConsumer.onConsumeCertificate(未知来源) 在 sun.security.ssl.SSLHandshake.consume(未知来源) at sun.security.ssl.HandshakeContext.dispatch(未知来源) on sun.security.ssl.HandshakeContext.dispatch(未知来源) sun.security.ssl.TransportContext.dispatch(未知来源) sun.security.ssl.SSLTransport.decode(未知来源) on sun.security.ssl.SSLSocketImpl.decode(未知来源) sun.security.ssl.SSLSocketImpl.readHandshakeRecord(未知来源) ource) 在 sun.security.ssl.SSLSocketImpl.startHandshake(未知来源) 在 sun.net.www.protocol.https.Https.HttpsClient.afterConnect(未知来源) 在 sun.net.www.protocol.https.AbstractDelegateHttpsURLConnection.connect(未知来源) 在 sun.net.www.protocol.http.HttpURLConnection.getInputStream0(未知来源) 在 sun.net.www.protocol.http.HttpURLConnection.getInputStream(未知来源) 在 sun.net.www.protocol.https.HttpsURLConnectionImpl.getResponseCode(未知来源) 在 net.minecraftforge.installer.DownloadUtils.getConnection(DownloadUtils.java:240) 在 net.minecraftforge.installer.DownloadUtils.download(DownloadUtils.java:174) 在 net.minecraftforge.installer.DownloadUtils.download(DownloadUtils.java:164) 在 net.minecraftforge.installer.DownloadUtils.downloadLibrary(DownloadUtils.java:149) 在 net.minecraftforge.installer.actions.Action.downloadLibraries(Action.java:73) 在 net.minecraftforge.installer.actions.ServerInstall.run(ServerInstall.java:72) at net.minecraftforge.installer.InstallerPanel.run(InstallerPanel.java:271) at net.minecraftforge.installer.SimpleInstaller.launchGui(SimpleInstaller.java:182) at net.minecraftforge.installer.SimpleInstaller.main(SimpleInstaller.java:154) 原因:sun.security.validator.ValidatorException:PKIX 路径构建失败:sun.security.provider.certpath.SunCertPathBuilderException:无法在 sun.security 中找到指向请求目标 的有效证书路径。验证器。PKIXValidator.doBuild(未知来源) at sun.security.validator.PKIXValidator.engineValidate(未知来源) at sun.security.validator.Validator.validate(未知来源) at sun.security.ssl.X509TrustManagerImpl.validate(未知来源) at sun.security.ssl.X509TrustManagerImpl.checkTrusted(未知来源 ) ...27 更多 原因:sun.security.provider.certpath.SunCertPathBuilderException:无法找到指向请求目标 的有效认证路径 在 sun.security.provider.certpath.SunCertPathBuilder.build(未知源) 在 sun.security.provider.certpath.sunCertPathBuilder.engineBuild(未知源) 在 java.security.cert.CertPathBuilder.build(未知源) ...另外 33 个考虑库 net.sf.jopt-simple:jopt-simple:6.0-alpha-3 从 https://maven.creeperhost.net/net/sf/jopt-simple/jopt-simple/6.0-alpha-3/jopt-simple-6.0-alpha-3.jar 下载库 下载完成:校验和验证。 考虑到库 org.checkerframework:checker-qual:2.0.0 从 https://maven.creeperhost.net/org/checkerframework/checker-qual/2.0.0/checker-qual-2.0.0.jar 下载库 下载已完成:校验和已验证。 考虑库 org.codehaus.mojo:animal-sniffer-annotations:1.14 从 https://maven.creeperhost.net/org/codehaus/mojo/animal-sniffer-annotations/1.14/animal-sniffer-annotations-1.14.jar 下载库下载完成:校验和验证。 考虑库 org.ow2.asm:asm-analysis:9.2 从 https://maven.creeperhost.net/org/ow2/asm/asm-analysis/9.2/asm-analysis-9.2.jar 库 org.ow2.asm:asm-analysis:9.2 从库 org.ow2.asm:asm-commons:9.2 下载库 https://maven.creeperhost.net/org/ow2/asm/asm-commons/9.2/asm-commons-9.2.jar 下载完成:校验和验证。 考虑库 org.ow2.asm:asm-commons:9.6 从库 org.ow2.asm:asm-commons:9.6 下载库 https://maven.creeperhost.net/org/ow2/asm/asm-commons/9.6/asm-commons-9.6.jar 下载完成:校验和验证。 考虑库 org.ow2.asm:asm-tree:9.2 从 https://maven.creeperhost.net/org/ow2/asm/asm-tree/9.2/asm-tree-9.2.jar 库 org.ow2.asm:asm-commons:9.2 下载库 下载完成:校验和验证。 考虑库 org.ow2.asm:asm-tree:9.6 从库 org.ow2.asm:asm-tree:9.6 下载库 https://maven.creeperhost.net/org/ow2/asm/asm-tree/9.6/asm-tree-9.6.jar 下载完成:校验和验证。 考虑库 org.ow2.asm:asm:9.2 从 https://maven.creeperhost.net/org/ow2/asm/asm/9.2/asm-9.2.jar 库 org.ow2.asm:asm:9.2 下载完成:校验和验证。 考虑库 org.ow2.asm:asm:9.6 从 https://maven.creeperhost.net/org/ow2/asm/asm/9.6/asm-9.6.jar 下载库下载已完成:校验和已验证。 考虑库 trove:trove:1.0.2 从 https://maven.creeperhost.net/trove/trove/1.0.2/trove-1.0.2.jar 下载库下载已完成:校验和已验证。 这些库下载失败。 再试一次。 com.google.code.findbugs:jsr305:3.0.2 com.google.code.gson:gson:2.10.1 commons-io:commons-io:2.4 net.sf.jopt-simple:jopt-simple:5.0.4 There was an error during installation  
    • Maybe some kind of bug with Pixelmon - something with Raids   Report it to the Creators
    • Did you make changes at the paper-global.yml file?   If not, delete this file and restart the server
    • My friends and I are playing a modified version of BMC4 and we're noticing stuff like passive mobs. (I think) like creatures/animals from Alex mobs, naturalist, let's do nature and even vanilla MC (sheep, cow, pigs, chickens, horses, donkeys) don't really spawn in, unlike the sea creatures and hostile monsters spawn in just fine and normal numbers. Here is a mod list from a crash report: https://pastebin.ubuntu.com/p/K9vJxxx6n4/ Just a quick copy and paste of the mod list from an unrelated crash report If anything please let me know if I should post pics of the mods from my mods folder I want to know how to increase their spawn rate/amount and if there are any mods that are causing the scarce appearances of these mobs
    • I'm locally hosting a server and when Connecting to it Me (and my friends) get disconnected with the Warning:  [00:55:21] [Server thread/INFO] [minecraft/ServerGamePacketListenerImpl]: butterrocker lost connection: Disconnected [00:55:21] [Server thread/INFO] [minecraft/MinecraftServer]: butterrocker left the game [00:55:21] [Server thread/WARN] [minecraft/Connection]: handleDisconnection() called twice Server latest.log Client latest.log This server is hosted locally, Minecraft ver 1.20.1 and forge ver 47.3.22 I can connect the the sever just fine locally, but when connecting to the IP Others and I cannot connect, I've changed "-Dfml.readTimeout=240" from 30 to 240, to no affect.  I've removed the client side config files, to No avail, Checked mod vers by moving around the files, still nothing. I'm at a loss currently. Yesterday 1/13/25 everything worked fine and My friends and I could all connect, but now we cannot. Any assistance would be greatly appreciated.  If any further information is required please let me know, Thanks!
  • Topics

×
×
  • Create New...

Important Information

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