u/ActiveConcert4921

▲ 2 r/bloxd

walk to grow (made this for a random lobby)

walk to grow

paste in wc

have fun ig

const superprestige=["Wood","Iron","Gold","Diamond","Rubellite","Amethite","Seprentite","Magmasteel","Sanguine","Geo","Spectral","Astral","Cursemetal"]
grow=(p,a)=>{
const gM=api.getPlayerDbValue(p,"growth mult store")
let d=api.getPlayerDbValue(p,"size store")+(0.001*gM*a);if(d>gM*5){d=gM*5;api.sendFlyingMiddleMessage(p,[{str:"Maxium size reached! Please prestige with /prestige",style:{color:"#FF6666"}}],0,1000)}
if(d<0.001)d=0.001
api.setPlayerDbValue(p,"size store",d)
api.setLifeformScale(p,d)
api.setClientOption(p,"RightInfoText",["Walk to Grow\nSize: "+d.toFixed(3)+"\nPrestige: "+api.getPlayerDbValue(p,"growth mult store"),{str:"\ncoded my mysticaI23",style:{color:"lightgray",fontSize:"4px"}}])
api.setTargetedPlayerSettingForEveryone(p,"nameTagInfo",{subtitle:[{str:"Size: "+d.toFixed(3)}]},!0)
api.setTargetedPlayerSettingForEveryone(p,"lobbyLeaderboardValues",{size:(Math.round(d*1000)/1000),sortPriority:d})
}
const unaffected=["Itz_froggy_YT","Penn_OG", "code_cristianMC_code", "Abaseenkiller_YT"]
onPlayerJoin=p=>{api.removeItemName(p,"Red Paintball",999);api.giveItem(p,"Red Paintball");api.setItemStat(p,"Red Paintball","attackRange",100);api.setItemStat(p,"Red Paintball","displayName",[{str:"Eat",style:{color:"#DE5252"}}])
if(!api.getPlayerDbValue(p,"size store"))api.setPlayerDbValue(p,"size store",0.001)
if(!api.getPlayerDbValue(p,"growth mult store"))api.setPlayerDbValue(p,"growth mult store",1)
if(!api.getPlayerDbValue(p,"super prestige"))api.setPlayerDbValue(p,"super prestige",0)
api.setTargetedPlayerSettingForEveryone(p,"nameTagInfo",{subtitle:[{str:"size: "+(unaffected.includes(api.getEntityName(p))?"1":api.getPlayerDbValue(p,"size store").toFixed(3))}]},!0)
api.setClientOption(p,"lobbyLeaderboardInfo",{pfp:{},
name:{displayName:"Username"},
size:{displayName:"Size"},
})
api.setLifeformScale(p,api.getPlayerDbValue(p,"size store"))
api.setTargetedPlayerSettingForEveryone(p,"lobbyLeaderboardValues",{size:(Math.round(api.getPlayerDbValue(p,"size store")*1000)/1000),sortPriority:api.getPlayerDbValue(p,"size store")})}

