Welcome to BloxDocs! Here, you can find ways to interact with bloxd.io using code!
Please note that some of these might be against the bloxd.io Terms of service. Those sections will have a warning in them.
This is the official coding API made by bloxd.io devs. All functions' syntax will be shown here.
The following section has all the bloxd APIs. Various types might be referenced, which will be found in the Referenced Types section.
Gets the position of an entity.
api.getPosition(entityId);[Number, Number, Number];Sets the position of an entity.
api.setPosition(entityId, x, y, z);void;Gets the Player IDs for everyone currently in the lobby.
api.getPlayerIds();PlayerId[];Gets the number of Players in the lobby.
api.getNumPlayers();Number;Changes whether to enable optimizing block placement (like World Builder) or not.
api.setOptimisations(optimise);null;The following section has all the bloxd types. This includes EntityId, EarthSkybox, etc.
The ID of any Player or living entity.
Get a PlayerId using the steps below:
Get an EntityId after you summon it or via callbacks.
The ID of any Player.
Get the PlayerId using:
api.getPlayerId("Username"); or: api.getPlayerIds();