LtxProgrammer / Changed-Minecraft-Mod

A Changed experience in the world of Minecraft.
MIT License
35 stars 37 forks source link

When Heal a Tame ChangedEntity Spawn Particles? #882

Closed Foxyas closed 5 months ago

Foxyas commented 5 months ago

Add Hearts Particles for when you Heal a Tame Changed entity?

Foxyas commented 5 months ago

I make this code and test with my addon and work very fine but idk if you will want to use =/

// Rest of the code up ^
this.heal(2.0F);
 if (this.level instanceof ServerLevel _level){
                        _level.sendParticles(ParticleTypes.HEART, (this.getX()), (this.getY() + 1), (this.getZ()), 7, 0.3, 0.3, 0.3, 1); //Spawn Heal Particles
                    }                    
// Rest of the code Down v
LtxProgrammer commented 5 months ago

Added in 0933ccb2d67926f04fe0e4971893b44c3aa07397