Jump to content

[1.10.2] Blockstate File Ignored


DrMeepster

Recommended Posts

I am trying to make a Minecraft mod with storage. I have a block that has variants. Specifically, facing variants. It is just a black and purple block. I can tell it is a blockstate issue because nothing changes when I change the models to stone, nothing changes. Weirdly, when I don't specify all variants the game still throws an Exception. Additonally, when I made a BasicBlock with the same name (box) and adjusted the blockstate it worked. I am using my library mod, DrCorester.

DrCorester Github

 

box.json:

{
	"variants": {
		"facing=south": { "model": "stone" },
        "facing=west": { "model": "stone", "y": 90 },
        "facing=north": { "model": "stone", "y": 180 },
        "facing=east": { "model": "stone", "y": 270 }
	}
}

 

BlockSecureBlock.java:

package drmeepster.securestore.block;

import javax.annotation.Nullable;

import drmeepster.drcorester.block.BasicBlock;
import drmeepster.drcorester.util.Util;
import drmeepster.securestore.ModSecureStorage;
import net.minecraft.block.BlockHorizontal;
import net.minecraft.block.material.Material;
import net.minecraft.block.properties.IProperty;
import net.minecraft.block.properties.PropertyBool;
import net.minecraft.block.properties.PropertyDirection;
import net.minecraft.block.state.BlockStateContainer;
import net.minecraft.block.state.IBlockState;
import net.minecraft.creativetab.CreativeTabs;
import net.minecraft.entity.EntityLivingBase;
import net.minecraft.entity.player.EntityPlayer;
import net.minecraft.item.ItemStack;
import net.minecraft.util.EnumBlockRenderType;
import net.minecraft.util.EnumFacing;
import net.minecraft.util.EnumHand;
import net.minecraft.util.math.BlockPos;
import net.minecraft.world.IBlockAccess;
import net.minecraft.world.World;

public class BlockSecureBox extends BasicBlock {
	
	public static final String NAME = "box";
	public static final PropertyDirection FACING = BlockHorizontal.FACING;
	
	public BlockSecureBox() {
		super(Material.IRON, NAME, CreativeTabs.DECORATIONS, ModSecureStorage.MODID);
		this.setDefaultState(this.blockState.getBaseState().withProperty(FACING, EnumFacing.NORTH));
	}
	
	@Override
	public IBlockState onBlockPlaced(World worldIn, BlockPos pos, EnumFacing facing, float hitX, float hitY, float hitZ, int meta, EntityLivingBase placer){
		return super.onBlockPlaced(worldIn, pos, facing, hitX, hitY, hitZ, meta, placer).withProperty(FACING, placer.getHorizontalFacing());
	}
	
	@Override
	protected BlockStateContainer createBlockState(){
        return new BlockStateContainer(this, FACING);
    }
	
	@Override
	public int getMetaFromState(IBlockState state){
		return state.getValue(FACING).getHorizontalIndex();
	}
	
	@Override
	public IBlockState getStateFromMeta(int meta){
		return createBlockState().getBaseState().withProperty(FACING, EnumFacing.getHorizontal(meta));
	}
	
	@Override
	public boolean onBlockActivated(World worldIn, BlockPos pos, IBlockState state, EntityPlayer playerIn, EnumHand hand, @Nullable ItemStack heldItem, EnumFacing side, float hitX, float hitY, float hitZ){
		return true;
	}
	
	@Override
	public IBlockState getActualState(IBlockState state, IBlockAccess worldIn, BlockPos pos){
		return state;
	}
}

 

SecureBlocks.java

package drmeepster.securestore.block;

import static drmeepster.drcorester.util.Util.register;

import drmeepster.drcorester.block.BasicBlock;
import net.minecraft.block.material.Material;
import net.minecraft.block.state.IBlockState;
import net.minecraft.entity.EntityLivingBase;
import net.minecraft.util.EnumFacing;
import net.minecraft.util.math.BlockPos;
import net.minecraft.world.World;

public class SecureBlocks {
	
	public static BlockSecureBox secureBox;
	public static BasicBlock box;
	