tick=()=>{for(const p of api.getPlayerIds()){
if(unaffected.includes(api.getEntityName(p))){api.setLifeformScale(p,1)}else{
if((Math.abs(api.getVelocity(p)[0])+Math.abs(api.getVelocity(p)[2]))>0){
grow(p,1)
}
}
}}
playerCommand=(p,c)=>{if(c=="prestige"){
if(api.getPlayerDbValue(p,"size store")>=api.getPlayerDbValue(p,"growth mult store")*5){
if(api.getPlayerDbValue(p,"growth mult store")==4){
const sPA=api.getPlayerDbValue(p,"super prestige")
api.sendMessage(p,"You have become too large",{color:"#52D5DE"})
api.sendMessage(p,"You must be limited",{color:"#58BDE8"})
api.sendMessage(p,"This is for the game, which limits you have exceeded",{color:"#5881E8"})
api.sendMessage(p,"This will indeed not be the last time you do this, and every time you manage to, you will be granted with a reward",{color:"#5862E8"})
api.sendMessage(p,`Your reward will be ${superprestige[sPA]} tier armor, however you will be reset`,{color:"#8658E8"})
api.setPlayerDbValue(p,"growth mult store",1)
api.setPlayerDbValue(p,"size store",0.001)
api.setLifeformScale(p,0.001)
api.setItemSlot(p,46,superprestige[sPA]+" Helmet")
api.setItemSlot(p,47,superprestige[sPA]+" Chestplate")
api.setItemSlot(p,48,superprestige[sPA]+" Gauntlets")
api.setItemSlot(p,49,superprestige[sPA]+" Leggings")
api.setItemSlot(p,50,superprestige[sPA]+" Boots")
api.setPlayerDbValue(p,"super prestige",sPA+1)
return true
//goofy monologue, in reality its js a way to not let players get like 999999 size might as well make it cool right
}
api.sendFlyingMiddleMessage(p,[{str:"You prestiged!",style:{color:"#51F5A8"}}],50,5000)
api.broadcastMessage([{str:api.getEntityName(p)+" prestiged!",style:{color:"#51F5A8"}}])
api.setPlayerDbValue(p,"growth mult store",api.getPlayerDbValue(p,"growth mult store")+1)
api.setPlayerDbValue(p,"size store",0.001)
api.setLifeformScale(p,0.001)
}else{
api.sendFlyingMiddleMessage(p,[{str:"You are too small to prestige, please reach at least size "+api.getPlayerDbValue(p,"growth mult store")*5,style:{color:"#FF6666"}}],0,3000)
}
return true}}
onPlayerDamagingOtherPlayer=(p,e,dm,w)=>{
if(w=="Red Paintball"&&(Math.abs(api.getVelocity(e)[0])+Math.abs(api.getVelocity(e)[2]))==0&&!(api.hasEffect(p,"Just ate")||api.hasEffect(e,"Eaten"))){
api.applyEffect(p,"Just ate",5000,{icon:"Red Paintball"})
api.applyEffect(e,"Eaten",10000,{icon:"Red Paintball"})
api.sendFlyingMiddleMessage(p,[{str:"You ate "+api.getEntityName(e),style:{color:"#FF6666"}}],0,1000)
api.sendFlyingMiddleMessage(e,[{str:"You were eaten by "+api.getEntityName(p),style:{color:"#FF6666"}}],0,1000)
grow(p,5)
grow(e,-5)
}
return "preventDamage"
}
// can you code
reddit.com
u/ActiveConcert4921 — 5 days ago
▲ 1 r/bloxd

more ranks??

idk bloxd js added the creator rank which was pretty cool, but maybe some other ranks would be cool

OG - join bloxd within the first month(or year idk) that it was released

Pro - this could work in many ways, but this would be a way to congratulate the players who do well on classic bloxd gamemodes

on top of this, i think custom game owners should have an option of assigning one or two people to be a co-owner with them, meaning they have the same perms as the owner and their name shows up in the gamemode screen

reddit.com
u/ActiveConcert4921 — 19 days ago
▲ 1 r/bloxd

track someone

ooh cool

let target="mysticaI23",t=0,speed=5

tick=()=>{
t++;if(t<speed)return
t=0

const id=api.getPlayerId(target)

for(const p of api.getPlayerIds()){
try{
const[x,y,z]=api.getPosition(id)
api.setClientOption(p,"RightInfoText",
`${target} is at\n${x.toFixed(2)}, ${y.toFixed(2)}, ${z.toFixed(2)}`)
api.setDirectionArrow(p,"target",[x,y,z],target,true)
}catch{
api.setClientOption(p,"RightInfoText",`${target} is not in the lobby`)
api.clearDirectionArrow(p,"target")
}
}
}
reddit.com
u/ActiveConcert4921 — 1 month ago
▲ 7 r/bloxd

dont let players have infinite karts

holy lag abuse

there should be a limit to karts ngl

im on a high end pc and i still get dropped from 120 to 12 fps

u/ActiveConcert4921 — 2 months ago
▲ 3 r/bloxd

how strong is bob

we will calculate this using the most heavy block in bloxd, the mega compressed messy stone

messy stone is simply the broken-down form of that standard stone

in the real world, the vast majority of deep, sprawling cave systems are solutional caves (or karst landscapes). These form because limestone is a sedimentary rock that easily erodes and dissolves when exposed to acidic water over thousands of years

this is similar to bloxd's cave generation

when limestone is quarried or broken down into rubble, it naturally fractures into rough, angular blocks with a medium-gray tone, many historical messy stone streets and castle walls in Europe were built using local limestone because it was easy to split into chunk-sized blocks, similar to the bloxd messy stone/stone texture

