i need a way to have my plugin fill
#2
Minecraft coordinates use y for height, so you're trying to set a block at y=500 which can't be done because Cuberite only supports heights from 0 to 255.
You can also use the E_BLOCK_XYZ enums so you don't have to declare every block.

-- Sets the block where the player is to bedrock
function PlayerJoined(Player)
    local World = Player:GetWorld()
    local position = Player:GetPosition():Floor():addedY(-1);
    World:FastSetBlock(position, E_BLOCK_BEDROCK, 0)
end
Reply
Thanks given by: Alland20201


Messages In This Thread
RE: i need a way to have my plugin fill - by NiLSPACE - 10-12-2024, 05:51 AM



Users browsing this thread: 1 Guest(s)