»Application for Developer

Discussion in 'Off-Topic' started by minion325, Jun 17, 2018.

Thread Status:
Not open for further replies.
  1. minion325

    minion325 Developer Member

    Messages:
    736
    Ratings:
    +249 / -0
    Here is the video of what the enchants i coded can do.


    Code:
    package me.minion325.customenchant.enchants;
    
    import me.minion325.customenchant.enchanting.Enchant;
    import me.minion325.customenchant.enchanting.MaterialType;
    import org.bukkit.event.entity.EntityDamageByEntityEvent;
    import org.bukkit.event.entity.EntityDamageEvent;
    
    import java.util.Random;
    
    public class GetAway extends Enchant {
    
        public GetAway(){
            super("Get Away", 3, MaterialType.CHESPLATE, MaterialType.LEGGINGS);
        }
    
        @Override
        public void onGetHit(EntityDamageEvent event, int level) {
            if (!(event instanceof EntityDamageByEntityEvent)) return;
            EntityDamageByEntityEvent e = ((EntityDamageByEntityEvent) event);
            // COMMENTED FOR TESTING PURPOSESif (!(new Random().nextInt(500) < level)) return;
            ((EntityDamageByEntityEvent) event).getDamager().setVelocity(((EntityDamageByEntityEvent) event).getDamager().getLocation().getDirection().normalize().multiply(-3));
        }
    }
    

    Code:
    package me.minion325.customenchant.enchants;
    
    import me.minion325.customenchant.enchanting.Enchant;
    import me.minion325.customenchant.enchanting.MaterialType;
    import org.bukkit.ChatColor;
    import org.bukkit.entity.LivingEntity;
    import org.bukkit.event.entity.EntityDamageByEntityEvent;
    
    public class Death extends Enchant {
    
        public Death() {
            super("Death", 5, MaterialType.SWORD, MaterialType.AXE);
        }
    
        @Override
        public void onHit(EntityDamageByEntityEvent event, int level) {
            if (event.getEntity() instanceof LivingEntity){
                ((LivingEntity) event.getEntity()).setHealth(0);
                event.getDamager().sendMessage(ChatColor.GRAY + "Your opponent is dead");
                //OF course you can do other stuff here.. this is just an example of how the enchants are created
            }
        }
    }
    

    @short1der @Jonodonozym @aXed

    Tagging them since i have actual videos now

    THIS IS JUST A PROOF OF CONCEPT
     
    Last edited: Jun 18, 2018
    #21
    • Useful Useful x 1
  2. Frxq15

    Frxq15 kek Member

    Messages:
    4,841
    Ratings:
    +1,702 / -0
    Wanna make me an api for nametagedit?
     
    #22
  3. Aival

    Aival Journeyman Member

    Messages:
    29
    Ratings:
    +13 / -0
    Good luck my Minion
     
    #23
  4. YohanaSr

    YohanaSr Ancient Poster Member

    Messages:
    728
    Ratings:
    +1,125 / -0
    Good luck
     
    #24
  5. xReveal

    xReveal Faithful Poster Member

    Messages:
    513
    Ratings:
    +295 / -0
  6. JonasTDD

    JonasTDD Member Member

    Messages:
    83
    Ratings:
    +9 / -0
    Good luck!!
     
    #26
    • Pew Pew x 1
  7. iAmMalakasPlayz

    iAmMalakasPlayz Newbie Member

    Messages:
    1
    Ratings:
    +1 / -0
    Very good, I have to say. It is pretty same as PocketMine (https://github.com/pmmp/PocketMine-MP) which is written in PHP. I would be a good spigot plugin dev as I know how Minecraft works. For the %enchantment% and the %level% bug, on the messages you could use:
    PHP:
    $player->sendMessage(str_replace("%enchantment%"$enchantmentstr_replace("%level%"$levelTextFormat::AQUA."%enchantment% %level% was added to the item in hand.")));
    The code is written in PHP using PocketMine's API because I have never coded Spigot plugins, however, I am pretty sure you can convent this to java.
     
    #27
    • Friendly Friendly x 1
  8. minion325

    minion325 Developer Member

    Messages:
    736
    Ratings:
    +249 / -0
    Nah dw about that.. i didn't do that as yet.

    Its not a bug i just have to replace it :p
     
    #28
  9. NetherArmyGC

    NetherArmyGC Quick Digit Member

    Messages:
    242
    Ratings:
    +118 / -0
    Good Luck :) !
     
    #29
  10. Swag_Fox

    Swag_Fox Head Admin Staff Member HeadAdmin

    Messages:
    4,165
    Ratings:
    +3,199 / -0
    Good luck!
     
    #30
  11. Martin1

    Martin1 Nightmare AKA Detective Member

    Messages:
    986
    Ratings:
    +440 / -0
    Good luck minion!
     
    #31
  12. ItzNishokHere

    ItzNishokHere Journeyman Member

    Messages:
    49
    Ratings:
    +13 / -0
  13. Gunnu

    Gunnu Faithful Poster Member

    Messages:
    683
    Ratings:
    +138 / -0
    I dont think GC would require anymore devs atm cause We got shorty and 2 other very good Devs
    PS u never posted that video after 1 hr >>

    PS Still GL m8 ;)

    -SmitGaming
     
    #33
  14. Sherif

    Sherif Forum Master Member

    Messages:
    1,772
    Ratings:
    +1,078 / -0
    And We do need more developers.
     
    #34
    • Agree Agree x 1
  15. Gunnu

    Gunnu Faithful Poster Member

    Messages:
    683
    Ratings:
    +138 / -0
    Damn that was a fast af reply well whatever i think they should make all applications private too why are we seeing his Dev Application anyways???
     
    #35
  16. Sherif

    Sherif Forum Master Member

    Messages:
    1,772
    Ratings:
    +1,078 / -0
    There isn't any section for developers to apply at, No point in making one If one developer applies every 6 months ;D
     
    #36
Thread Status:
Not open for further replies.

Share This Page