Everything posted by GotoLink
- 
	
		
		[1.6.2]Separating the code on client and server sides?
		
		Why don't you put the common code out of the if/else ? It would be easier to read. I would put moveEntity(...) after all motion calculation too.
 - 
	
		
		Generating Errors
		
		Every time I see this, the error is the same. You are trying to build things into the void.
 - 
	
		
		1.6.2 Entity Help - Massive Lag Spikes
		
		if (this.worldObj.isAABBInMaterial(axisalignedbb, Material.air)) { d0 += 1.0D / (double)b0; } //... if (d0 < 1.0D) { d4 = d0 * 2.0D - 1.0D; this.motionY += 0.03999999910593033D * d4; } else { if (this.motionY < 0.0D) { this.motionY /= 2.0D; } this.motionY += 0.007000000216066837D; } So...your thing is going up into the air until it reaches max world height ?
 - 
	
		
		[1.6.2][Items][Solved] Having to leave world for inventory to update.
		
		player.inventory.consumeInventoryItem(new ItemStack(EvilMobsItems.syringe, 1, 0).itemID); player.inventory.addItemStackToInventory(new ItemStack(EvilMobsItems.syringe, 1, 1)); Com'on, why don't you simply damage the item used ?
 - 
	
		
		Mob flying too fast/ Not dealing damage
		
		Obviously the motion parameters deal with how fast the entity is. And how the entity attacks is your choice.
 - 
	
		
		Modular Modding
		
		Use FML inter mod message system with IMCEvent ? Make an abstract core and only implement in modules ?
 - 
	
		
		Hooking chat commands client-side on multiplayer
		
		Why are you asking this on Forge forums then ?
 - 
	
		
		Adding scroll bar to Gui inventory
		
		You said it, you only want the gui to display 5 rows. Give the container the maximum number of rows. Override the slot display within drawSlotInventory(Slot).
 - 
	
		
		Adding scroll bar to Gui inventory
		
		this.numRows = 5; So ? you only have 5 rows.
 - 
	
		
		Is there a way to override and add functionality to a vanilla enchantment?
		
		Huh ? Put a sword in an anvil with a silk touch book. Vanilla works. As for modifying mob loot, use LivingDropsEvent.
 - 
	
		
		[Solved] Minecraft Crash When Testing My Mod
		
		Java 8, huh ? I don't see the isPresent() check.
 - 
	
		
		Probability affected by an external value java logic problem
		
		Use conditional random ? if(new Random().nextFloat()<chanceFactor/100F) { //do something with roughly chanceFactor% of chance } else { //do something else with roughly (100-chanceFactor)% of chance }
 - 
	
		
		Crash at handleMobSpawn - Packet24MobSpawn
		
		Nice you solved it, was going to ask you to check here Packet pkt = FMLNetworkHandler.getEntitySpawningPacket(this.myEntity); if (pkt != null) { return pkt; } why it would fail.
 - 
	
		
		Adding scroll bar to Gui inventory
		
		I'd be more interested in line 85 GuiInfinityChest.getInventory(... You are referencing a client side only class (Gui) in a common class.
 - 
	
		
		[DOUBLE _ SOLVED] - Forge 1.6.2 Texturing Problem (Black/Purple)
		
		No. You need to build your block when Minecraft and Forge are ready to handle it. Too soon is too soon, man.
 - 
	
		
		Adding scroll bar to Gui inventory
		
		A crash log would be very helpful. As for Java, if you don't have the basics, read a book, "Beginning with Java" or whatever basic Java book you can find easily. Tutorials are for advanced people, or those that don't want to learn anything and enjoy copy/pasting. Sure modding is a nice practical experience, but you wouldn't be able to make great mods if you can't recognize how bad Minecraft code is.
 - 
	
		
		[1.6.2] Solved Mob won't render correct
		
		I don't recall Minecraft having a bee texture. Look for "texture" threads, the proper use of ResourceLocation would be explained.
 - 
	
		
		[DOUBLE _ SOLVED] - Forge 1.6.2 Texturing Problem (Black/Purple)
		
		You are probably initializing your block too soon, before any icons can be registered.
 - 
	
		
		Crash at handleMobSpawn - Packet24MobSpawn
		
		Probably not in the case of IAnimals.
 - 
	
		
		[1.6.2] Solved Mob won't render correct
		
		Your ResourceLocation of course ! that is what the method asks for ! And give the right texture path too...
 - 
	
		
		Crash at handleMobSpawn - Packet24MobSpawn
		
		EntityTrackerEntry ? Hum...do you use velocity updates (last boolean in registerModEntity arguments) ?
 - 
	
		
		Get entity being looked at
		
		rayTrace will never return a MovingObjectPosition with a hit entity. It will return null or the collided block. You should have looked the code. I would recommend using : world.getEntitiesWithinAABBExcludingEntity(args) player.canEntityBeSeen(Entity)
 - 
	
		
		Every Time I Try To Launch Minecraft I Get This Error...
		
		"YoutubeMod" should be in dawg/youtubemod/.
 - 
	
		
		[1.6.2] Solved Mob won't render correct
		
		private static final ResourceLocation field_110775_a = new ResourceLocation("textures/bee.png"); @Override protected ResourceLocation func_110775_a(Entity entity) { // TODO Auto-generated method stub return null; } *facepalm* Why do you think that should work ?
 - 
	
		
		Many of my mods are throwing errors on MC launch as they are 'duplicates'.
		
		ShadersModCore is throwing a lot of severe issues. Most of those are coremods, and Forge changed recently their way of being loaded. Try without MagicLauncher and ShadersModCore.
 
IPS spam blocked by CleanTalk.