10 Epic Bloxd.io Codes for Your Worlds!

Click to get codes! Play Bloxd.io here: https://bloxd.io/ Codes: 1. function onPlayerClick (playerId) { let position = api.getPlayerTargetInfo(playerId) if(position){ let block = api.getBlock(position.position[0], position.position[1], position.position[2]) api.sendMessage(playerId, block) } } 2. api.openChestForPlayer(playerId, thisPos[0], thisPos[1]+1, thisPos[2]) or api.openChestForPlayer(playerId, 0, 0 0) 3. function onWorldAttemptSpawnMob(mobType){ if(mobType != "Pig") return "preventSpawn"; } or cow and pig only function onWorldAttemptSpawnMob(mobType){ if(mobType != "Pig"){ if(mobType!= "Cow") return "preventSpawn"; } } 4. api.setClientOption(playerId, "crosshairText", "Subscribe") 5. var dodge = api.attemptSpawnMob("Pig", thisPos[0],thisPos[1],thisPos[2]) api.setMobSetting(dodge, "evadeInfo", { probability: 0.56,//1 to always dodge minAngle: Math.PI * 0.4, maxAngle: Math.PI * 0.6, impulse: 5, }) 6. api.addQTE(playerId, { type: "progressBar", parameters: { progressStartValue: 7, progressDecreasePerTick: 0.15, progressPerClick: 5, canFail: true, description: [{ str: "Click repeatedly to complete!" }], clickIcon: "fa-solid fa-computer-mouse", scale: 1, rotation: 50, }, }) //world code function onPlayerFinishQTE(playerId, qteId, result) { if (result) { api.sendMessage(playerId, "You did it!", {color: "Lime"}) //for giving diamond: (remove the //) //api.giveItem(playerId, "Diamond", 1) } else { api.sendMessage(playerId, "You failed!", {color: "Red"}) } } 7. api.setClientOption(playerId, "auraPerLevel", 0) 8. function tick() { for (const pIds of api.getPlayerIds()) { api.applyImpulse(pIds, 0, 0.5, 0) } } 9. api.matchmakePlayer(playerId, "pirates", "1") survival quick play: api.matchmakePlayer(playerId, "classic_survival") 10. api.applyImpulse(playerId, 9, 0, 9) api.setClientOption(playerId, "airFrictionScale", 0) api.setClientOption(playerId, "bounciness", 1) api.setClientOption(playerId, "cameraRoll", 2) api.setClientOption(playerId, "groundFrictionScale", 0) api.setClientOption(playerId, "movementBasedFovScale", -999) //very annoying