Jump to content

Recommended Posts

Posted

Im getting this error when:

-trying to make superflat world with top layer of my new block

-tryig to send a chat message to player

-trying to set block on right click

2013-06-09 14:08:23 [sEVERE] [ForgeModLoader] The ForgeModLoader state engine has become corrupted. Probably, a state was missed by and invalid modification to a base classForgeModLoader depends on. This is a critical error and not recoverable. Investigate any modifications to base classes outside ofForgeModLoader, especially Optifine, to see if there are fixes available.

2013-06-09 14:08:23 [iNFO] [sTDERR] Exception in thread "Server thread" java.lang.RuntimeException: The ForgeModLoader state engine is invalid

2013-06-09 14:08:23 [iNFO] [sTDERR] at cpw.mods.fml.common.LoadController.transition(LoadController.java:139)

2013-06-09 14:08:23 [iNFO] [sTDERR] at cpw.mods.fml.common.Loader.serverStopped(Loader.java:801)

2013-06-09 14:08:23 [iNFO] [sTDERR] at cpw.mods.fml.common.FMLCommonHandler.handleServerStopped(FMLCommonHandler.java:468)

2013-06-09 14:08:23 [iNFO] [sTDERR] at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:531)

2013-06-09 14:08:23 [iNFO] [sTDERR] at net.minecraft.server.ThreadMinecraftServer.run(ThreadMinecraftServer.java:16)

Posted

Full logs typically this is caused by an error that is printed above this.

I do Forge for free, however the servers to run it arn't free, so anything is appreciated.
Consider supporting the team on Patreon

Posted

hmm okay here is the full log when creating that superflat world:

