Jump to content
View in the app

A better way to browse. Learn more.

Forge Forums

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Featured Replies

Posted

Hello,

when I spawn my Entity (which is basically an XP orb with noclip) it seems to ignore that it has noclip and will show up above the Block in which it should be. But this Problem only appears when I spawn it on the server. When I didn't register the Entity as Mod Entity (so that it doesn't Sync up to the server automatically) and spawn it on both sides everything seems to be normal except for the fact that it isn't respawning on the client when I load the world. When I spawn it only on the Client it won't glitch out of the block and it will run much more smoothly because its position logic is updated by the client. When I spawn it on both sides it will appear twice once inside the block and once outside of it because the server forces the client to render it.

My question is now: How can I get either the positioning logic to work or send the information about the entity to the client to let the client update its position logic by itself?

Here is a link to my code: http://pastebin.com/rNbFKnP5

 

I'm looking forward to any help.

 

Busti

:D

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

Hello,

when I spawn my Entity (which is basically an XP orb with noclip) it seems to ignore that it has noclip and will show up above the Block in which it should be. But this Problem only appears when I spawn it on the server. When I didn't register the Entity as Mod Entity (so that it doesn't Sync up to the server automatically) and spawn it on both sides everything seems to be normal except for the fact that it isn't respawning on the client when I load the world. When I spawn it only on the Client it won't glitch out of the block and it will run much more smoothly because its position logic is updated by the client. When I spawn it on both sides it will appear twice once inside the block and once outside of it because the server forces the client to render it.

My question is now: How can I get either the positioning logic to work or send the information about the entity to the client to let the client update its position logic by itself?

Here is a link to my code: http://pastebin.com/rNbFKnP5

 

I'm looking forward to any help.

 

Busti

:D

 

How do you register your entity? Can I see the code of it?

Don't ask for support per PM! They'll get ignored! | If a post helped you, click the "Thank You" button at the top right corner of said post! |

mah twitter

This thread makes me sad because people just post copy-paste-ready code when it's obvious that the OP has little to no programming experience. This is not how learning works.

  • Author

 

How do you register your entity? Can I see the code of it?

 

this:

EntityRegistry.registerModEntity(PipeXPOrb.class, "PipeXPOrb", 1, this, EntityID_PipeXPOrb, 5, false);
EntityRegistry.registerGlobalEntityID(PipeXPOrb.class, "PipeXPOrb", EntityID_PipeXPOrb);

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

 

How do you register your entity? Can I see the code of it?

 

this:

EntityRegistry.registerModEntity(PipeXPOrb.class, "PipeXPOrb", 1, this, EntityID_PipeXPOrb, 5, false);
EntityRegistry.registerGlobalEntityID(PipeXPOrb.class, "PipeXPOrb", EntityID_PipeXPOrb);

You only need the first registrar line, and your arguments (specifically the fifth) are wrong.

BEWARE OF GOD

---

Co-author of Pentachoron Labs' SBFP Tech.

Which units does it use?

That argument is the tracking range of the entity. (it will despawn when you are farther than that.) TBH, I don't quite know what units it uses. Try 256; that seems to work well enough.

BEWARE OF GOD

---

Co-author of Pentachoron Labs' SBFP Tech.

  • Author

This seems to work well but it doesn't fix my noclip error (it is still glitching out of blocks)

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

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...

Important Information

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

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.