Here is the video of what the enchants i coded can do. Spoiler: Code for Get Away enchant 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)); } } Spoiler: Code for Death Enchant 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
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%", $enchantment, str_replace("%level%", $level, TextFormat::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.
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
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???
There isn't any section for developers to apply at, No point in making one If one developer applies every 6 months