2013-06-09 20:13:43 [iNFO] [ForgeModLoader] Forge Mod Loader version 5.2.21.725 for Minecraft 1.5.2 loading
2013-06-09 20:13:43 [iNFO] [ForgeModLoader] Java is Java HotSpot(TM) Client VM, version 1.7.0_21, running on Windows 7:x86:6.1, installed at C:\Program Files (x86)\Java\jre7
2013-06-09 20:13:43 [iNFO] [ForgeModLoader] Managed to load a deobfuscated Minecraft name- we are in a deobfuscated environment. Skipping runtime deobfuscation
2013-06-09 20:13:44 [iNFO] [sTDOUT] 229 recipes
2013-06-09 20:13:44 [iNFO] [sTDOUT] 27 achievements
2013-06-09 20:13:45 [iNFO] [Minecraft-Client] Setting user: Player91
2013-06-09 20:13:45 [iNFO] [sTDOUT] (Session ID is -)
2013-06-09 20:13:45 [iNFO] [sTDERR] Client asked for parameter: server
2013-06-09 20:13:45 [iNFO] [Minecraft-Client] LWJGL Version: 2.4.2
2013-06-09 20:13:45 [iNFO] [MinecraftForge] Attempting early MinecraftForge initialization
2013-06-09 20:13:45 [iNFO] [sTDOUT] MinecraftForge v7.8.0.725 Initialized
2013-06-09 20:13:45 [iNFO] [ForgeModLoader] MinecraftForge v7.8.0.725 Initialized
2013-06-09 20:13:45 [iNFO] [sTDOUT] Replaced 85 ore recipies
2013-06-09 20:13:45 [iNFO] [MinecraftForge] Completed early MinecraftForge initialization
2013-06-09 20:13:45 [iNFO] [ForgeModLoader] Reading custom logging properties from C:\Dropbox\WS\Minecraft\Projects\SkyInfinity\2\forge\mcp\jars\config\logging.properties
2013-06-09 20:13:45 [OFF] [ForgeModLoader] Logging level for ForgeModLoader logging is set to ALL
2013-06-09 20:13:45 [iNFO] [ForgeModLoader] Searching C:\Dropbox\WS\Minecraft\Projects\SkyInfinity\2\forge\mcp\jars\mods for mods
2013-06-09 20:13:46 [iNFO] [ForgeModLoader] Forge Mod Loader has identified 4 mods to load
2013-06-09 20:13:46 [iNFO] [mcp] Activating mod mcp
2013-06-09 20:13:46 [iNFO] [FML] Activating mod FML
2013-06-09 20:13:46 [iNFO] [Forge] Activating mod Forge
2013-06-09 20:13:46 [iNFO] [skyInfinity] Activating mod SkyInfinity
2013-06-09 20:13:46 [iNFO] [ForgeModLoader] Registering Forge Packet Handler
2013-06-09 20:13:46 [iNFO] [ForgeModLoader] Succeeded registering Forge Packet Handler
2013-06-09 20:13:47 [iNFO] [ForgeModLoader] Configured a dormant chunk cache size of 0
2013-06-09 20:13:47 [iNFO] [sTDOUT] 
2013-06-09 20:13:47 [iNFO] [sTDOUT] Starting up SoundSystem...
2013-06-09 20:13:47 [iNFO] [sTDOUT] Initializing LWJGL OpenAL
2013-06-09 20:13:47 [iNFO] [sTDOUT]     (The LWJGL binding of OpenAL.  For more information, see http://www.lwjgl.org)
2013-06-09 20:13:47 [iNFO] [sTDOUT] OpenAL initialized.
2013-06-09 20:13:47 [iNFO] [sTDOUT] 
2013-06-09 20:13:48 [iNFO] [ForgeModLoader] Forge Mod Loader has detected an older LWJGL version, new advanced texture animation features are disabled
2013-06-09 20:13:48 [iNFO] [ForgeModLoader] Not using advanced OpenGL 4.3 advanced capability for animations : OpenGL 4.3 is not available
2013-06-09 20:13:48 [iNFO] [Minecraft-Client] Found animation info for: textures/blocks/lava_flow.txt
2013-06-09 20:13:48 [iNFO] [Minecraft-Client] Found animation info for: textures/blocks/water_flow.txt
2013-06-09 20:13:48 [iNFO] [Minecraft-Client] Found animation info for: textures/blocks/fire_0.txt
2013-06-09 20:13:48 [iNFO] [Minecraft-Client] Found animation info for: textures/blocks/fire_1.txt
2013-06-09 20:13:48 [iNFO] [Minecraft-Client] Found animation info for: textures/blocks/lava.txt
2013-06-09 20:13:48 [iNFO] [Minecraft-Client] Found animation info for: textures/blocks/portal.txt
2013-06-09 20:13:48 [iNFO] [Minecraft-Client] Found animation info for: textures/blocks/water.txt
2013-06-09 20:13:49 [iNFO] [Minecraft-Client] Found animation info for: textures/items/clock.txt
2013-06-09 20:13:49 [iNFO] [Minecraft-Client] Found animation info for: textures/items/compass.txt
2013-06-09 20:13:49 [iNFO] [ForgeModLoader] Forge Mod Loader has successfully loaded 4 mods
2013-06-09 20:13:50 [iNFO] [sTDERR] java.io.IOException: Server returned HTTP response code: 503 for URL: http://s3.amazonaws.com/MinecraftResources/
2013-06-09 20:13:50 [iNFO] [sTDERR] 	at sun.net.www.protocol.http.HttpURLConnection.getInputStream(Unknown Source)
2013-06-09 20:13:50 [iNFO] [sTDERR] 	at net.minecraft.util.ThreadDownloadResources.run(ThreadDownloadResources.java:57)
2013-06-09 20:13:50 [iNFO] [Minecraft-Client] Found animation info for: textures/blocks/lava_flow.txt
2013-06-09 20:13:50 [iNFO] [Minecraft-Client] Found animation info for: textures/blocks/water_flow.txt
2013-06-09 20:13:50 [iNFO] [Minecraft-Client] Found animation info for: textures/blocks/fire_0.txt
2013-06-09 20:13:50 [iNFO] [Minecraft-Client] Found animation info for: textures/blocks/fire_1.txt
2013-06-09 20:13:50 [iNFO] [Minecraft-Client] Found animation info for: textures/blocks/lava.txt
2013-06-09 20:13:50 [iNFO] [Minecraft-Client] Found animation info for: textures/blocks/portal.txt
2013-06-09 20:13:50 [iNFO] [Minecraft-Client] Found animation info for: textures/blocks/water.txt
2013-06-09 20:13:50 [iNFO] [sTDERR] java.lang.RuntimeException: Don't register null!
2013-06-09 20:13:50 [iNFO] [sTDERR] 	at net.minecraft.client.renderer.texture.TextureMap.registerIcon(TextureMap.java:229)
2013-06-09 20:13:50 [iNFO] [sTDERR] 	at net.minecraft.item.Item.registerIcons(Item.java:732)
2013-06-09 20:13:50 [iNFO] [sTDERR] 	at net.minecraft.client.renderer.texture.TextureMap.refreshTextures(TextureMap.java:85)
2013-06-09 20:13:50 [iNFO] [sTDERR] 	at net.minecraft.client.renderer.RenderEngine.refreshTextureMaps(RenderEngine.java:522)
2013-06-09 20:13:50 [iNFO] [sTDERR] 	at net.minecraft.client.renderer.RenderEngine.refreshTextures(RenderEngine.java:433)
2013-06-09 20:13:50 [iNFO] [sTDERR] 	at cpw.mods.fml.client.FMLClientHandler.onInitializationComplete(FMLClientHandler.java:258)
2013-06-09 20:13:50 [iNFO] [sTDERR] 	at net.minecraft.client.Minecraft.startGame(Minecraft.java:479)
2013-06-09 20:13:50 [iNFO] [sTDERR] 	at net.minecraft.client.MinecraftAppletImpl.startGame(MinecraftAppletImpl.java:44)
2013-06-09 20:13:50 [iNFO] [sTDERR] 	at net.minecraft.client.Minecraft.run(Minecraft.java:733)
2013-06-09 20:13:50 [iNFO] [sTDERR] 	at java.lang.Thread.run(Unknown Source)
2013-06-09 20:13:50 [WARNING] [Minecraft-Client] TextureManager.createTexture called for file textures/items/null.png, but that file does not exist. Ignoring.
2013-06-09 20:13:51 [iNFO] [Minecraft-Client] Found animation info for: textures/items/clock.txt
2013-06-09 20:13:51 [iNFO] [Minecraft-Client] Found animation info for: textures/items/compass.txt
2013-06-09 20:14:13 [iNFO] [Minecraft-Server] Starting integrated minecraft server version 1.5.2
2013-06-09 20:14:13 [iNFO] [Minecraft-Server] Generating keypair
2013-06-09 20:14:13 [iNFO] [Minecraft-Server] Converting map!
2013-06-09 20:14:13 [iNFO] [Minecraft-Server] Scanning folders...
2013-06-09 20:14:13 [iNFO] [Minecraft-Server] Total conversion count is 0
2013-06-09 20:14:19 [iNFO] [ForgeModLoader] Loading dimension 0 (New World) (net.minecraft.server.integrated.IntegratedServer@2e1990)
2013-06-09 20:14:19 [WARNING] [Minecraft-Server] Unable to find spawn biome
2013-06-09 20:14:24 [iNFO] [ForgeModLoader] Loading dimension 20 (New World) (net.minecraft.server.integrated.IntegratedServer@2e1990)
2013-06-09 20:14:24 [iNFO] [ForgeModLoader] Loading dimension 1 (New World) (net.minecraft.server.integrated.IntegratedServer@2e1990)
2013-06-09 20:14:24 [iNFO] [ForgeModLoader] Loading dimension -1 (New World) (net.minecraft.server.integrated.IntegratedServer@2e1990)
2013-06-09 20:14:24 [iNFO] [Minecraft-Server] Preparing start region for level 0
2013-06-09 20:14:25 [iNFO] [Minecraft-Server] Preparing spawn area: 17%
2013-06-09 20:14:26 [iNFO] [Minecraft-Server] Preparing spawn area: 34%
2013-06-09 20:14:27 [iNFO] [Minecraft-Server] Preparing spawn area: 53%
2013-06-09 20:14:28 [iNFO] [Minecraft-Server] Preparing spawn area: 74%
2013-06-09 20:14:29 [iNFO] [Minecraft-Server] Preparing spawn area: 94%
2013-06-09 20:14:29 [iNFO] [sTDERR] java.lang.NullPointerException
2013-06-09 20:14:29 [iNFO] [sTDERR] 	at net.minecraft.world.World.getTopSolidOrLiquidBlock(World.java:2002)
2013-06-09 20:14:29 [iNFO] [sTDERR] 	at net.minecraft.world.WorldProvider.getRandomizedSpawnPoint(WorldProvider.java:389)
2013-06-09 20:14:29 [iNFO] [sTDERR] 	at net.minecraft.entity.player.EntityPlayerMP.<init>(EntityPlayerMP.java:167)
2013-06-09 20:14:29 [iNFO] [sTDERR] 	at net.minecraft.server.management.ServerConfigurationManager.createPlayerForUser(ServerConfigurationManager.java:383)
2013-06-09 20:14:29 [iNFO] [sTDERR] 	at net.minecraft.server.integrated.IntegratedServerListenThread.networkTick(IntegratedServerListenThread.java:91)
2013-06-09 20:14:29 [iNFO] [sTDERR] 	at net.minecraft.server.MinecraftServer.updateTimeLightAndEntities(MinecraftServer.java:675)
2013-06-09 20:14:29 [iNFO] [sTDERR] 	at net.minecraft.server.MinecraftServer.tick(MinecraftServer.java:571)
2013-06-09 20:14:29 [iNFO] [sTDERR] 	at net.minecraft.server.integrated.IntegratedServer.tick(IntegratedServer.java:127)
2013-06-09 20:14:29 [iNFO] [sTDERR] 	at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:469)
2013-06-09 20:14:29 [iNFO] [sTDERR] 	at net.minecraft.server.ThreadMinecraftServer.run(ThreadMinecraftServer.java:16)
2013-06-09 20:14:29 [sEVERE] [Minecraft-Server] Encountered an unexpected exception NullPointerException
java.lang.NullPointerException
at net.minecraft.world.World.getTopSolidOrLiquidBlock(World.java:2002)
at net.minecraft.world.WorldProvider.getRandomizedSpawnPoint(WorldProvider.java:389)
at net.minecraft.entity.player.EntityPlayerMP.<init>(EntityPlayerMP.java:167)
at net.minecraft.server.management.ServerConfigurationManager.createPlayerForUser(ServerConfigurationManager.java:383)
at net.minecraft.server.integrated.IntegratedServerListenThread.networkTick(IntegratedServerListenThread.java:91)
at net.minecraft.server.MinecraftServer.updateTimeLightAndEntities(MinecraftServer.java:675)
at net.minecraft.server.MinecraftServer.tick(MinecraftServer.java:571)
at net.minecraft.server.integrated.IntegratedServer.tick(IntegratedServer.java:127)
at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:469)
at net.minecraft.server.ThreadMinecraftServer.run(ThreadMinecraftServer.java:16)
2013-06-09 20:14:29 [sEVERE] [Minecraft-Server] This crash report has been saved to: C:\Dropbox\WS\Minecraft\Projects\SkyInfinity\2\forge\mcp\jars\.\crash-reports\crash-2013-06-09_20.14.29-server.txt
2013-06-09 20:14:29 [iNFO] [Minecraft-Server] Stopping server
2013-06-09 20:14:29 [iNFO] [Minecraft-Server] Saving players
2013-06-09 20:14:29 [iNFO] [Minecraft-Server] Saving worlds
2013-06-09 20:14:29 [iNFO] [Minecraft-Server] Saving chunks for level 'New World'/Overworld
2013-06-09 20:14:30 [iNFO] [Minecraft-Server] Saving chunks for level 'New World'/Nether
2013-06-09 20:14:30 [iNFO] [Minecraft-Server] Saving chunks for level 'New World'/The End
2013-06-09 20:14:30 [iNFO] [Minecraft-Server] Saving chunks for level 'New World'/Moon
2013-06-09 20:14:36 [iNFO] [ForgeModLoader] Unloading dimension 0
2013-06-09 20:14:36 [iNFO] [ForgeModLoader] Unloading dimension -1
2013-06-09 20:14:36 [iNFO] [ForgeModLoader] Unloading dimension 1
2013-06-09 20:14:36 [iNFO] [ForgeModLoader] Unloading dimension 20
2013-06-09 20:14:36 [sEVERE] [ForgeModLoader] Fatal errors were detected during the transition from SERVER_STARTED to SERVER_STOPPED. Loading cannot continue
2013-06-09 20:14:36 [sEVERE] [ForgeModLoader] 
mcp{7.44} [Minecraft Coder Pack] (minecraft.jar) Unloaded->Constructed->Pre-initialized->Initialized->Post-initialized->Available->Available->Available->Available->Available
FML{5.2.21.725} [Forge Mod Loader] (coremods) Unloaded->Constructed->Pre-initialized->Initialized->Post-initialized->Available->Available->Available->Available->Available
Forge{7.8.0.725} [Minecraft Forge] (coremods) Unloaded->Constructed->Pre-initialized->Initialized->Post-initialized->Available->Available->Available->Available->Available
SkyInfinity{0.0.1} [sky Infinity] (bin) Unloaded->Constructed->Pre-initialized->Initialized->Post-initialized->Available->Available->Available->Available->Available
2013-06-09 20:14:36 [sEVERE] [ForgeModLoader] The ForgeModLoader state engine has become corrupted. Probably, a state was missed by and invalid modification to a base classForgeModLoader depends on. This is a critical error and not recoverable. Investigate any modifications to base classes outside ofForgeModLoader, especially Optifine, to see if there are fixes available.
2013-06-09 20:14:36 [iNFO] [sTDERR] Exception in thread "Server thread" java.lang.RuntimeException: The ForgeModLoader state engine is invalid
2013-06-09 20:14:36 [iNFO] [sTDERR] 	at cpw.mods.fml.common.LoadController.transition(LoadController.java:139)
2013-06-09 20:14:36 [iNFO] [sTDERR] 	at cpw.mods.fml.common.Loader.serverStopped(Loader.java:801)
2013-06-09 20:14:36 [iNFO] [sTDERR] 	at cpw.mods.fml.common.FMLCommonHandler.handleServerStopped(FMLCommonHandler.java:468)
2013-06-09 20:14:36 [iNFO] [sTDERR] 	at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:531)
2013-06-09 20:14:36 [iNFO] [sTDERR] 	at net.minecraft.server.ThreadMinecraftServer.run(ThreadMinecraftServer.java:16)
2013-06-09 20:14:39 [iNFO] [Minecraft-Client] Stopping!
2013-06-09 20:14:39 [iNFO] [sTDOUT] 
2013-06-09 20:14:39 [iNFO] [sTDOUT] SoundSystem shutting down...
2013-06-09 20:14:40 [iNFO] [sTDOUT]     Author: Paul Lamb, www.paulscode.com
2013-06-09 20:14:40 [iNFO] [sTDOUT] 

 

