We use cookies to ensure that we give you the best experience on our website. If you continue without changing your settings, we'll assume that you are happy to receive all cookies on this website.
: You must be an owner or co-owner. Place a Code Block (available in the Creative menu), right-click it to open the editor, paste your JavaScript, and click "Save" .
: Peaceful Code 123 , Faction Code 123 , Faction Code 1 . Specialty Worlds : _war_storyline_ , shairo-0_o-codes . Creative Code Block Snippets bloxd io codes
If you are a world owner or co-owner, you can use Code Blocks to add custom mechanics to your lobby. These snippets are written in JavaScript and interact with the Bloxd.io API. Code Snippet (Copy-Paste) api.setVelocity(myId, 0, 12, 0) Launches the player high into the air. Healing let hp = api.getHealth(myId); api.setHealth(myId, hp + 70) Heals the player by 70 HP when they click the block. Give Item api.giveItem(myId, "Diamond", 1) Grants the player 1 Diamond upon interaction. Broadcaster api.broadcastMessage("Welcome!", { color: "red" }) Sends a message to everyone in the lobby. Damage api.applyHealthChange(myId, -100) Instantly deals 100 damage to the player who clicks it. How to Use Codes in Bloxd.io : You must be an owner or co-owner
: One Block Code 1 , One Block Code 123456789 , One Block Code 3 . Specialty Worlds : _war_storyline_ , shairo-0_o-codes
Depending on what you are trying to do, the redemption process varies: