MC Modding
Please register and join the community!

Flower or spiderweb like items [unAnswered]

View previous topic View next topic Go down

Flower or spiderweb like items [unAnswered]

Post by felinoel on Wed Oct 19, 2011 3:11 pm

How to make one of those items where it is just an image repeated would be nice to know, as well as how to change the direction it is repeated in, like if it is rotated on the x axis then how to change that to the y axis.


Last edited by felinoel on Sat May 19, 2012 6:02 pm; edited 5 times in total
avatar
felinoel
Member

Posts : 18
Join date : 2011-10-19

View user profile

Back to top Go down

Re: Flower or spiderweb like items [unAnswered]

Post by austin56101 on Sat Oct 22, 2011 10:32 pm

put this into the block file:

Code:
public boolean isOpaqueCube()
        {
                return false;
        }
public boolean renderAsNormalBlock()
{
return false;
}

then put:

Code:
 public int getRenderType()
        {
                return (READ BELLOW);
        }

set the render to one of these:
avatar
austin56101
Moderator
Moderator

Posts : 85
Join date : 2011-10-22
Age : 20
Location : Cali!

View user profile

Back to top Go down

Re: Flower or spiderweb like items [unAnswered]

Post by felinoel on Sat Oct 22, 2011 11:32 pm

Woah cool, I guess what I want is type 2 then, so just do a regular custom block with the listed differences then? Thanks!

No idea to do something like turning type 2 on its side though?
avatar
felinoel
Member

Posts : 18
Join date : 2011-10-19

View user profile

Back to top Go down

Re: Flower or spiderweb like items [unAnswered]

Post by austin56101 on Sat Oct 22, 2011 11:38 pm

what?
avatar
austin56101
Moderator
Moderator

Posts : 85
Join date : 2011-10-22
Age : 20
Location : Cali!

View user profile

Back to top Go down

Re: Flower or spiderweb like items [unAnswered]

Post by felinoel on Sun Oct 23, 2011 12:02 am

Change the z axis to x, of type 2.
avatar
felinoel
Member

Posts : 18
Join date : 2011-10-19

View user profile

Back to top Go down

Re: Flower or spiderweb like items [unAnswered]

Post by austin56101 on Sun Oct 23, 2011 12:11 am

Code:
public boolean isOpaqueCube()
        {
                return false;
        }
public boolean renderAsNormalBlock()
      {
                return false;
        }
public int getRenderType()
        {
                return 2;
        }

put that into your code
warning, that doesnt make it generate
just makes its the shape
avatar
austin56101
Moderator
Moderator

Posts : 85
Join date : 2011-10-22
Age : 20
Location : Cali!

View user profile

Back to top Go down

Re: Flower or spiderweb like items [unAnswered]

Post by felinoel on Sun Oct 23, 2011 12:21 am

You mean naturally generate, right? That is fine, I just want to make a fish shaped bone carving that is purchasable from a Millenaire NPC in the Inuit culture.
avatar
felinoel
Member

Posts : 18
Join date : 2011-10-19

View user profile

Back to top Go down

Re: Flower or spiderweb like items [unAnswered]

Post by austin56101 on Sun Oct 23, 2011 12:22 am

lol ok that should work
avatar
austin56101
Moderator
Moderator

Posts : 85
Join date : 2011-10-22
Age : 20
Location : Cali!

View user profile

Back to top Go down

Re: Flower or spiderweb like items [unAnswered]

Post by felinoel on Sun Oct 23, 2011 12:26 am

Sweet, now to await a bow modding tutorial for the Inuit bow. Thanks for your help.
avatar
felinoel
Member

Posts : 18
Join date : 2011-10-19

View user profile

Back to top Go down

Re: Flower or spiderweb like items [unAnswered]

Post by felinoel on Wed Oct 26, 2011 5:18 am

austin56101 wrote:
Code:
public boolean isOpaqueCube()
        {
                return false;
        }
public boolean renderAsNormalBlock()
      {
                return false;
        }
public int getRenderType()
        {
                return 2;
        }

put that into your code
warning, that doesnt make it generate
just makes its the shape
Wait... what exactly in there makes the z-axis be the x-axis?
avatar
felinoel
Member

Posts : 18
Join date : 2011-10-19

View user profile

Back to top Go down

Re: Flower or spiderweb like items [unAnswered]

Post by austin56101 on Wed Oct 26, 2011 5:19 am

the render type
avatar
austin56101
Moderator
Moderator

Posts : 85
Join date : 2011-10-22
Age : 20
Location : Cali!

View user profile

Back to top Go down

Re: Flower or spiderweb like items [unAnswered]

Post by austin56101 on Wed Oct 26, 2011 5:19 am

also itss not xyz
notch is stupid and made it ijk lol
avatar
austin56101
Moderator
Moderator

Posts : 85
Join date : 2011-10-22
Age : 20
Location : Cali!

View user profile

Back to top Go down

Re: Flower or spiderweb like items [unAnswered]

Post by felinoel on Wed Oct 26, 2011 5:24 am

austin56101 wrote:the render type
Oh... interesting?

austin56101 wrote:also itss not xyz
notch is stupid and made it ijk lol
Sounds like he just wanted to make it original to me, seems pretty cool imo.
xyz is the standard though and as such is more recognizable so I will keep calling it that.
avatar
felinoel
Member

Posts : 18
Join date : 2011-10-19

View user profile

Back to top Go down

Re: Flower or spiderweb like items [unAnswered]

Post by austin56101 on Wed Oct 26, 2011 5:27 am

Lol whatever works for you:)
avatar
austin56101
Moderator
Moderator

Posts : 85
Join date : 2011-10-22
Age : 20
Location : Cali!

View user profile

Back to top Go down

Re: Flower or spiderweb like items [unAnswered]

Post by felinoel on Thu Oct 27, 2011 10:56 pm

austin56101 wrote:Lol whatever works for you:)
Also in game it says xyz when you check out f3, it must just be an in the code thing only.
avatar
felinoel
Member

Posts : 18
Join date : 2011-10-19

View user profile

Back to top Go down

Re: Flower or spiderweb like items [unAnswered]

Post by felinoel on Sat May 19, 2012 5:59 pm

austin56101 wrote:the render type
This didn't work... I want to rotate the model not change the render type..?
avatar
felinoel
Member

Posts : 18
Join date : 2011-10-19

View user profile

Back to top Go down

Re: Flower or spiderweb like items [unAnswered]

Post by Sponsored content


Sponsored content


Back to top Go down

View previous topic View next topic Back to top


 
Permissions in this forum:
You cannot reply to topics in this forum