EDIT: I can join that world when opening minecrfat again but it has no layer with my block, just dirt and bedrock

Posted

Seems like your block ids are not bytes, thats your problem.

Not to mention you're registering a null icon, both are problems you should fix.

I do Forge for free, however the servers to run it arn't free, so anything is appreciated.
Consider supporting the team on Patreon

Posted

Byte? IDs should be bytes? my IDs are ints (like in vannilla game) so i tried to change them to bytes ut it throws ArrayOutOfBounds Exception.

Here´s my code:

BlockNormal.java

package skyinf;

import java.util.Random;

import net.minecraft.block.Block;
import net.minecraft.block.material.Material;

public class BlockNormal extends Block {

public BlockNormal(int id, Material material) {
	super(id, material);

}
}

BaseMod.java:

package skyinf;

import net.minecraft.block.Block;
import net.minecraft.block.material.Material;
import net.minecraft.creativetab.CreativeTabs;
import net.minecraft.item.EnumArmorMaterial;
import net.minecraft.item.Item;
import net.minecraft.item.ItemStack;
import net.minecraft.world.biome.BiomeGenBase;
import net.minecraftforge.common.DimensionManager;
import net.minecraftforge.common.EnumHelper;
import cpw.mods.fml.common.Mod;
import cpw.mods.fml.common.Mod.Init;
import cpw.mods.fml.common.Mod.Instance;
import cpw.mods.fml.common.Mod.PostInit;
import cpw.mods.fml.common.Mod.PreInit;
import cpw.mods.fml.common.SidedProxy;
import cpw.mods.fml.common.event.FMLInitializationEvent;
import cpw.mods.fml.common.event.FMLPostInitializationEvent;
import cpw.mods.fml.common.event.FMLPreInitializationEvent;
import cpw.mods.fml.common.network.NetworkMod;
import cpw.mods.fml.common.registry.GameRegistry;
import cpw.mods.fml.common.registry.LanguageRegistry;

