Everything posted by Eternaldoom
- 
	
		
		[1.7.10]Ticking Entity crash when opening a saved world
		
		You have to save the value to NBT in the writeToNBT method and read it when opening the world in the readFromNBT method.
 - 
	
		
		[1.7.10]Adjusting the speed a fluid pushes a player
		
		Use @Override to check if you are actually overriding a method. You have to use that method's parameters. Look at the onEntityCollidedWithBlock method in Block or BlockCactus.
 - 
	
		
		[1.7.2]Show gui on user first join
		
		You could use IExtendedEntityProperties to add a boolean to the player's NBT (defaulting to false). When the player logs in, if the boolean is false for that player, open the GUI and set it to true.
 - 
	
		
		[1.7.10] Get Player's Capabilities In OnUpdate & Key Handling With Packets
		
		What stack? Are you trying to decrease the durability of a held item? If so, you can get the stack from player.inventory
 - 
	
		
		Spawning plants
		
		Have a look here on how to make a worldgen class. Look where I use WorldGenWaterPlants, it's very similar to WorldGenFlowers.
 - 
	
		
		isItemValidForSlot()
		
		Blocks don't exist in inventories, they exist as ItemBlocks, a subclass of Item. Get an ItemBlock for the Block with Item.getItemFromBlock(block).
 - 
	
		
		[1.7.10]Adjusting the speed a fluid pushes a player
		
		Get the blocks metadata (or whatever data from the fluid), and adjust the players motion depending on that.
 - 
	
		
		Spawning plants
		
		Have you ever made an IWorldGenerator for ores? It's the same thing, but use WorldGenFlowers instead of WorldGenMineable.
 - 
	
		
		[1.7.10][Solved] Is there a way to edit the stats of Vanilla Armor/Horse Armor.
		
		You're right, thanks. I'm probably going to switch over to GameRegistry.addSubstitutionAlias. It'll be more seamless anyway.
 - 
	
		
		Stuff not dropping (Sovled)
		
		You mean the block won't drop the item when broken? Post where you register the item. And why does your code look so... obfuscated?
 - 
	
		
		How do I detect when a player no longer has an item?
		
		Also, for the event, the annotation should be @SubscribeEvent, not @EventHandler.
 - 
	
		
		How do I detect when a player no longer has an item?
		
		Use a PlayerTickEvent and check with !event.player.inventory.hasItem()
 - 
	
		
		[1.7.10][Solved] Is there a way to edit the stats of Vanilla Armor/Horse Armor.
		
		Yep. Yay people look at my mod
 - 
	
		
		Messing with Desert Temples
		
		I dont have access to the src at the minute, but i think what you do is check for some pattern of blocks that would only exist in a temple and set the blocks relative to that.
 - 
	
		
		Ore Not spawning (1.7.10)
		
		No its not. All you did was define a variable.
 - 
	
		
		[1.7.10][Solved] Is there a way to edit the stats of Vanilla Armor/Horse Armor.
		
		What I do for this in my mod is to use a PlayerTickEvent to replace the items if they are in the player's inventory.
 - 
	
		
		Ore dont spawn
		
		in your preinit method
 - 
	
		
		Ore dont spawn
		
		Yeah, the register() method in WorldGenRuby that you are calling is empty. How is it supposed to do anything if you arent telling it to? Use this to register the WorldGenerator: GameRegistry.registerWorldGenerator(new WorldGenRuby(), 1);
 - 
	
		
		Ore dont spawn
		
		No, that's the Worldgen code. Post your main class. If you don't get it, follow a basic Java tutorial. You have to register your world generator.
 - 
	
		
		What exactly is a memory leak and how do i fix it?
		
		There's a message from cpw at the top saying its no good and can cause memory leaks. You don't need to write a new system, FML already has one. Diesieben's tutorial is on how to use it.
 - 
	
		
		[1.8][Open Source] Realms of Chaos Alpha 1.1
		
		Thanks! You can play it now, just get FML here.
 - 
	
		
		Ore dont spawn
		
		Methods don't get magically called.
 - 
	
		
		Messing with Desert Temples
		
		Some kind of worldgen event; just replace chests with trapped chests. Im not sure what event though since i've never used worldgen events.
 - 
	
		
		Crafting dont work
		
		Post your code. Where do you register the item?
 - 
	
		
		[1.7.10] Get Player's Capabilities In OnUpdate & Key Handling With Packets
		
		Use a PlayerTickEvent.
 
IPS spam blocked by CleanTalk.