  	//Called at preinit
	public static void init(){
		secureBox = register(new BlockSecureBox());
		//box = register(new BasicBlock(Material.CLOTH, "box", null, null));
	}
}

 

Relevant parts of Util.java from DrCorester:

package drmeepster.drcorester.util;

import java.util.ArrayList;
import java.util.List;
import java.util.Map;
import java.util.function.BiPredicate;

import com.google.common.collect.Maps;

import drmeepster.drcorester.ModDrCorester;
import drmeepster.drcorester.block.IBasicBlock;
import drmeepster.drcorester.proxy.ClientProxy;
import net.minecraft.block.Block;
import net.minecraft.block.ITileEntityProvider;
import net.minecraft.block.state.IBlockState;
import net.minecraft.entity.EntityLivingBase;
import net.minecraft.entity.effect.EntityLightningBolt;
import net.minecraft.entity.player.EntityPlayer;
import net.minecraft.item.Item;
import net.minecraft.item.ItemBlock;
import net.minecraft.item.ItemStack;
import net.minecraft.nbt.NBTTagCompound;
import net.minecraft.stats.Achievement;
import net.minecraft.util.math.BlockPos;
import net.minecraft.world.World;
import net.minecraftforge.fml.common.FMLCommonHandler;
import net.minecraftforge.fml.common.registry.GameRegistry;
import net.minecraftforge.fml.relauncher.FMLRelaunchLog;
import net.minecraftforge.fml.relauncher.Side;

public final class Util{
	...
	public static <T extends IBasicObject> T register(T object){
			GameRegistry.register(object);
			
			if(object instanceof Item){
				registerItemModel((Item)object, ((Item)object).getRegistryName().getResourceDomain());
			}
			if(object instanceof IBasicBlock){
				register(((IBasicBlock)object).getItemBlock());
			}
			if(object instanceof ItemBlock){
				FMLRelaunchLog.info("The ItemBlock with block, \"%s\", has been registered", 	object.getRegistryName().toString());
				return object;
			}
			FMLRelaunchLog.info("The object, \"%s\", has been registered", object.getRegistryName().toString());
			return object;
		}
	
	...
	
	public static void registerItemModel(Item item, String modid){
		if(FMLCommonHandler.instance().getEffectiveSide() == Side.CLIENT){
			((ClientProxy)ModDrCorester.proxy).registerItemRenderer(item, 0, removePrefix(item.getUnlocalizedName()), modid);
		}
	}
	...
}

 

ClientProxy.java from DrCorester

package drmeepster.drcorester.proxy;

import net.minecraft.client.renderer.block.model.ModelResourceLocation;
import net.minecraft.item.Item;
import net.minecraftforge.client.model.ModelLoader;
import net.minecraftforge.fml.relauncher.Side;
import net.minecraftforge.fml.relauncher.SideOnly;

@SideOnly(Side.CLIENT)
public class ClientProxy implements IProxy{
	
	public void registerItemRenderer(Item item, int meta, String id, String modid) {
		ModelLoader.setCustomModelResourceLocation(item, meta, new ModelResourceLocation(modid + ":" + id, "inventory"));
	}

	@Override
	public void preInit() {
		
	}

	@Override
	public void init() {
		
	}

	@Override
	public void postInit() {
		
	}
}

 

BasicBlock.java from DrCorester:

package drmeepster.drcorester.block;

import drmeepster.drcorester.property.PropertyHandler;
import net.minecraft.block.Block;
import net.minecraft.block.material.MapColor;
import net.minecraft.block.material.Material;
import net.minecraft.creativetab.CreativeTabs;

public class BasicBlock extends Block implements IBasicBlock {
	
	//copy these
	//public static final String NAME = "";
		
	private String id;
	private BasicItemBlock itemBlock;
	
	public BasicBlock(MapColor color, Material material, String name, CreativeTabs tab, String modid){
		super(material, color);
		setRegistryName(name);
		itemBlock = new BasicItemBlock(this, modid);
		setUnlocalizedName(PropertyHandler.getName(modid, name));
		if(tab != null){
			setCreativeTab(tab);
		}
	}
	
