Make entity ride another entity with procedure

Published by uSkizzik on Fri, 08/21/2020 - 07:14
Status
Migrated
Product/platform
Not applicable
Priority
Normal
Issue description

I would like to have a procedure called something like "Start riding" and the entity you want.
It would be useful for some things including Mind Control ability (Which I want to add in my mod)

Issue comments

Oh, I thought I was going to have to migrate it myself. Thanks!

this is the full code change the Entity Landingear to your entity:

Entity entity2 = new LandingGearEntity.CustomEntity(LandingGearEntity.entity, entity.world);
entity2.setPositionAndUpdate(entity.getPosX(), entity.getPosY(), entity.getPosZ());
entity.world.addEntity(entity2);
entity.startRiding(entity2);

custom snippes



Donate to MCreator

By donating to developers you can speed up development, as with more resources, we can dedicate more time to MCreator. It is a free project made by developers working on it in their free time.