Jump to content

[1.10]How to Walkthroughable Block


terraya

Recommended Posts

Hello Dear Forum,

 

i would like to as me ... how can i make an "Walkthroughable Block" ...

 

i mean , this here is a normal block class:

 

public class BlockUpdateClass extends Block
{
  public BlockUpdateClass(Material materialIn)
  {
    super(materialIn);
    this.setUnlocalizedName(getLocalizedName());
    this.setCreativeTab(CreativeTabs.MATERIALS);
  }
}

 

is there any function which makes that what i would like to :o?

Link to comment
Share on other sites

Look at any vanilla block you can walk through. Look for any method that returns AxisAlignedBB.

Apparently I'm a complete and utter jerk and come to this forum just like to make fun of people, be confrontational, and make your personal life miserable.  If you think this is the case, JUST REPORT ME.  Otherwise you're just going to get reported when you reply to my posts and point it out, because odds are, I was trying to be nice.

 

Exception: If you do not understand Java, I WILL NOT HELP YOU and your thread will get locked.

 

DO NOT PM ME WITH PROBLEMS. No help will be given.

Link to comment
Share on other sites

Look at any vanilla block you can walk through. Look for any method that returns AxisAlignedBB.

 

alright,

 

well im searching for the "Vamilla" code for "Clouds" ...

 

i tryed to extend my class to "BlockCloud" but there is none :x

 

now i gtg to work. hopefully i get an answer until then :P

 

thanks anyway!

Link to comment
Share on other sites

There is no cloud block in vanilla.

 

BlockBush

and

BlockTorch

both allow the player to pass through the block.

 

"BlockBush" Work perfectly, thank you very much!

 

last question is,

 

i want to make instead a "FireEntity" a "FireBlock" , is there any way to add sound/Firedamage on the block? :o

 

i mean, "Cactus" is doing damage on touching it , so i would search for customcactus and change the normal damage to "firedamage" right?

and the sound, im sure there is a function for :o

Link to comment
Share on other sites

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.