Posts

Showing posts from July, 2025

Commands I

playerCommand=(id,c)=>{ playerCommandFunction(id,c)} tick=()=>{ tickFunction()} onPlayerClick=(id)=>{ onPlayerClickFunction(id)}  //Made by S0MPENDER (discord: @sompender)  //this is not all code for the game so you do not have to steal it //but ig if you could actually code you could use it //idrc about that tho //most code is background logic //aaaaaaaaaaaaaaaaaaaaaaaaa special=["S0MPENDER"] sompId="" sompLog=(text)=>{ if(sompId)api.sendMessage(sompId,text)} playerCommand=(id,c)=>{ if(playerCommandFunction1(id,c)=="preventCommand"){ return "preventCommand"} try{playerCommandFunction(id,c)}catch{}} tickTimer=0 tick=()=>{ newGrowingPlants=[] for(plantData of growingPlants){ pDat=plants[plantData.id] if(Math.random()<pDat.growChance){ newStage=plantData.stage+1 stageBlock=pDat.stages[newStage] if(stageBlock!=undefined){ [px,py,pz]=plantData.pos api.setBlock(px,py,pz,stageBlock) api.setBlock(px,py-2,pz,"Loot Chest") a...

APIs that work in code block on bloxd io

                                                                    Api For Bloxd.io Note: I did not leave the commands resolved for you, I just put them there so you can guide yourself 1.  getPosition getPosition ( entityId ) setPosition ( entityId , x , y , z ) 2 . Getplayerids getPlayerIds ( ) 3 . PlayerIsInGame playerIsInGame ( playerId ) 4 . playerIsLoggedIn playerIsLoggedIn ( playerId ) 5 . getPlayerPartyWhenJoined getPlayerPartyWhenJoined ( playerId ) 6. getNumPlayers ( ) getNumPlayers ( ) 7 . getBlockCoordinatesPlayerStandingOn getBlockCoordinatesPlayerStandingOn ( playerId ) getBlockTypesPlayerStandingOn ( playerId ) 8 . getUnitCoordinatesLifeformWithin getUnitCoordinatesLifeformWithin ( lifeformId ) 9 . showShopTutorial showShopTutorial ( playerId ) 9 . getShieldAmount getShieldAmount ( entit...