	public BasicBlock(Material material, String name, CreativeTabs tab, String modid){
		this(material.getMaterialMapColor(), material, name, tab, modid);
	}
	
	@Override
	public String getName(){
		return super.getUnlocalizedName();
	}
	
	@Override
	public String getId(){
		return id;
	}

	@Override
	public BasicItemBlock getItemBlock() {
		return itemBlock;
	}
}

 

Console log:

2017-03-24 10:47:43,488 WARN Unable to instantiate org.fusesource.jansi.WindowsAnsiOutputStream
2017-03-24 10:47:43,492 WARN Unable to instantiate org.fusesource.jansi.WindowsAnsiOutputStream
[10:47:43] [main/INFO] [GradleStart]: username: DrMeepster
[10:47:43] [main/INFO] [GradleStart]: Extra: []
[10:47:43] [main/INFO] [GradleStart]: Running with arguments: [--userProperties, {}, --assetsDir, C:/Users/Misha/.gradle/caches/minecraft/assets, --assetIndex, 1.10, --accessToken{REDACTED}, --version, 1.10.2, --username, DrMeepster, --tweakClass, net.minecraftforge.fml.common.launcher.FMLTweaker, --tweakClass, net.minecraftforge.gradle.tweakers.CoremodTweaker]
[10:47:43] [main/INFO] [LaunchWrapper]: Loading tweak class name net.minecraftforge.fml.common.launcher.FMLTweaker
[10:47:43] [main/INFO] [LaunchWrapper]: Using primary tweak class name net.minecraftforge.fml.common.launcher.FMLTweaker
[10:47:43] [main/INFO] [LaunchWrapper]: Loading tweak class name net.minecraftforge.gradle.tweakers.CoremodTweaker
[10:47:43] [main/INFO] [LaunchWrapper]: Calling tweak class net.minecraftforge.fml.common.launcher.FMLTweaker
[10:47:43] [main/INFO] [FML]: Forge Mod Loader version 12.18.3.2185 for Minecraft 1.10.2 loading
[10:47:43] [main/INFO] [FML]: Java is Java HotSpot(TM) 64-Bit Server VM, version 1.8.0_121, running on Windows 10:amd64:10.0, installed at C:\Program Files\Java\jre1.8.0_121
[10:47:43] [main/INFO] [FML]: Managed to load a deobfuscated Minecraft name- we are in a deobfuscated environment. Skipping runtime deobfuscation
[10:47:43] [main/INFO] [LaunchWrapper]: Calling tweak class net.minecraftforge.gradle.tweakers.CoremodTweaker
[10:47:43] [main/INFO] [GradleStart]: Injecting location in coremod net.minecraftforge.fml.relauncher.FMLCorePlugin
[10:47:43] [main/INFO] [GradleStart]: Injecting location in coremod net.minecraftforge.classloading.FMLForgePlugin
[10:47:43] [main/INFO] [LaunchWrapper]: Loading tweak class name net.minecraftforge.fml.common.launcher.FMLInjectionAndSortingTweaker
[10:47:43] [main/INFO] [LaunchWrapper]: Loading tweak class name net.minecraftforge.fml.common.launcher.FMLDeobfTweaker
[10:47:43] [main/INFO] [LaunchWrapper]: Loading tweak class name net.minecraftforge.gradle.tweakers.AccessTransformerTweaker
[10:47:43] [main/INFO] [LaunchWrapper]: Calling tweak class net.minecraftforge.fml.common.launcher.FMLInjectionAndSortingTweaker
[10:47:43] [main/INFO] [LaunchWrapper]: Calling tweak class net.minecraftforge.fml.common.launcher.FMLInjectionAndSortingTweaker
[10:47:43] [main/INFO] [LaunchWrapper]: Calling tweak class net.minecraftforge.fml.relauncher.CoreModManager$FMLPluginWrapper
[10:47:44] [main/ERROR] [FML]: The binary patch set is missing. Either you are in a development environment, or things are not going to work!
[10:47:48] [main/ERROR] [FML]: FML appears to be missing any signature data. This is not a good thing
[10:47:48] [main/INFO] [LaunchWrapper]: Calling tweak class net.minecraftforge.fml.relauncher.CoreModManager$FMLPluginWrapper
[10:47:48] [main/INFO] [LaunchWrapper]: Calling tweak class net.minecraftforge.fml.common.launcher.FMLDeobfTweaker
[10:47:50] [main/INFO] [LaunchWrapper]: Calling tweak class net.minecraftforge.gradle.tweakers.AccessTransformerTweaker
[10:47:50] [main/INFO] [LaunchWrapper]: Loading tweak class name net.minecraftforge.fml.common.launcher.TerminalTweaker
[10:47:50] [main/INFO] [LaunchWrapper]: Calling tweak class net.minecraftforge.fml.common.launcher.TerminalTweaker
[10:47:50] [main/INFO] [LaunchWrapper]: Launching wrapped minecraft {net.minecraft.client.main.Main}
2017-03-24 10:47:52,371 WARN Unable to instantiate org.fusesource.jansi.WindowsAnsiOutputStream
2017-03-24 10:47:52,455 WARN Unable to instantiate org.fusesource.jansi.WindowsAnsiOutputStream
2017-03-24 10:47:52,462 WARN Unable to instantiate org.fusesource.jansi.WindowsAnsiOutputStream
[10:47:53] [Client thread/INFO]: Setting user: DrMeepster
[10:48:05] [Client thread/WARN]: Skipping bad option: lastServer:
[10:48:05] [Client thread/INFO]: LWJGL Version: 2.9.4
[10:48:07] [Client thread/INFO] [STDOUT]: [net.minecraftforge.fml.client.SplashProgress:start:221]: ---- Minecraft Crash Report ----
// This doesn't make any sense!

