Hi, i'm trying to make a projectile that could be "charged", that is the item would be clicked and then released, and on release the projectile would spawn with a different size, naturally the longer the item's clicked the bigger the projectile size.
pseudo code would look like that:
releaseUsing(item, world, entity,time){
//code
projectile = new Projectile(size);
projectile.shoot();
}
but given entity registrations require the attribute "sized(f, f)" : ENTITY_TYPES.register("projectile", ()-> {return EntityType.Builder.<Projectile>of(Projectile::new, EntityClassification.MISC).sized(0.25f,0.25f))) is it even possible to change it?
Slimes can "change" size (like there's only one registration of this entity with a size (2,2) ) and they have a method "setSize": https://pastebin.com/hqqvEQRq is it possible to adapt it to a projectile for example ? or are projectileEntities hard coded ? i'm confused