Help❓ Minecraft 1.4.5 Build Floor Code help please.

Posts 1–3 of 3 · Page 1 of 1
❓ Minecraft 1.4.5 Build Floor Code help please.
Hey guys been I have been making a little test client

I'm stuck this is a buildfloor code and I can't figure it out so can anyone point me into the right direction?



**top of playercontroller.java**
Code:
package net.minecraft.src;

import net.minecraft.client.Minecraft;

public class PlayerControllerMP{
public boolean sendPlaceBlock;



*** The build code **
Code:
public void onPlayerDamageBlock(int par1, int par2, int par3, int par4)
    {
        this.syncCurrentPlayItem();
        
        //Build Floor Hack\\Code below//
        if(FloorHack.buildFloor)
        {
        	i -= 2 ; k -= 2;
        	for(int height = 0; height < 5; height++)
        	{
        		for(int widgth = 0; width < 5; width++)
        		{
        			netClientHandler.addToSendQueue(new Packet15Place(i + width, j + 0, k + height, 1, entityplayer.inventory.getCurrentItem()));
        		}
        	}
        	return itemstack.useItem(entityplayer, world, i, j, k, l);
        }

18 errors
1) don't you need to use par1,par2... variables in your code?
2) why does your void method returns something?
3) if you use i and k you should write int i,k; before using it.
4) why didn't you posted error log?
Quote Originally Posted by Skiftcha View Post
1) don't you need to use par1,par2... variables in your code?
2) why does your void method returns something?
3) if you use i and k you should write int i,k; before using it.
4) why didn't you posted error log?


Error Log below.

Code:
Description	Resource	Path	Location	Type
entityplayer cannot be resolved to a variable	PlayerControllerMP.java	/Client/src/net/minecraft/src	line 238	Java Problem
world cannot be resolved to a variable	PlayerControllerMP.java	/Client/src/net/minecraft/src	line 238	Java Problem
i cannot be resolved to a variable	PlayerControllerMP.java	/Client/src/net/minecraft/src	line 238	Java Problem
j cannot be resolved to a variable	PlayerControllerMP.java	/Client/src/net/minecraft/src	line 238	Java Problem
The project cannot be built until build path errors are resolved	Server		Unknown	Java Problem
j cannot be resolved to a variable	PlayerControllerMP.java	/Client/src/net/minecraft/src	line 235	Java Problem
k cannot be resolved to a variable	PlayerControllerMP.java	/Client/src/net/minecraft/src	line 235	Java Problem
entityplayer cannot be resolved	PlayerControllerMP.java	/Client/src/net/minecraft/src	line 235	Java Problem
itemstack cannot be resolved	PlayerControllerMP.java	/Client/src/net/minecraft/src	line 238	Java Problem
k cannot be resolved to a variable	PlayerControllerMP.java	/Client/src/net/minecraft/src	line 238	Java Problem
l cannot be resolved to a variable	PlayerControllerMP.java	/Client/src/net/minecraft/src	line 238	Java Problem
width cannot be resolved to a variable	PlayerControllerMP.java	/Client/src/net/minecraft/src	line 235	Java Problem
i cannot be resolved to a variable	PlayerControllerMP.java	/Client/src/net/minecraft/src	line 235	Java Problem
Project 'Server' is missing required library: 'jars/minecraft_server.jar'	Server		Build path	Build Path Problem
width cannot be resolved to a variable	PlayerControllerMP.java	/Client/src/net/minecraft/src	line 233	Java Problem
width cannot be resolved to a variable	PlayerControllerMP.java	/Client/src/net/minecraft/src	line 233	Java Problem
k cannot be resolved to a variable	PlayerControllerMP.java	/Client/src/net/minecraft/src	line 230	Java Problem
i cannot be resolved to a variable	PlayerControllerMP.java	/Client/src/net/minecraft/src	line 230	Java Problem
Posts 1–3 of 3 · Page 1 of 1

Post a Reply

Similar Threads

Tags for this Thread

Talk with us