Minecraft Bukkit Plugin location?

ma
- in Worlds
3

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?

Ap

I've sent you a friend request with some info.

Ap

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

ma

Many thanks.