therefore we can assume that messy stone is limestone

assuming an average adult man is about 1.75 m tall, half of his height would be 0.875 m, so if we model the limestone as a roughly spherical piece with a diameter of 0.875 m, its radius would be r = 0.875 / 2 = 0.4375 m

the volume of a sphere is V = (4/3)πr³, giving V = (4/3)π(0.4375)³ ≈ 0.3513 m³. Limestone has an average density of approximately 2,500 kg/m³, so using m = ρV, the mass would be m = (2,500)(0.3513) ≈ 878.3 kg, or about 1,936 lb

now since compressed messy stone contains 9 of these, we can do (878.3)(9), resulting in approximately 7,904.7 kg or 17,426.88 lb

however there are more levels to compression than this, specifically 6 levels of compression: compressed, extra, super, hyper, ultra, and finally mega

this means there are essentially 9⁶ messy stone in one mega compressed messy stone, or 531,441 pieces of messy stone

if we take that number and multiply it by our base weight of 878.3 kg, we get 878.3 × 531,441 = 466,764,630.3 kg, or approximately 1,029,039,863.04 lb for one mega compressed messy stone

now in one inventory slot, bob can carry 999 mega compressed messy stones, which means 466,764,630.3 × 999 = 466,297,865,669.7 kg, or approximately 1,028,010,823,175.88 lb

bloxd's inventory has 46 slots, but we can increase the amount bob carries by using a moonstone chest. A moonstone chest has 27 storage slots, and the moonstone chest itself takes up one inventory slot. Moonstone chests are also player-specific storage, meaning the same moonstone chest inventory can be accessed from different moonstone chests.

therefore, if bob puts one moonstone chest into his inventory, he has 45 remaining normal inventory slots plus the 27 slots inside the moonstone chest, giving him the equivalent of 72 slots of storage

we can therefore calculate the amount of mega compressed messy stone bob can carry as 466,297,865,669.7 × 72 = 33,573,446,328,218.4 kg, or approximately 74,016,647,939,? lb

now we also need to account for bob's armor

a standard block is one cubic meter, and a solid block of gold is crafted from nine gold bars

because pure gold is incredibly dense, a single theoretical gold ingot would weigh approximately 19,300 / 9 = 2,144.44 kg

the helmet uses 5 ingots, so it would weigh approximately 10,722.22 kg

the boots use 4 ingots, so they would weigh approximately 8,577.78 kg

the gauntlets use 4 ingots, so they would also weigh approximately 8,577.78 kg

the leggings use 7 ingots, so they would weigh approximately 15,011.11 kg

and the chestplate uses 8 ingots, so it would weigh approximately 17,155.56 kg

all of this adds up to 28 gold ingots, meaning the complete armor set weighs approximately 60,044.44 kg

adding the armor onto the 33,573,446,328,218.4 kg of mega compressed messy stone gives us:

33,573,446,328,218.4 + 60,044.44 = 33,573,446,388,262.84 kg

therefore, under these assumptions, bob can carry approximately 33,573,446,388,263 kilograms of mass, or approximately 74,016,779,401,032 pounds

that is around 33.57 trillion kilograms of mass, equivalent to 90,000 Empire State Buildings and 5,595 Great Pyramid of Gizas

reddit.com
u/ActiveConcert4921 — 2 months ago
▲ 3 r/bloxd

ez bloxd

paste in wc

onPlayerJoin=p=>{
api.setClientOptions(p,{"speedMultiplier":2,"maxHealth":200,"ttbMultiplier":0.5,"healthRegenInterval":100})
api.setHealth(p,200)
api.setClientOption(p,"RightInfoText","BIB (bloxd is boring)\nspeeds up lots of processes :D\nchunk mine\nauto smelt\nauto cook\nauto grow\nvein mining\nmore reach")
}

