Jump to content

[SOLVED]How to make an Entity Noclip?


Busti

Recommended Posts

Sorry but I am asking again since i still cant fix the Problem :(

 

I am trying to make an Entity Noclip but it is always glitching out of the Block it should be inside. I already tried the noclip flag as well as a Custom movement system. It is not doing it when I don't register it. How can I make it noclip? I am trying this for ages now but it seems like you can't disable the collision detection by just setting the entity noclip. When I place 2 Blocks above it it will stay between Block 1 and Block 2

BBB
BBB
BBB
R
AAA
APA
AAA

A = Block 1

B = Block 2

P = Entity Position

R = Render Position

 

Please help me...

 

Busti

 

EDIT1: I just found out that the coordinates just moves upwards on the client.

PM's regarding modding questions should belong in the Modder Support sub-forum and won't be answered.

Link to comment
Share on other sites

WOOO I SOLVED IT :D

 

Just override this in your entity class:

        @Override
public void setPositionAndRotation2(double x, double y, double z, float a, float b, int par1) {
	this.setPosition(x, y, z);
                this.setRotation(a, b);
}

PM's regarding modding questions should belong in the Modder Support sub-forum and won't be answered.

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.