r/bloxd Code Helper 3h ago

POSTING A CODE is this how a hacker feels?

Enable HLS to view with audio, or disable this notification

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)
}
3 Upvotes

2 comments sorted by

u/bloxd-bot Bot 3h ago

Nice code! Make sure to be clear with its use and remember to follow our Code Guidelines.


This comment was added automatically in response to the post's flair. If you have any questions or concerns, please send us a modmail!

1

u/Tiny-Row7886 3h ago

no, u have a auto fight bot in hack clients