@Mod(modid = "SkyInfinity", name = "Sky Infinity", version = "0.0.1")
@NetworkMod(clientSideRequired = true, serverSideRequired = false)
public class ModBase {
// The instance of your mod that Forge uses.
@Instance("SkyInfinity")
public static ModBase instance;

// Says where the client and server 'proxy' code is loaded.
@SidedProxy(clientSide = "skyinf.ClientProxy", serverSide = "skyinf.CommonProxy")
public static CommonProxy proxy;


public static int dimension = 20;
// DEFINITIONS ===========================================

public static Block moonSand;
    public static Block debugPortal;
public static Block shipHull;
    
public static Item reCloth;
public static Item pLSS;
public static Item airBottle;
public static Item sSH;
public static Item sST;
public static Item sSL;
public static Item sSB;
    public static Item debug;

    public static EnumArmorMaterial armorSpaceSuit = EnumHelper.addArmorMaterial("SPACESUIT", 10, new int[] { 1, 1, 1, 1 }, 0);
    public static BiomeGenBase moonBiome;
@PreInit
public void preInit(FMLPreInitializationEvent event) {
	// Stub Method
}

@Init
    public void load(FMLInitializationEvent event) 
    {

            proxy.registerRenderers();            
            moonBiome = new BiomeGenMoon(53).setBiomeName("Moon Biome").setDisableRain();
            
            moonSand = new BlockNormal(500, Material.sand).setHardness(0.2F).setStepSound(Block.soundSandFootstep).setUnlocalizedName("siMoonSand").setCreativeTab(CreativeTabs.tabBlock);
            debugPortal = new BlockDPortal(509, Material.portal).setUnlocalizedName("siDebugPortal").setCreativeTab(CreativeTabs.tabMisc);
            shipHull = new BlockNormal(510, Material.iron).setCreativeTab(CreativeTabs.tabBlock).setUnlocalizedName("siShipHull").setResistance(0.7F);
            
            reCloth = new ItemNormal(501).setCreativeTab(CreativeTabs.tabMaterials).setUnlocalizedName("siReCloth");
            airBottle = new ItemNormal(502).setCreativeTab(CreativeTabs.tabMaterials).setUnlocalizedName("siAirBottle");
            pLSS = new ItemNormal(503).setCreativeTab(CreativeTabs.tabMaterials).setUnlocalizedName("siPLSS");

            sSH = new SpaceSuit(504, armorSpaceSuit, proxy.addArmor(armorSpaceSuit.name()), 0, "spacesuit_1" ).setCreativeTab(CreativeTabs.tabTools).setUnlocalizedName("siSSH");
            sST = new SpaceSuit(505, armorSpaceSuit, proxy.addArmor(armorSpaceSuit.name()), 1, "spacesuit_1" ).setCreativeTab(CreativeTabs.tabTools).setUnlocalizedName("siSST");
            sSL = new SpaceSuit(506, armorSpaceSuit, proxy.addArmor(armorSpaceSuit.name()), 2, "spacesuit_2" ).setCreativeTab(CreativeTabs.tabTools).setUnlocalizedName("siSSL");
            sSB = new SpaceSuit(507, armorSpaceSuit, proxy.addArmor(armorSpaceSuit.name()), 3, "spacesuit_1" ).setCreativeTab(CreativeTabs.tabTools).setUnlocalizedName("siSSB");
            
            debug = new ItemDebug(508).setCreativeTab(CreativeTabs.tabMisc);
            
            //Crafting recipes
            GameRegistry.addRecipe(new ItemStack(reCloth), " x ", "xyx", " x ",'x', (new ItemStack(Block.cloth)), 'y', (new ItemStack(Item.ingotIron)));
            GameRegistry.addRecipe(new ItemStack(pLSS), "xyx", "xcx", "xzx",'x', (new ItemStack(Item.ingotIron)), 'y', (new ItemStack(airBottle)), 'c', (new ItemStack(reCloth)), 'z', (new ItemStack(Item.redstone)));
            GameRegistry.addRecipe(new ItemStack(airBottle), "x", "x", 'x', (new ItemStack(Item.ingotIron)));
            GameRegistry.addRecipe(new ItemStack(sST), "x x", "xyx", "xxx", 'x', (new ItemStack(reCloth)), 'y', (new ItemStack(pLSS)));
            GameRegistry.addRecipe(new ItemStack(sSH), "xxx", "xyx", 'x', (new ItemStack(reCloth)), 'y', (new ItemStack(Block.thinGlass)));
            GameRegistry.addRecipe(new ItemStack(sSL), "xxx", "x x","x x", 'x', (new ItemStack(reCloth)));
            GameRegistry.addRecipe(new ItemStack(sSB), "x x", "x x", 'x', (new ItemStack(reCloth)));

            
            //Block registry
            GameRegistry.registerBlock(moonSand);
            GameRegistry.registerBlock(debugPortal);
            GameRegistry.registerBlock(shipHull);

            //Lang Registry 
            LanguageRegistry.addName(moonSand, "Moon Sand");
            LanguageRegistry.addName(debugPortal, "Debug Portal Block");
            
            LanguageRegistry.addName(reCloth, "Reinforced Cloth");
            LanguageRegistry.addName(pLSS, "Portable Life Support System");
            LanguageRegistry.addName(airBottle, "Air Bottle");
            LanguageRegistry.addName(sSH, "Space Suit Helmet");
            LanguageRegistry.addName(sST, "Space Suit Torso");
            LanguageRegistry.addName(sSL, "Space Suit Legs");
            LanguageRegistry.addName(sSB, "Space Suit Boots");
            LanguageRegistry.addName(shipHull, "Space Ship Hull");

            
            
            //MOON DIMENOON
            DimensionManager.registerProviderType(dimension, WorldProviderMoon.class, false);
            DimensionManager.registerDimension(dimension, dimension);
    }

@PostInit
public void postInit(FMLPostInitializationEvent event) {
}

// Stub Method
}

