Jump to content

Recommended Posts

Posted

Hi guys,

I am trying to make a firepit but the texture seems not working properly.

 

This is the picture :

Firepit.png

 

Notice that X-Ray effect ?

 

Please Help me, thanks a lot.  ;)

Posted

See this methods

 @SideOnly(Side.CLIENT)

    /**
     * Returns which pass should this block be rendered on. 0 for solids and 1 for alpha
     */
    public int getRenderBlockPass()
    {
        return 1;
    }

/**
     * If this block doesn't render as an ordinary block it will return False (examples: signs, buttons, stairs, etc)
     */
    public boolean renderAsNormalBlock()
    {
        return false;
    }

English is not my native language

Posted

First make a new package you can name it whatever you want

then in that package make a class named ClientProxyModname

put this in that package: http://pastebin.com/jpLxz1bx

now in your main package make a class CommonProxymodname and put this in there:

package yourmainpackage;

 

public class CommonProxymodname {

 

public void registerRenderThings(){

 

}

 

}

 

Posted

Oh, that doesn't work either.

By the way I already had the Proxy's setup before.

 

I have this in my Main Class :

@SidedProxy(clientSide = "packagename", serverSide = "packageName...blablabla")
public static CommonProxy proxy;

 

And, these are my ClientProxy & CommonProxy classes (btw they are in seperate package) :

package xxxxxxx;

import xxxxxx;

public class CommonProxy implements IGuiHandler {
    public static void registerRenderThings() {

    }
    
@Override
public Object getClientGuiElement(int ID, EntityPlayer player, World world, int x, int y, int z) {
	return null;
}

@Override
public Object getServerGuiElement(int ID, EntityPlayer player, World world, int x, int y, int z) {
	return null;
}
}

 

package xxxxxx;

import xxxxxx;

public class ClientProxy extends CommonProxy {

public static void registerRenderThings() {

}
}

 

EDIT :

I am CURRENTLY preloading textures in my load() method in main class (FMLInitializationEvent, not PreInit / PostInit)

Posted

Yeah that works.

Researching a bit and looked inside the BlockRedstoneWire class.

I just added the isOpaqueBlock() method and it was working.

 

Anyways, thanks for replying !!

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



×
×
  • Create New...

Important Information

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