Time: 3/24/17 10:48 AM
Description: Loading screen debug info

This is just a prompt for computer specs to be printed. THIS IS NOT A ERROR


A detailed walkthrough of the error, its code path and all known details is as follows:
---------------------------------------------------------------------------------------

-- System Details --
Details:
	Minecraft Version: 1.10.2
	Operating System: Windows 10 (amd64) version 10.0
	Java Version: 1.8.0_121, Oracle Corporation
	Java VM Version: Java HotSpot(TM) 64-Bit Server VM (mixed mode), Oracle Corporation
	Memory: 844947896 bytes (805 MB) / 1038876672 bytes (990 MB) up to 1038876672 bytes (990 MB)
	JVM Flags: 3 total; -Xincgc -Xmx1024M -Xms1024M
	IntCache: cache: 0, tcache: 0, allocated: 0, tallocated: 0
	FML: 
	Loaded coremods (and transformers): 
	GL info: ' Vendor: 'Intel' Version: '4.3.0 - Build 20.19.15.4531' Renderer: 'Intel(R) HD Graphics 4600'
[10:48:07] [Client thread/INFO] [FML]: MinecraftForge v12.18.3.2185 Initialized
[10:48:07] [Client thread/INFO] [FML]: Replaced 231 ore recipes
[10:48:08] [Client thread/INFO] [FML]: Found 0 mods from the command line. Injecting into mod discoverer
[10:48:08] [Client thread/INFO] [FML]: Searching C:\Users\Misha\Desktop\SecureStorage\run\mods for mods
[10:48:08] [Client thread/WARN] [securestore]: Mod securestore is missing the required element 'version' and a version.properties file could not be found. Falling back to metadata version ${version}
[10:48:11] [Client thread/WARN] [drcorester]: Mod drcorester is missing the required element 'version' and a version.properties file could not be found. Falling back to metadata version 1.10.2-1.2.2.0
[10:48:11] [Client thread/INFO] [FML]: Forge Mod Loader has identified 5 mods to load
[10:48:11] [Client thread/INFO] [FML]: Attempting connection with missing mods [mcp, FML, Forge, securestore, drcorester] at CLIENT
[10:48:11] [Client thread/INFO] [FML]: Attempting connection with missing mods [mcp, FML, Forge, securestore, drcorester] at SERVER
[10:48:13] [Client thread/INFO]: Reloading ResourceManager: Default, FMLFileResourcePack:Forge Mod Loader, FMLFileResourcePack:Minecraft Forge, FMLFileResourcePack:Secure Storage, FMLFileResourcePack:Dr Corester
[10:48:13] [Client thread/INFO] [FML]: Processing ObjectHolder annotations
[10:48:13] [Client thread/INFO] [FML]: Found 423 ObjectHolder annotations
[10:48:13] [Client thread/INFO] [FML]: Identifying ItemStackHolder annotations
[10:48:13] [Client thread/INFO] [FML]: Found 0 ItemStackHolder annotations
[10:48:13] [Client thread/INFO] [FML]: Applying holder lookups
[10:48:13] [Client thread/INFO] [FML]: Holder lookups applied
[10:48:13] [Client thread/INFO] [FML]: Applying holder lookups
[10:48:13] [Client thread/INFO] [FML]: Holder lookups applied
[10:48:13] [Client thread/INFO] [FML]: Applying holder lookups
[10:48:13] [Client thread/INFO] [FML]: Holder lookups applied
[10:48:14] [Client thread/INFO] [FML]: Configured a dormant chunk cache size of 0
[10:48:14] [Forge Version Check/INFO] [ForgeVersionCheck]: [Forge] Starting version check at http://files.minecraftforge.net/maven/net/minecraftforge/forge/promotions_slim.json
[10:48:14] [Forge Version Check/INFO] [ForgeVersionCheck]: [Forge] Found status: UP_TO_DATE Target: null
[10:48:14] [Client thread/INFO] [FML]: The ItemBlock with block, "securestore:box", has been registered
[10:48:14] [Client thread/INFO] [FML]: The object, "securestore:box", has been registered
[10:48:14] [Client thread/INFO] [FML]: The object, "drcorester:placeholder", has been registered
[10:48:14] [Client thread/INFO] [FML]: Applying holder lookups
[10:48:14] [Client thread/INFO] [FML]: Holder lookups applied
[10:48:14] [Client thread/INFO] [FML]: Injecting itemstacks
[10:48:14] [Client thread/INFO] [FML]: Itemstack injection complete
[10:48:29] [Sound Library Loader/INFO]: Starting up SoundSystem...
[10:48:29] [Thread-8/INFO]: Initializing LWJGL OpenAL
[10:48:29] [Thread-8/INFO]: (The LWJGL binding of OpenAL.  For more information, see http://www.lwjgl.org)
[10:48:29] [Thread-8/INFO]: OpenAL initialized.
[10:48:29] [Sound Library Loader/INFO]: Sound engine started
[10:48:40] [Client thread/INFO] [FML]: Max texture size: 8192
[10:48:40] [Client thread/INFO]: Created: 16x16 textures-atlas
[10:48:45] [Client thread/INFO] [FML]: Injecting itemstacks
[10:48:45] [Client thread/INFO] [FML]: Itemstack injection complete
[10:48:45] [Client thread/INFO] [FML]: Forge Mod Loader has successfully loaded 5 mods
[10:48:45] [Client thread/INFO]: Reloading ResourceManager: Default, FMLFileResourcePack:Forge Mod Loader, FMLFileResourcePack:Minecraft Forge, FMLFileResourcePack:Secure Storage, FMLFileResourcePack:Dr Corester
[10:48:51] [Client thread/INFO]: SoundSystem shutting down...
[10:48:51] [Client thread/WARN]: Author: Paul Lamb, www.paulscode.com
[10:48:51] [Sound Library Loader/INFO]: Starting up SoundSystem...
[10:48:51] [Thread-10/INFO]: Initializing LWJGL OpenAL
[10:48:51] [Thread-10/INFO]: (The LWJGL binding of OpenAL.  For more information, see http://www.lwjgl.org)
[10:48:51] [Thread-10/INFO]: OpenAL initialized.
[10:48:51] [Sound Library Loader/INFO]: Sound engine started
[10:48:58] [Client thread/INFO] [FML]: Max texture size: 8192
[10:48:59] [Client thread/INFO]: Created: 512x512 textures-atlas
[10:49:02] [Client thread/WARN]: Skipping bad option: lastServer:
[10:49:03] [Realms Notification Availability checker #1/INFO]: Could not authorize you against Realms server: Invalid session id
[10:49:08] [Server thread/INFO]: Starting integrated minecraft server version 1.10.2
[10:49:08] [Server thread/INFO]: Generating keypair
[10:49:09] [Server thread/INFO] [FML]: Injecting existing block and item data into this server instance
[10:49:09] [Server thread/INFO] [FML]: Applying holder lookups
[10:49:09] [Server thread/INFO] [FML]: Holder lookups applied
[10:49:09] [Server thread/INFO] [FML]: Loading dimension 0 (New World) (net.minecraft.server.integrated.IntegratedServer@4e10c224)
[10:49:10] [Server thread/INFO] [FML]: Loading dimension 1 (New World) (net.minecraft.server.integrated.IntegratedServer@4e10c224)
[10:49:10] [Server thread/INFO] [FML]: Loading dimension -1 (New World) (net.minecraft.server.integrated.IntegratedServer@4e10c224)
[10:49:10] [Server thread/INFO]: Preparing start region for level 0
[10:49:12] [Server thread/INFO]: Preparing spawn area: 0%
[10:49:13] [Server thread/INFO]: Preparing spawn area: 34%
[10:49:14] [Server thread/INFO]: Preparing spawn area: 65%
[10:49:15] [Server thread/INFO]: Changing view distance to 12, from 10
[10:49:17] [Netty Local Client IO #0/INFO] [FML]: Server protocol version 2
[10:49:17] [Netty Server IO #1/INFO] [FML]: Client protocol version 2
[10:49:17] [Netty Server IO #1/INFO] [FML]: Client attempting to join with 5 mods : [email protected],[email protected],[email protected],[email protected],securestore@${version}
[10:49:17] [Netty Local Client IO #0/INFO] [FML]: [Netty Local Client IO #0] Client side modded connection established
[10:49:17] [Server thread/INFO] [FML]: [Server thread] Server side modded connection established
[10:49:17] [Server thread/INFO]: DrMeepster[local:E:90d63022] logged in with entity id 215 at (-12.998634781601366, 75.63387607113056, -15.62530467881667)
[10:49:17] [Server thread/INFO]: DrMeepster joined the game
[10:49:19] [Server thread/INFO]: Saving and pausing game...
[10:49:19] [Server thread/INFO]: Saving chunks for level 'New World'/Overworld
[10:49:19] [Server thread/INFO]: Saving chunks for level 'New World'/Nether
[10:49:19] [Server thread/INFO]: Saving chunks for level 'New World'/The End
[10:49:20] [pool-2-thread-1/WARN]: Couldn't look up profile properties for com.mojang.authlib.GameProfile@18b159e1[id=d44056b9-272c-3c39-9e28-71c6a51a39c1,name=DrMeepster,properties={},legacy=false]
com.mojang.authlib.exceptions.AuthenticationException: The client has sent too many requests within a certain amount of time
	at com.mojang.authlib.yggdrasil.YggdrasilAuthenticationService.makeRequest(YggdrasilAuthenticationService.java:65) ~[YggdrasilAuthenticationService.class:?]
	at com.mojang.authlib.yggdrasil.YggdrasilMinecraftSessionService.fillGameProfile(YggdrasilMinecraftSessionService.java:175) [YggdrasilMinecraftSessionService.class:?]
	at com.mojang.authlib.yggdrasil.YggdrasilMinecraftSessionService$1.load(YggdrasilMinecraftSessionService.java:59) [YggdrasilMinecraftSessionService$1.class:?]
	at com.mojang.authlib.yggdrasil.YggdrasilMinecraftSessionService$1.load(YggdrasilMinecraftSessionService.java:56) [YggdrasilMinecraftSessionService$1.class:?]
	at com.google.common.cache.LocalCache$LoadingValueReference.loadFuture(LocalCache.java:3524) [guava-17.0.jar:?]
	at com.google.common.cache.LocalCache$Segment.loadSync(LocalCache.java:2317) [guava-17.0.jar:?]
	at com.google.common.cache.LocalCache$Segment.lockedGetOrLoad(LocalCache.java:2280) [guava-17.0.jar:?]
	at com.google.common.cache.LocalCache$Segment.get(LocalCache.java:2195) [guava-17.0.jar:?]
	at com.google.common.cache.LocalCache.get(LocalCache.java:3934) [guava-17.0.jar:?]
	at com.google.common.cache.LocalCache.getOrLoad(LocalCache.java:3938) [guava-17.0.jar:?]
	at com.google.common.cache.LocalCache$LocalLoadingCache.get(LocalCache.java:4821) [guava-17.0.jar:?]
	at com.google.common.cache.LocalCache$LocalLoadingCache.getUnchecked(LocalCache.java:4827) [guava-17.0.jar:?]
	at com.mojang.authlib.yggdrasil.YggdrasilMinecraftSessionService.fillProfileProperties(YggdrasilMinecraftSessionService.java:165) [YggdrasilMinecraftSessionService.class:?]
	at net.minecraft.client.Minecraft.getProfileProperties(Minecraft.java:3060) [Minecraft.class:?]
	at net.minecraft.client.resources.SkinManager$3.run(SkinManager.java:131) [SkinManager$3.class:?]
	at java.util.concurrent.Executors$RunnableAdapter.call(Unknown Source) [?:1.8.0_121]
	at java.util.concurrent.FutureTask.run(Unknown Source) [?:1.8.0_121]
	at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source) [?:1.8.0_121]
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source) [?:1.8.0_121]
	at java.lang.Thread.run(Unknown Source) [?:1.8.0_121]
[10:49:20] [Server thread/WARN]: Can't keep up! Did the system time change, or is the server overloaded? Running 3698ms behind, skipping 73 tick(s)
[10:49:30] [Server thread/INFO]: Saving and pausing game...
[10:49:30] [Server thread/INFO]: Saving chunks for level 'New World'/Overworld
[10:49:31] [Server thread/INFO]: Saving chunks for level 'New World'/Nether
[10:49:31] [Server thread/INFO]: Saving chunks for level 'New World'/The End
[10:49:32] [Client thread/INFO]: Stopping!
[10:49:32] [Client thread/INFO]: SoundSystem shutting down...
[10:49:32] [Server thread/INFO]: Stopping server
[10:49:32] [Server thread/INFO]: Saving players
[10:49:32] [Server thread/INFO]: Saving worlds
[10:49:32] [Server thread/INFO]: Saving chunks for level 'New World'/Overworld
[10:49:33] [Server thread/INFO]: Saving chunks for level 'New World'/Nether
[10:49:33] [Server thread/INFO]: Saving chunks for level 'New World'/The End
[10:49:33] [Client thread/WARN]: Author: Paul Lamb, www.paulscode.com
[10:49:33] [Client Shutdown Thread/INFO]: Stopping server
[10:49:33] [Client Shutdown Thread/INFO]: Saving players
[10:49:33] [Client Shutdown Thread/INFO]: Saving worlds
[10:49:33] [Client Shutdown Thread/INFO]: Saving chunks for level 'New World'/Overworld
[10:49:33] [Client Shutdown Thread/INFO]: Saving chunks for level 'New World'/Nether
[10:49:33] [Client Shutdown Thread/INFO]: Saving chunks for level 'New World'/The End
Java HotSpot(TM) 64-Bit Server VM warning: Using incremental CMS is deprecated and will likely be removed in a future release

 

Link to comment
Share on other sites

If you don't have a crash, then the console might not have enough information. Dig up the file logs and look for warnings. The text in the blockstates file is extremely delicate. It needs to match names perfectly (including capitalization). Many resource names need to be qualified with their resource domains.

The debugger is a powerful and necessary tool in any IDE, so learn how to use it. You'll be able to tell us more and get better help here if you investigate your runtime problems in the debugger before posting.

Link to comment
Share on other sites

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

    • I am not using hardcoded recipes, I'm using Vanilla's already existing code for leather armor dying. (via extending and implementing DyeableArmorItem / DyeableLeatherItem respectively) I have actually figured out that it's something to do with registering item colors to the ItemColors instance, but I'm trying to figure out where exactly in my mod's code I would be placing a call to the required event handler. Unfortunately the tutorial is criminally undescriptive. The most I've found is that it has to be done during client initialization. I'm currently trying to do the necessary setup via hijacking the item registry since trying to modify the item classes directly (via using SubscribeEvent in the item's constructor didn't work. Class so far: // mrrp mrow - mcmod item painter v1.0 - catzrule ch package catzadvitems.init; import net.minecraft.client.color.item.ItemColors; import net.minecraft.world.item.Item; import net.minecraftforge.registries.ObjectHolder; import net.minecraftforge.fml.event.lifecycle.FMLClientSetupEvent; import net.minecraftforge.fml.common.Mod; import net.minecraftforge.eventbus.api.SubscribeEvent; import net.minecraftforge.client.event.ColorHandlerEvent; import catzadvitems.item.DyeableWoolArmorItem; @Mod.EventBusSubscriber(bus = Mod.EventBusSubscriber.Bus.MOD) public class Painter { @ObjectHolder("cai:dyeable_wool_chestplate") public static final Item W_CHEST = null; @ObjectHolder("cai:dyeable_wool_leggings") public static final Item W_LEGS = null; @ObjectHolder("cai:dyeable_wool_boots") public static final Item W_SOCKS = null; public Painter() { // left blank, idk if forge throws a fit if constructors are missing, not taking the chance of it happening. } @SubscribeEvent public static void init(FMLClientSetupEvent event) { new Painter(); } @Mod.EventBusSubscriber private static class ForgeBusEvents { @SubscribeEvent public static void registerItemColors(ColorHandlerEvent.Item event) { ItemColors col = event.getItemColors(); col.register(DyeableUnderArmorItem::getItemDyedColor, W_CHEST, W_LEGS, W_SOCKS); //placeholder for other dye-able items here later.. } } } (for those wondering, i couldn't think of a creative wool helmet name)
    • nvm found out it was because i had create h and not f
    • Maybe there's something happening in the 'leather armor + dye' recipe itself that would be updating the held item texture?
    • @SubscribeEvent public static void onRenderPlayer(RenderPlayerEvent.Pre e) { e.setCanceled(true); model.renderToBuffer(e.getPoseStack(), pBuffer, e.getPackedLight(), 0f, 0f, 0f, 0f, 0f); //ToaPlayerRenderer.render(); } Since getting the render method from a separate class is proving to be bit of a brick wall for me (but seems to be the solution in older versions of minecraft/forge) I've decided to try and pursue using the renderToBuffer method directly from the model itself. I've tried this route before but can't figure out what variables to feed it for the vertexConsumer and still can't seem to figure it out; if this is even a path to pursue.  The vanilla model files do not include any form of render methods, and seem to be fully constructed from their layer definitions? Their renderer files seem to take their layers which are used by the render method in the vanilla MobRenderer class. But for modded entities we @Override this function and don't have to feed the method variables because of that? I assume that the render method in the extended renderer takes the layer definitions from the renderer classes which take those from the model files. Or maybe instead of trying to use a render method I should be calling the super from the renderer like   new ToaPlayerRenderer(context, false); Except I'm not sure what I would provide for context? There's a context method in the vanilla EntityRendererProvider class which doesn't look especially helpful. I've been trying something like <e.getEntity(), model<e.getEntity()>> since that generally seems to be what is provided to the renderers for context, but I don't know if it's THE context I'm looking for? Especially since the method being called doesn't want to take this or variations of this.   In short; I feel like I'm super super close but I have to be missing something obvious? Maybe this insane inane ramble post will provide some insight into this puzzle?
  • Topics

×
×
  • Create New...

Important Information

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