BiomeGenMoon:

package skyinf;

import net.minecraft.block.Block;
import net.minecraft.world.biome.BiomeGenBase;

public class BiomeGenMoon extends BiomeGenBase {

public BiomeGenMoon(int par1) {
	super(par1);
        this.spawnableCreatureList.clear();
        this.topBlock = (byte)500;
        this.fillerBlock = (byte)Block.stone.blockID;
}

}

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

    • Hi, this is my second post with the same content as no one answered this and it's been a long time since I made the last post, I want to make a client-only mod, everything is ok, but when I use shaders, none of the textures rendered in RenderLevelStageEvent nor the crow entity model are rendered, I want them to be visible, because it's a horror themed mod I've already tried it with different shaders, but it didn't work with any of them and I really want to add support for shaders Here is how i render the crow model in the CrowEntityRenderer<CrowEntity>, by the time i use this method, i know is not the right method but i don't think this is the cause of the problem, the renderType i'm using is entityCutout @Override public void render(CrowEntity p_entity, float entityYaw, float partialTick, PoseStack poseStack, MultiBufferSource bufferSource, int packedLight) { super.render(p_entity, entityYaw, partialTick, poseStack, bufferSource, packedLight); ClientEventHandler.getClient().crow.renderToBuffer(poseStack, bufferSource.getBuffer(ClientEventHandler.getClient().crow .renderType(TEXTURE)), packedLight, OverlayTexture.NO_OVERLAY, Utils.rgb(255, 255, 255)); } Here renderLevelStage @Override public void renderWorld(RenderLevelStageEvent e) { horrorEvents.draw(e); } Here is how i render every event public void draw(RenderLevelStageEvent e) { for (HorrorEvent event : currentHorrorEvents) { event.tick(e.getPartialTick()); event.draw(e); } } Here is how i render the crow model on the event @Override public void draw(RenderLevelStageEvent e) { if(e.getStage() == RenderLevelStageEvent.Stage.AFTER_ENTITIES) { float arcProgress = getArcProgress(0.25f); int alpha = (int) Mth.lerp(arcProgress, 0, 255); int packedLight = LevelRenderer.getLightColor(Minecraft.getInstance().level, blockPos); VertexConsumer builder = ClientEventHandler.bufferSource.getBuffer(crow); Crow<CreepyBirdHorrorEvent> model = ClientEventHandler .getClient().crow; model.setupAnim(this); RenderHelper.renderModelInWorld(model, position, offset, e.getCamera(), e.getPoseStack(), builder, packedLight, OverlayTexture.NO_OVERLAY, alpha); builder = ClientEventHandler.bufferSource.getBuffer(eyes); RenderHelper.renderModelInWorld(model, position, offset, e.getCamera(), e.getPoseStack(), builder, 15728880, OverlayTexture.NO_OVERLAY, alpha); } } How i render the model public static void renderModelInWorld(Model model, Vector3f pos, Vector3f offset, Camera camera, PoseStack matrix, VertexConsumer builder, int light, int overlay, int alpha) { matrix.pushPose(); Vec3 cameraPos = camera.getPosition(); double finalX = pos.x - cameraPos.x + offset.x; double finalY = pos.y - cameraPos.y + offset.y; double finalZ = pos.z - cameraPos.z + offset.z; matrix.pushPose(); matrix.translate(finalX, finalY, finalZ); matrix.mulPose(Axis.XP.rotationDegrees(180f)); model.renderToBuffer(matrix, builder, light, overlay, Utils .rgba(255, 255, 255, alpha)); matrix.popPose(); matrix.popPose(); } Thanks in advance
    • Same issue - I have no idea
    • I am trying to develop a modpack for me and my friends to use on our server. Does anyone know how to develop a modpack for a server or could they help take a look at my modpack to potentially help at all?
    • un server de armas realista.  
    • removed both, nope https://pastebin.com/kgtwq9us
  • Topics

×
×
  • Create New...

Important Information

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