lgplay Posted December 4, 2019 Share Posted December 4, 2019 Hallo, Ich versuche gerade ein Minecraft Cosmetics Plugin zu schreiben hänge aber bei dem Flügel Effect, da ich nicht weiß wie er sich mit dem Spieler mitdrehen kann. Hier ist was ich bisher habe: public void summonLeft(Player p) { double x = -1.1; double y = 1; double z = 0.5; for (int i = 0; i < arr.length; i++) { for (int j = 0; j < arr[i].length; j++) { if (arr[i][j] > 0) { p.spawnParticle(Particle.DAMAGE_INDICATOR, p.getLocation().getX() + x, p.getLocation().getY() + y, p.getLocation().getZ() + z, 0, 0, 0, 0, 0, null); } else { } x += 0.1; } x = -1.1; y -= 0.05; } } public void summonRight(Player p) { double x = 0.1; double y = 1; double z = 0.5; for (int i = 0; i < arr.length; i++) { for (int j = 9; j >= 0; j--) { if (arr[i][j] > 0) { p.spawnParticle(Particle.DAMAGE_INDICATOR, p.getLocation().getX() + x, p.getLocation().getY() + y, p.getLocation().getZ() + z, 0, 0, 0, 0, 0, null); } else { } x += 0.1; } x = p.getLocation().getX() + 0.1; y -= 0.05; } } Kann mir vielleicht jemand helfen? Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now