oD={"Coal Ore":"Coal","Iron Ore":"Raw Iron","Gold Ore":"Raw Gold","Diamond Ore":"Diamond","Moonstone Ore":"Moonstone","Maple Log":"Maple Log"}
onPlayerChangeBlock=(p,x,y,z,f,t)=>{
if(["Coal Ore","Iron Ore","Gold Ore","Diamond Ore","Moonstone Ore"].includes(f)&&t=="Air"){
const seen=new Set(),vein=[],key=(x,y,z)=>`${x},${y},${z}`,q=[[x,y,z]]
while(q.length){const [a,b,c]=q.pop(),k=key(a,b,c)
if(seen.has(k))continue
seen.add(k)
if(api.getBlock(a,b,c)!=f)continue
vein.push([a,b,c])
for(const [dx,dy,dz] of [[1,0,0],[-1,0,0],[0,1,0],[0,-1,0],[0,0,1],[0,0,-1]])q.push([a+dx,b+dy,c+dz])}
for(const [a,b,c] of vein){api.setBlock(a,b,c,"Air");api.createItemDrop(a+.5,b,c+.5,oD[f])}
return "preventDrop"}
if(t=="Wheat Seeds"){
api.setBlock(x,y,z,"Wheat|FreshlyGrown")
}else if(t=="Chili Pepper Seeds"){
api.setBlock(x,y,z,"Chili Pepper Plant|FreshlyGrown")
}else if(t=="Cotton Seeds"){
api.setBlock(x,y,z,"Cotton_stage3")
}else if(t.includes(" Seeds")){
try{api.setBlock(x,y,z,t.split(" ")[0]+" Plant|FreshlyGrown")}catch{}
}
}
const cF={"Raw Iron":"Iron Bar","Raw Gold":"Gold Bar","Raw Porkchop":"Cooked Porkchop","Raw Beef":"Steak","Raw Mutton":"Cooked Mutton","Raw Venison":"Cooked Venison","Raw Potato":"Baked Potato"
}
onPlayerSelectInventorySlot=(p,i)=>{const gI=api.getItemSlot(p,i)
if(cF[gI?.name]){
api.setItemSlot(p,i,cF[gI.name],gI.amount,gI.attributes) 
}
if(gI)api.setItemStat(p,api.getItemSlot(p,i)?.name,"attackRange",10)
}
reddit.com
u/ActiveConcert4921 — 2 months ago
▲ 14 r/bloxd

guys srsly how does making a bow with diamond do more damage than a bow made out of wood

im confused gng also how do u make a bow out of straight rocks

u/ActiveConcert4921 — 2 months ago
▲ 3 r/bloxd

better colors

not really a code, but relevant to code

please stop using colors like "red" and "purple"

they really hurt my eyes

(also it looks rlly ai)

please use these instead

const betterColors={red:"#FF5C5C",orange:"#FFBE5C",yellow:"#FFEF5C",gold:"#FFD45C",green:"#5CFF75",lime:"#A8FF5C",cyan:"#5CFFFF",blue:"#5C9CFF",purple:"#9C5CFF",pink:"#FF5CCB",magenta:"#FF5CFF",white:"#FFFFFF",gray:"#A8A8A8",black:"#222222",brown:"#A66A3F",teal:"#5CFFD4",indigo:"#665CFF",violet:"#C05CFF",maroon:"#A83232",navy:"#344B9E",turquoise:"#5CFFE5",silver:"#CFCFCF",lavender:"#C58CFF",coral:"#FF8066",salmon:"#FF7F7F",peach:"#FFB07C",mint:"#7CFFB2",emerald:"#3DDB7D",forest:"#3C9B55",sky:"#70CFFF",royal:"#5C70FF",plum:"#8E4585",crimson:"#DC3C4C"}

when using a color, instead of just writing

"purple"

do

betterColors["purple"]

it will make everyones lives so much better

of course i dont have every color there, but its a start

if you dont like these, make your own at https://htmlcolorcodes.com/color-picker/ or simply just search up "hex color picker" on google

u/ActiveConcert4921 — 2 months ago
▲ 3 r/bloxd

yo big c (cannoli)

how do you become a mod of this subreddit

(i’m interested and want to know if there’s a form or if its js not possible)

reddit.com
u/ActiveConcert4921 — 2 months ago
▲ 3 r/bloxd

is this how a hacker feels?

DISCLAIMER: these are not cheats, this is a code

so bloxd has a few item stats that lets you adjust the attack range and attack speed of a weapon

i used this

very fun to play btw

