Ir para conteúdo

yLR111

Membros
  • Total de itens

    278
  • Registro em

  • Última visita

Tudo que yLR111 postou

  1. Resolvido!!! Tinha testado isso antes não sei pq não tinha ido, mas foi.
  2. Estou verficiando o número da Lore de um item, mas essa lore está "1.000" e quero clicar com botão direito ler ele como 1000
  3. yLR111

    Rede Focus

    Entre em contato LeoRamos#3870
  4. Como faço para dropar os itens da config no dropItem?
  5. Como faço para pegar quantidade de vacas em uma região utilizando getNearbyEntities. public static void spawnarBosses() { Bukkit.getScheduler().scheduleSyncRepeatingTask(Main.plugin, new Runnable() { @Override public void run() { List<Entity> nearbyEntites = (List<Entity>) Bukkit.getWorld("arena").getNearbyEntities(Bukkit.getWorld("arena").getSpawnLocation(), 17, 17, 17); Random random = new Random(); int minx = 2; int maxx = 29; int minz = -8; int maxz = 18; int x = random.nextInt(maxx - (minx) + 1) + (minx); int z = random.nextInt(maxz - (minz) + 1) + (minz); Location loc = new Location(Bukkit.getWorld("arena"), x,43,z); if(nearbyEntites.size() <= 15) { for(Entity e : nearbyEntites) { if(e instanceof Cow) { boss(loc); Bukkit.broadcastMessage("§aEntidades: §e" + nearbyEntites.size()); }else { e.remove(); } } } Bukkit.broadcastMessage("§aEntidades: §e" + nearbyEntites); } }, 20L, 20L); }
  6. Estou fazendo uma skull customizada e queria que ela fosse igual um capacete de diamante em questao de dano, e teria alguma forma sem ser o evento EntityDamageByEntityEvent?
  7. Olá, meu nome é Leo Ramos, e irei abrir um servidor de Factions nas próximas semanas e estou precisando de pessoas que queiram fazer parte da equipe, que possa acrescentar dentro do servidor! Requisitos: - 16 anos - Tenha comprometimento com o servidor - Tenha conhecimento em Factions - Conhecimento básico em servidores Caso queira fazer parte entre em contato comigo via Discord: LeoRamos#3870
  8. Estou criando plugin de /mina e queria que nesse mundo nao gerar o bioma de OCEAN e estou procurando em foruns e nao acho.
  9. Não uso skript, estou precisando de uma ajuda em java bukkit mesmo, mas vlw.
  10. Como faço para deixar o mundo apenas com o bioma de deserto? Codigo: private void criarMundo() { WorldCreator mundo = WorldCreator.name("mina"); mundo.generatorSettings("{\"coordinateScale\":684.412,\"heightScale\":684.412,\"lowerLimitScale\":512.0,\"upperLimitScale\":512.0,\"depthNoiseScaleX\":200.0,\"depthNoiseScaleZ\":200.0,\"depthNoiseScaleExponent\":0.5,\"mainNoiseScaleX\":80.0,\"mainNoiseScaleY\":160.0,\"mainNoiseScaleZ\":80.0,\"baseSize\":8.5,\"stretchY\":12.0,\"biomeDepthWeight\":0.2,\"biomeDepthOffset\":0.0,\"biomeScaleWeight\":1.0,\"biomeScaleOffset\":0.0,\"seaLevel\":63,\"useCaves\":false,\"useDungeons\":false,\"dungeonChance\":8,\"useStrongholds\":false,\"useVillages\":false,\"useMineShafts\":false,\"useTemples\":false,\"useMonuments\":false,\"useRavines\":false,\"useWaterLakes\":false,\"waterLakeChance\":4,\"useLavaLakes\":false,\"lavaLakeChance\":80,\"useLavaOceans\":false,\"fixedBiome\":-1,\"biomeSize\":4,\"riverSize\":4,\"dirtSize\":33,\"dirtCount\":10,\"dirtMinHeight\":0,\"dirtMaxHeight\":256,\"gravelSize\":33,\"gravelCount\":8,\"gravelMinHeight\":0,\"gravelMaxHeight\":256,\"graniteSize\":33,\"graniteCount\":10,\"graniteMinHeight\":0,\"graniteMaxHeight\":80,\"dioriteSize\":33,\"dioriteCount\":10,\"dioriteMinHeight\":0,\"dioriteMaxHeight\":80,\"andesiteSize\":33,\"andesiteCount\":10,\"andesiteMinHeight\":0,\"andesiteMaxHeight\":80,\"coalSize\":1,\"coalCount\":0,\"coalMinHeight\":0,\"coalMaxHeight\":0,\"ironSize\":1,\"ironCount\":0,\"ironMinHeight\":0,\"ironMaxHeight\":0,\"goldSize\":1,\"goldCount\":0,\"goldMinHeight\":0,\"goldMaxHeight\":0,\"redstoneSize\":1,\"redstoneCount\":0,\"redstoneMinHeight\":0,\"redstoneMaxHeight\":0,\"diamondSize\":1,\"diamondCount\":0,\"diamondMinHeight\":0,\"diamondMaxHeight\":0,\"lapisSize\":1,\"lapisCount\":0,\"lapisCenterHeight\":0,\"lapisSpread\":0,\"emeraldSize\":1,\"emeraldCount\":0,\"emeraldCenterHeight\":0,\"emeraldSpread\":0}"); mundo.createWorld(); }
  11. Vale lembrar que esse Plugin contem bugs, e acaba limitando servidores em questão de recompensas por não ter como modificar!
  12. ChangeLog: (30/04/20) - Sistema de TOP Ranking, Categoria de Plantações (opcional*), Sistema de Salvamento em SQLite
  13. Continua mesma coisa: package me.leo.teste; import org.bukkit.Bukkit; import org.bukkit.entity.Player; import org.bukkit.event.EventHandler; import org.bukkit.event.Listener; import org.bukkit.event.player.PlayerJoinEvent; import org.bukkit.plugin.java.JavaPlugin; import org.bukkit.scoreboard.DisplaySlot; import org.bukkit.scoreboard.Objective; import net.citizensnpcs.api.CitizensAPI; public class Main extends JavaPlugin implements Listener{ public static Main plugin; public void onEnable() { plugin = this; Bukkit.getPluginManager().registerEvents(this, this); } public void onDisable() { } @EventHandler public void aoEntrar(PlayerJoinEvent e) { Player p = e.getPlayer(); Scoreboard(p); } public static void Scoreboard(Player player){ if(CitizensAPI.getNPCRegistry().isNPC(player)) return; org.bukkit.scoreboard.Scoreboard scoreboard = Bukkit.getScoreboardManager().getNewScoreboard(); Objective objective = scoreboard.registerNewObjective("showhealth", "health"); objective.setDisplaySlot(DisplaySlot.BELOW_NAME); objective.setDisplayName("§c❤"); player.setHealth(player.getHealth()); player.setScoreboard(scoreboard); } }
  14. Assim? me passa seu discord. public static void Scoreboard(Player p) { org.bukkit.scoreboard.Scoreboard board = Bukkit.getScoreboardManager().getNewScoreboard(); for (Player onlinePlayer : Bukkit.getOnlinePlayers()) { if (!CitizensAPI.getNPCRegistry().isNPC(onlinePlayer)) { Objective health = board.registerNewObjective("showhealth", "health"); health.setDisplaySlot(DisplaySlot.BELOW_NAME); health.setDisplayName("§c❤"); health.getScore(onlinePlayer).setScore((int)onlinePlayer.getHealth()); } } p.setScoreboard(board); }
  15. Então colocaria isso dentro de um if? Exemplo checar se nao for npc e colocar dentro?
  16. Tentei novamente e não funcionou, to tempo tentando resolver e não consigo. Objective health = board.registerNewObjective("showhealth", "health"); health.setDisplaySlot(DisplaySlot.BELOW_NAME); health.setDisplayName("§c❤"); for (Player onlinePlayer : Bukkit.getOnlinePlayers()) { if (CitizensAPI.getNPCRegistry().getByUniqueId(onlinePlayer.getUniqueId()) == null) { health.getScore(onlinePlayer).setScore((int)onlinePlayer.getHealth()); } }
  17. Tentei fazer assim e não foi: Objective health = board.registerNewObjective("showhealth", "health"); health.setDisplaySlot(DisplaySlot.BELOW_NAME); health.setDisplayName("§c❤"); for (Player onlinePlayer : Bukkit.getOnlinePlayers()) { if (!CitizensAPI.getNPCRegistry().isNPC(onlinePlayer)) { health.getScore(onlinePlayer).setScore((int)onlinePlayer.getHealth()); } }
  18. Como que faço que os NPC do Citizens não tenha coração em cima do nome? Codigo: Objective health = board.registerNewObjective("showhealth", "health"); health.setDisplaySlot(DisplaySlot.BELOW_NAME); health.setDisplayName("§c❤"); for(Player p1 : Bukkit.getOnlinePlayers()) { health.getScore(p).setScore((int)p.getHealth()); }
  19. Olá, então estou querendo abrir um servidor e tenho uma duvida, Então qual a melhor forma de preparar o servidor antes da abertura, para que não ocorra Lag. Eu utilizo o WorldBorder para carregar as chunks, é o ideal? Caso não, o que posso fazer para carregar as chunks.
  20. Como faço pra pegar a facção de tal posição? Exemplo: Pegar nome da facção da que esta no Top 10; Pelo MambaFactions: Essa linha retorna todas as facções do Top Collection<Faction> topFactions = FactionColl.get().getTopFactions();
  21. Estou criando um sistema de cabeças que tem encantamento, como pra essas cabeças ter mesmo poder que uma armadura. Tipo quando colocar ela na cabeça ela vai valer como uma armadura
×
×
  • Criar Novo...