I went out of my way to debug it for you, I got the error to go away. Here is your final Code
PrimedLumeniteTnt
public class PrimedLumeniteTnt extends PrimedTnt {
@Nullable
private LivingEntity owner;
public PrimedLumeniteTnt(Level level, double x, double y, double z, @Nullable LivingEntity igniter) {
this(EntityInit.LUMENITE_TNT.get(), level);
this.setPos(x, y, z);
double d0 = level.random.nextDouble() * (double)((float)Math.PI * 2F);
this.setDeltaMovement(-Math.sin(d0) * 0.02D, (double)0.2F, -Math.cos(d0) * 0.02D);
this.setFuse(80);
this.xo = x;
this.yo = y;
this.zo = z;
this.owner = igniter;
}
public PrimedLumeniteTnt(EntityType<Entity> entityEntityType, Level level) {
super((EntityType<? extends PrimedTnt>) entityEntityType, level);
}
@Nullable
public LivingEntity getOwner() {
return this.owner;
}
@Override
protected void explode() {
float f = 4.0F;
this.level.explode(this, this.getX(), this.getY(0.0625D), this.getZ(), f, Explosion.BlockInteraction.BREAK);
}
}
And here is where you register it
public static final RegistryObject<EntityType<Entity>> LUMENITE_TNT = ENTITY_TYPES.register("lumenite_tnt",
() -> EntityType.Builder.of(PrimedLumeniteTnt::new, MobCategory.MISC)
.fireImmune()
.sized(0.98F, 0.98F)
.build(new ResourceLocation(Main.MOD_ID, "lumenite_tnt").toString()));
I think what happened here is when you tried to extend your tnt class when in fact you should've just put <Entity> since PrimedTnt is extending Entity