Creating heart particles.

Discussion in 'Plugin Development' started by SirLittlemonster7, Mar 13, 2013.

Thread Status:
Not open for further replies.
  1. How would I do this? I cant seem to figure this out.
     
  2. Offline

    chaseoes

    Something like this:

    Code:
    public void playWolfHearts(Location loc) {
            World world = loc.getWorld();
            Wolf wo = (Wolf) world.spawn(loc, Wolf.class);
            wo.remove();
            net.minecraft.server.v1_4_R1.World nmsWorld = ((CraftWorld) world).getHandle();
            net.minecraft.server.v1_4_R1.EntityWolf nmsWolf = (EntityWolf) ((CraftEntity) wo).getHandle();
            nmsWorld.broadcastEntityEffect(nmsWolf, (byte) 7);
        }
     
Thread Status:
Not open for further replies.

Share This Page