ΔŘŦĦỮŘǤỮƗ Postado Fevereiro 29, 2016 Denunciar Compartilhar Postado Fevereiro 29, 2016 Galera como faço para um foguete spawnar ao redor do player ? Tipo ... 1 de frente 1 atras 1 do lado esquerdo 1 do lado direito :) e como coloco os efeitos no foguete Link para o comentário Compartilhar em outros sites More sharing options...
leonardosc Postado Março 6, 2016 Denunciar Compartilhar Postado Março 6, 2016 (editado) Pra nao precisa duplicar código e tals int[][] offsets = {{-6, 0, 0}, {6, 0, 0}, {0, 0, -6}, {0, 0, 6}}; for( int i = 0; i < offsets.length; i++ ) { Firework F = (Firework) e.getPlayer().getWorld().spawn(e.getPlayer().getLocation().add(offsets[i][0], offsets[i][1], offsets[i][2]), Firework.class); FireworkMeta FM = F.getFireworkMeta(); FM.addEffect(FireworkEffect.builder().flicker(false).trail(false).with(Type.BALL).withColor(Color.RED).withFade(Color.BLUE).build()); FM.setPower(this.plugin.getConfig().getInt("Potencia")); F.setFireworkMeta(FM); } Editado Março 6, 2016 por leonardosc 1 Link para o comentário Compartilhar em outros sites More sharing options...
ArthasMC Postado Fevereiro 29, 2016 Denunciar Compartilhar Postado Fevereiro 29, 2016 Galera como faço para um foguete spawnar ao redor do player ? Tipo ... 1 de frente 1 atras 1 do lado esquerdo 1 do lado direito :) e como coloco os efeitos no foguete Quantos Blocos de distancia do player para estes lados ? Link para o comentário Compartilhar em outros sites More sharing options...
ΔŘŦĦỮŘǤỮƗ Postado Fevereiro 29, 2016 Autor Denunciar Compartilhar Postado Fevereiro 29, 2016 Quantos Blocos de distancia do player para estes lados ? 6 blocos Link para o comentário Compartilhar em outros sites More sharing options...
ΔŘŦĦỮŘǤỮƗ Postado Março 1, 2016 Autor Denunciar Compartilhar Postado Março 1, 2016 @up Link para o comentário Compartilhar em outros sites More sharing options...
ΔŘŦĦỮŘǤỮƗ Postado Março 2, 2016 Autor Denunciar Compartilhar Postado Março 2, 2016 @UP Link para o comentário Compartilhar em outros sites More sharing options...
ΔŘŦĦỮŘǤỮƗ Postado Março 2, 2016 Autor Denunciar Compartilhar Postado Março 2, 2016 @UP Link para o comentário Compartilhar em outros sites More sharing options...
Thelike Postado Março 2, 2016 Denunciar Compartilhar Postado Março 2, 2016 @UP @UP UP Somente após 24 horas depois do ultimo post Membro Alertado Link para o comentário Compartilhar em outros sites More sharing options...
ΔŘŦĦỮŘǤỮƗ Postado Março 3, 2016 Autor Denunciar Compartilhar Postado Março 3, 2016 UP Somente após 24 horas depois do ultimo post Membro Alertado O horario do forum é diferente daqui ... não da pra eu saber ... eu só sei que dou @up quando ta de noite ... Link para o comentário Compartilhar em outros sites More sharing options...
ΔŘŦĦỮŘǤỮƗ Postado Março 4, 2016 Autor Denunciar Compartilhar Postado Março 4, 2016 @UP #VACUO_ETERNO Link para o comentário Compartilhar em outros sites More sharing options...
leonardosc Postado Março 4, 2016 Denunciar Compartilhar Postado Março 4, 2016 (editado) player.getLocation().add(6, 0, 0).fazAlgumaCoisa(); player.getLocation().add(-6, 0, 0).fazAlgumaCoisa(); player.getLocation().add(0, 0, 6).fazAlgumaCoisa(); player.getLocation().add(0, 0, -6).fazAlgumaCoisa(); Ta foda de responder com esse forum todo bugado... sem comentarios. Editado Março 4, 2016 por leonardosc Link para o comentário Compartilhar em outros sites More sharing options...
ΔŘŦĦỮŘǤỮƗ Postado Março 5, 2016 Autor Denunciar Compartilhar Postado Março 5, 2016 (editado) player.getLocation().add(6, 0, 0).fazAlgumaCoisa(); player.getLocation().add(-6, 0, 0).fazAlgumaCoisa(); player.getLocation().add(0, 0, 6).fazAlgumaCoisa(); player.getLocation().add(0, 0, -6).fazAlgumaCoisa(); Ta foda de responder com esse forum todo bugado... sem comentarios. é ... verdade ta muito dificil o forum bugado... @Topic Ta ... mais como faço esse codigo poder ser usado no fazAlgumaCoisa ? FM.addEffect(FireworkEffect.builder().flicker(false).trail(false).with(Type.BALL).withColor(Color.RED).withFade(Color.BLUE).build()); Ex: transformar essa parte toda em apenas um Lancarfoguete() '-' acho que ficaria mais facil ... é possivel ? Editado Março 5, 2016 por ΔŘŦĦỮŘǤỮƗ Link para o comentário Compartilhar em outros sites More sharing options...
leonardosc Postado Março 5, 2016 Denunciar Compartilhar Postado Março 5, 2016 é ... verdade ta muito dificil o forum bugado... @Topic Ta ... mais como faço esse codigo poder ser usado no fazAlgumaCoisa ? FM.addEffect(FireworkEffect.builder().flicker(false).trail(false).with(Type.BALL).withColor(Color.RED).withFade(Color.BLUE).build()); Ex: transformar essa parte toda em apenas um Lancarfoguete() '-' acho que ficaria mais facil ... é possivel ? Não tem vendo em nenhum lugar um argumento pra localização... Como que funciona essa sua classe FM? Link para o comentário Compartilhar em outros sites More sharing options...
ΔŘŦĦỮŘǤỮƗ Postado Março 6, 2016 Autor Denunciar Compartilhar Postado Março 6, 2016 Não tem vendo em nenhum lugar um argumento pra localização... Como que funciona essa sua classe FM? Firework F = (Firework) e.getPlayer().getWorld().spawn(e.getPlayer().getLocation(), Firework.class); FireworkMeta FM = F.getFireworkMeta(); FM.addEffect(FireworkEffect.builder().flicker(false).trail(false).with(Type.BALL).withColor(Color.RED).withFade(Color.BLUE).build()); FM.setPower(this.plugin.getConfig().getInt("Potencia")); F.setFireworkMeta(FM); Link para o comentário Compartilhar em outros sites More sharing options...
??? Postado Março 6, 2016 Denunciar Compartilhar Postado Março 6, 2016 Firework F = (Firework) e.getPlayer().getWorld().spawn(e.getPlayer().getLocation(), Firework.class); FireworkMeta FM = F.getFireworkMeta(); FM.addEffect(FireworkEffect.builder().flicker(false).trail(false).with(Type.BALL).withColor(Color.RED).withFade(Color.BLUE).build()); FM.setPower(this.plugin.getConfig().getInt("Potencia")); F.setFireworkMeta(FM); \/ Firework F1 = (Firework) e.getPlayer().getWorld().spawn(e.getPlayer().getLocation().add(6, 0, 0), Firework.class); FireworkMeta FM1 = F1.getFireworkMeta(); FM1.addEffect(FireworkEffect.builder().flicker(false).trail(false).with(Type.BALL).withColor(Color.RED).withFade(Color.BLUE).build()); FM1.setPower(this.plugin.getConfig().getInt("Potencia")); F1.setFireworkMeta(FM1); \/ Firework F2 = (Firework) e.getPlayer().getWorld().spawn(e.getPlayer().getLocation().add(-6, 0, 0), Firework.class); FireworkMeta FM2 = F2.getFireworkMeta(); FM2.addEffect(FireworkEffect.builder().flicker(false).trail(false).with(Type.BALL).withColor(Color.RED).withFade(Color.BLUE).build()); FM2.setPower(this.plugin.getConfig().getInt("Potencia")); F2.setFireworkMeta(FM2); \/ Firework F3 = (Firework) e.getPlayer().getWorld().spawn(e.getPlayer().getLocation().add(0,0,6), Firework.class); FireworkMeta FM3 = F3.getFireworkMeta(); FM3.addEffect(FireworkEffect.builder().flicker(false).trail(false).with(Type.BALL).withColor(Color.RED).withFade(Color.BLUE).build()); FM3.setPower(this.plugin.getConfig().getInt("Potencia")); F3.setFireworkMeta(FM3); \/ Firework F4 = (Firework) e.getPlayer().getWorld().spawn(e.getPlayer().getLocation().add(0,0,-6), Firework.class); FireworkMeta FM4 = F4.getFireworkMeta(); FM4.addEffect(FireworkEffect.builder().flicker(false).trail(false).with(Type.BALL).withColor(Color.RED).withFade(Color.BLUE).build()); FM4.setPower(this.plugin.getConfig().getInt("Potencia")); F4.setFireworkMeta(FM4); 2 Link para o comentário Compartilhar em outros sites More sharing options...
??? Postado Março 6, 2016 Denunciar Compartilhar Postado Março 6, 2016 Pra nao precisa duplicar código e tals int[][] offsets = {{-6, 0, 0}, {6, 0, 0}, {0, 0, -6}, {0, 0, 6}}; for( int i = 0; i < offsets.length; i++ ) { Firework F = (Firework) e.getPlayer().getWorld().spawn(e.getPlayer().getLocation().add(offsets[i][0], offsets[i][1], offsets[i][2]), Firework.class); FireworkMeta FM = F.getFireworkMeta(); FM.addEffect(FireworkEffect.builder().flicker(false).trail(false).with(Type.BALL).withColor(Color.RED).withFade(Color.BLUE).build()); FM.setPower(this.plugin.getConfig().getInt("Potencia")); F.setFireworkMeta(FM); } Ele não vai entender Link para o comentário Compartilhar em outros sites More sharing options...
leonardosc Postado Março 6, 2016 Denunciar Compartilhar Postado Março 6, 2016 (editado) Ele não vai entender Como não? '-' é só um for e um array bidimensional (matriz) '-' Editado Março 6, 2016 por leonardosc Link para o comentário Compartilhar em outros sites More sharing options...
??? Postado Março 6, 2016 Denunciar Compartilhar Postado Março 6, 2016 Como não? '-' é só um for e um array bidimensional (matriz) '-' O cara não sabia/sabe adicionar localização na atual Link para o comentário Compartilhar em outros sites More sharing options...
leonardosc Postado Março 6, 2016 Denunciar Compartilhar Postado Março 6, 2016 O cara não sabia/sabe adicionar localização na atual Mais isso não quer dizer nada, isso é do bukkit, eu mesmo não sei todas as coisas que tem no bukkit.. Link para o comentário Compartilhar em outros sites More sharing options...
leonardosc Postado Março 6, 2016 Denunciar Compartilhar Postado Março 6, 2016 Sua dúvida foi marcada como [Resolvido] e movido à área de dúvidas resolvidas. Atenciosamente, Gamer's Board Link para o comentário Compartilhar em outros sites More sharing options...
Pergunta
ΔŘŦĦỮŘǤỮƗ
Galera como faço para um foguete spawnar ao redor do player ?
Tipo ...
1 de frente
1 atras
1 do lado esquerdo
1 do lado direito
:) e como coloco os efeitos no foguete
Link para o comentário
Compartilhar em outros sites
19 respostass a esta questão
Posts Recomendados