Jump to content

Entity Stuck in Blocks


calclavia

Recommended Posts

I want to spawn an entity inside of a block. This is for my mod ICBM in which I want the missile to spawn inside of a missile launcher. The problem with that is that once it spawns inside of a block, it makes the block un-interactable (can't be broken, can't be clicked or activated). Is there something I can do to the entity to have it remain inside the block but have it do no collision checks while it's in the block so people can interact with the block?

Link to comment
Share on other sites

a) have the launcher itselft render the missile and when launched stop rendering and spawn a missile to fire

b) set the bound box of the missile to zero tile out of the launcher

 

"set the bound box of the missile to zero tile out of the launcher" What do you mean by this? So the missile has no bounds while it's in the launcher?

Link to comment
Share on other sites

a) have the launcher itselft render the missile and when launched stop rendering and spawn a missile to fire

b) set the bound box of the missile to zero tile out of the launcher

 

"set the bound box of the missile to zero tile out of the launcher" What do you mean by this? So the missile has no bounds while it's in the launcher?

something like that though i'm not sure how to code it. But its simple the missile will have no collision box or bound box when in the launcher.

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.



×
×
  • Create New...

Important Information

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