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

  • Author

Entity Registration is in fact called from ServerProxy (which is not shown)

 

Then I use my custom IDs?

  • Author

OK, the function is fixed, but my entity looks glitchy. Maybe something wrong here?

 

EntityRegistry.registerModEntity(EntityDataSwordman.class, "entityDataSwordman", 1, Main.instance, 100, 100, true);

 

EDIT: That is, the entity first starts to move to a target direction, but after a while, it zooms back, and moves at another direction... and then it possibly zooms back again...

  • Author

STILL cant get it right!!!

I have used up my Pastebin allowance already...

 

EntityLibrary:

http://pastebin.com/PHMNEd14

 

My custom entity:

http://pastebin.com/WLUY77zK

 

My custom render:

public class RenderDataCreature extends RenderBiped {

 

ResourceLocation dataTexture;

 

public RenderDataCreature() {

super(new ModelBiped(0), 0.5F);

this.dataTexture = new ResourceLocation(Main.MODID + ":" + "textures/entity/steve.png");

// TODO Auto-generated constructor stub

}

 

@Override

protected ResourceLocation getEntityTexture(EntityLiving p_110775_1_) {

        return this.dataTexture;

    }

 

}

 

  • Author

So wait, I do it like

EntityRegistry.registerModEntity(EntityDataSwordman.class, "entityDataSwordman", 1, Main.instance, 1, 1, true);

 

But my entity is still invisible!

  • Author

Well... let me stabilise this:

 

trackingRange The range at which MC will send tracking

updatesupdateFrequency The frequency of tracking updates

 

What does these two mean? I bet this can help resolve a lot of things.

trackingRange

Its The range at which MC will send tracking

updatesupdateFrequency

The frequency of tracking updates

 

:D (thanks cpt. obvious!)

 

I know, I know, HOLD your applause, I am but a humble helper.

1.7.10 is no longer supported by forge, you are on your own.

you need to be pretty much inside the entity

 

Warning!

 

 

maxresdefault.jpg

 

 

 

I am sorry, I had too good day xD

1.7.10 is no longer supported by forge, you are on your own.

Guest
This topic is now closed to further replies.

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.