Jump to content

Recommended Posts

Posted

Hello!

I am currently trying to make some kind of rail,but not like the minecraft basic rail,extending BlockRailBase;I want to use the onEntityColidedWithBlock method[or something alike] and a update method in my te class to expand the Block colision range;all of this making an entity like an minecart move

Also,i want my rail to be using EnumFacing , Plane.Horizontal

Now,my questions:

1:How do i lock my entity on my block to move only from a point to another

2:How do i use the update method so i detect if the state is north,to move the entity in the x axis etc.

I am curently using a Base block made by me by copying all the vanila code,then removing the enumraildirection blockstate things but the rail doesn`t get "on" my custom rail.....

1.9

P.S.:The vanilla [or forge because forge might of patched some things] code of the  BlockRailBase is confusing,or i might say it`s alike it`s class modifyer,abstract

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.