2

I'm trying to make a particle VIBRATION fly out of the player when using an item

User5138104G's Avatar User5138104G5/14/24 1:06 pm
2 emeralds 37
@Override
public TypedActionResult<ItemStack> use(World world, PlayerEntity playerEntity, Hand hand) {
world.addParticle((ParticleEffect) ParticleTypes.VIBRATION,true , playerEntity.getX(), playerEntity.getY(), playerEntity.getZ(),10.0,0.0,0.0);
world.addParticle(ParticleTypes.HEART, playerEntity.getX(), playerEntity.getY() + 2.0, playerEntity.getZ(), 0.0, 0.0, 0.0);
return TypedActionResult.success(playerEntity.getStackInHand(hand));
}
Posted by User5138104G's Avatar
User5138104G
Level 1 : New Miner
0

Create an account or sign in to comment.

Planet Minecraft

Website

© 2010 - 2024
www.planetminecraft.com

Welcome