onPlayerJoin=p=>{
api.applyEffect(p,"Speed",null,{})
api.setHealth(p,100)
api.setItemStat(p,"Diamond Sword","attackRange",15)
api.setItemStat(p,"Diamond Sword","attackCooldownMs",50)
api.setItemStat(p,"Diamond Sword","displayName",[{str:"combo sword",style:{color:"#70D6FF"}}])
api.setItemStat(p,"Diamond Sword","damage",1)
api.setClientOption(p,"healthRegenAmount",0)
api.setClientOption(p,"autoRespawn",true)
api.setClientOption(p,"secsToRespawn",0)
api.clearInventory(p)
api.giveItem(p,"Diamond Sword")
}
onPlayerDamagingOtherPlayer=(p,e)=>{
if(api.getPosition(p)[1]-api.getPosition(e)[1]<-2)return "preventDamage"
if(api.getPosition(p)[1]-api.getPosition(e)[1]>1)return "preventDamage"
api.setVelocity(e,0,5,0)
}
onPlayerKilledOtherPlayer=(p,e)=>{
api.broadcastMessage(`${api.getEntityName(p)} > ${api.getEntityName(e)}`)
api.setHealth(p,100)
}
u/ActiveConcert4921 — 2 months ago
▲ 5 r/bloxd

what are you

in bloxdio, there are many different types of players, and i have narrowed it down to a few, as i would like to see what the r/bloxd community is mostly made of

comment which do you think you identify as, and rate yourself out of 10 on how good you think you are!

remember to be positive guys

coder - you make scripts and code, whether for yourself or others

builder - you enjoy building in general, creative, survival doesn’t matter

pvper - you play gamemodes like bedwars or skywars or enjoy just doing any kind of pvp

explorer - you like playing different custom games and exploring what bloxd has to offer for you

chatter - you enjoy the social aspect of bloxd, talking with people through the in game chat, discord, or reddit

if you don’t fit in any of these categories, feel free to make your own and explain

reddit.com
u/ActiveConcert4921 — 2 months ago
▲ 4 r/bloxd

How to use the files in World Code

Bloxd has just added files! Here I have created a very basic tutorial for how to use them

Read the captions

This feature helps organize things and also gives us a lot more code space

cannoli pin this frfr

(guys should i make pt2)

u/ActiveConcert4921 — 2 months ago
▲ 2 r/bloxd

reviewing custom games (again)

games are judged on how much effort is in them, how creative it is, and how good the coding and QoL features are, as well as how much players it brings in for how long, and also brainrot=0 obv

first up its

.............................................................................................................................................................................

Tornado Survival - 5*/10*

i mean, it has mid code, but it tends to be laggy and has a bit of errors, also pretty generic but not bad

.............................................................................................................................................................................

Break to get items - 2*/10*

half of the random items are useless, the server is very laggy (even more if someone decides to spam blocks), and not very original

.............................................................................................................................................................................

BloxParty - 9*/10*

very fun game to play with your friends, nice system and code and all

.............................................................................................................................................................................

The-Dark - 9*/10*

good coding and a fun dungeon-themed game

.............................................................................................................................................................................

Youtuber Simulator ❤︎⁠ - 7.5/10

has alright code, and a very intresting theme, its kind of grindy but mostly fun to play

.............................................................................................................................................................................

Bloxd spider sim - 5*/10*

cool code, but it would help if chat wasnt flooded with errors

.............................................................................................................................................................................

Glass Rush UPDATE - 8/10

it gets pretty repetetive, but it is fun navigating the whole bridge with other players

.............................................................................................................................................................................

thats the end of my review, hope you enjoyed, if you have a lobby you'd like me to review (your own or someone else's), say in the comments!

reddit.com
u/ActiveConcert4921 — 2 months ago
▲ 6 r/bloxd

DISABLE RPGS IN BUILD LOBBIES

(doesnt work if they have coder or co-owner btw, cus they can js use api.giveItem)

paste in wc

onPlayerJoin=p=>{
api.setItemStat(p,"RPG","showInCreativeInven",false)
api.setItemStat(p,"Super RPG","showInCreativeInven",false)
}
reddit.com
u/ActiveConcert4921 — 2 months ago
▲ 1 r/bloxd

i won an event :D

ez super

guys protip

if you want super/cosmetics, events are a super fun and easy way to win them

it depends whether your good at pvp/parkour/surviving

there will always be an event that advantageous for you

(or you can be like me and be friends with an ht1 so they carry you thru the whole event)

reddit.com
u/ActiveConcert4921 — 2 months ago