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

I have a simple non living entity, but it randomly goes up or down making the player standing on it fall

Does anyone know a fix for this?

"you seem to be THE best modder I've seen imo."

~spynathan

 

ლ(́◉◞౪◟◉‵ლ

I have a simple non living entity, but it randomly goes up or down making the player standing on it fall

Does anyone know a fix for this?

I have the same issue with an entity which is just a copy of the Painting.

 

Can I see the code of your Entity registration with the EntityRegistry?

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.

I have the same issue with an entity which is just a copy of the Painting.

 

if your talking about 1.5 I heard that paintings were bugged

  • Author

Oh sorry, ill upload it when I get back home

"you seem to be THE best modder I've seen imo."

~spynathan

 

ლ(́◉◞౪◟◉‵ლ

  • Author

alright

Im registering it with

EntityRegistry.registerModEntity(DerpEntity.class, "EntityDerp", 1, this, 128, 1, true);


THIS IS THE ENTITY CLASS

public DerpEntity(World par1World) {
	super(par1World);
	this.setSize(1.0F, 1.0F);
        this.entityCollisionReduction = 1.0F;
        this.renderDistanceWeight = (double)(1);
        this.texture = "textures/blocks/dirt";
}
@SideOnly(Side.CLIENT)
    public float getShadowSize()
    {
        return 1.0F;
    }	
@Override
public AxisAlignedBB getBoundingBox(){
	return this.boundingBox;
}
@Override
 public boolean canBePushed()
    {
        return false;
    }
@Override
 public AxisAlignedBB getCollisionBox(Entity var1){
	return this.getBoundingBox();
}
public void onUpdate()
{
     }
@Override
public boolean canBeCollidedWith()
    {
        return true;
    }
@Override
protected void entityInit() {
        this.dataWatcher.addObject(27, this.entityId);
}

"you seem to be THE best modder I've seen imo."

~spynathan

 

ლ(́◉◞౪◟◉‵ლ

  • Author

Anyone have a solution?

"you seem to be THE best modder I've seen imo."

~spynathan

 

ლ(́◉◞౪◟◉‵ლ

Anyone have a solution?

 

You can either heighten the 2nd last parameter or set the last one to false in your registerModEntity and see if that works.

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.

I have implemented custom painting, but it's kinda old code. I think I fixed same issue as you're describing. My registration code:

registerEntity(EntityJaffaPainting.class, "jaffaPainting", 160, Integer.MAX_VALUE, false, JaffaPaintingEntityID);

    private void registerEntity(Class<? extends Entity> entityClass, String entityName, int trackingRange, int updateFrequency, boolean sendsVelocityUpdates, int id) {
        EntityRegistry.registerGlobalEntityID(entityClass, entityName, id);
        EntityRegistry.registerModEntity(entityClass, entityName, id, this, trackingRange, updateFrequency, sendsVelocityUpdates);
    }

 

Not sure if it helps, but it's better than nothing :D.

mnn.getNativeLang() != English

If I helped you please click on the "thank you" button.

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.