Jboots! (Boots with speed boost)

Discussion in 'Archived: Plugin Requests' started by Scyfi, Mar 24, 2011.

  1. Offline

    Scyfi

    Looking for a mod that can make chain mail(or user defined boots) and add a run speed buff to them. Not sure if anyone is familiar with Jboots from Everquest, but my goal is to place chain mail boots as a rare drop from monsters. These boots would allow the wearer to run faster. Also maybe allow them to fall from greater distance and possibly jump higher. If anyone could make this happen would be greatly appreciated.

    I'll also take some tips on how I would go about making the mod myself. I have java knowledge but not much knowledge of bukkit.

    Thanx
     
  2. Offline

    retsrif

    I have a plugin called Power Boots and I'll be implementing diamond boots and chainmail boots soon. The diamond will make you faster, and the chainmail will make you have no fall damage (if possible).
     
  3. Offline

    ssell

    This is fairly simple. Inside your PlayerListener:

    Code:
    public void onEntityDamage( EntityDamageEvent event )
     {
            Entity entity = event.getEntity( );
    
            //Is it a player that was just damaged?
            if( entity instanceof Player )
            {
                Player player = ( Player )entity;
    
                //Was it caused by a fall?
                if( event.getCause( ) ==  DamageCause.FALL )
                {
                    //Are they wearing Chainmail Boots?
                    if( player.getInventory( ).getBoots( ).getType( ).equals( Material.CHAINMAIL_BOOTS ) )
                    {
                        //Cancel the damage
                        event.setCancelled( true );
                    }
                }
            }
    
            ...
    
    }
    
     
  4. Offline

    retsrif

    Oh thanks ssell!! :D
     
  5. Offline

    Scyfi

    The power boots look good, just was looking for something only on chain mail. Maybe have the option to pick which boots do which?

    Also thought I read the onPlayerMove can cause performance issues.
     

Share This Page