I write a bukkit plugin and want to spawn a falling block in it. However, I have a problem with the location. "player.getWorld (). SpawnFallingBlock (player.getLocation (), org.bukkit.Material.STONE, (byte) 0);"
I've done it here so that by the "Player.getLocation ()" the block on the coordinates of the player who executes the command is spawned. However, I would like now that I can determine the coordinates myself. What needs to be put in place of the location, if I want the block to be spawned at co-ordinates x: 50, y: 200 and z: 100?
I've sent you a friend request with some info.
Instead of using p.getLocation (), you can simply enter your desired coordinates.
p.getWorld (). SpawnFallingBlock (new Location (p.getWorld (), 50, 60, 70), Material.STONE, (byte) 0);
50, 60, 70 stand for X, Y, Z
Many thanks.