// ==UserScript==
// @name New Userscript
// @namespace http://tampermonkey.net/
// @version 2025-08-27
// @description try to take over the world!
// @author You
// @match https://bloxd.io/
// @icon https://www.google.com/s2/favicons?sz=64&domain=github.com
// @grant none
// ==/UserScript==
(function() {
'use strict';
(()=>{var D={fakeMouseEvent(t){let
e={button:0,buttons:1,clientX:Math.floor(Math.random()*999+1),clientY:Math.floor(Ma
th.random()*999+1),screenX:Math.floor(Math.random()*999+1),screenY:Math.floor(Math.
random()*999+1),target:document.querySelector("#noa-container"),type:t,isTrusted:!
0,view:window,bubbles:!0,cancelable:!0,timeStamp:performance.now()};return
e.prototype=MouseEvent.prototype,e}};var r={keys(t){var e=[],i=0;for(var o in t)t!
=null&&(e[i]=o,i++);return e},values(t){for(var
e=this.keys(t),i=[],o=0,s=0;o<e.length;){var c=e[o],d=t[c];i[s]=d,s++,o++}return
i},assign(t,...e){let i=Object(t);for(let o=0;o<e.length;o++){let s=e[o];if(s!
=null)for(let c in s)i[c]=s[c]}return i}};var C={wpRequire:null,_cachedNoa:null,get
noa(){return this?._cachedNoa||
(this._cachedNoa=r.values(this.bloxdProps).find(t=>t?.entities)),this._cachedNoa},i
nit(){let
t=Object.getOwnPropertyDescriptors(window),e=Object.keys(t).find(s=>t[s]?.set?.toSt
ring().includes("+
+")),i=window[e]=window[e],o=Math.floor(Math.random()*9999999+1);i.push([[o],
{},s=>this.wpRequire=s]),this.bloxdProps=r.values(this.findModule("nonBlocksClient:
")).find(s=>typeof s=="object")},findModule(t){let e=this.wpRequire.m;for(let i in
e){let o=e[i];if(o&&o.toString().includes(t))return this.wpRequire(i)}return
null}},l=C;var I={getPosition(t){return
l.noa.entities.getState(t,"position").position},get getMoveState(){return
r.values(l.noa.entities)[36]},getPhysicsBody(t){return
l.noa.entities.getState(t,"physics").body},get registry(){return r.values(l.noa)
[17]},get getBlockSolidity(){return r.values(this.registry)[5]},get getBlockID()
{return l.noa.bloxd[Object.getOwnPropertyNames(l.noa.bloxd.constructor.prototype)
[3]].bind(l.noa.bloxd)},get getHeldItem(){return
r.values(l.noa.entities).find(t=>t?.length==1&&t?.toString()?.length<13&&t?.toStrin
g().includes(")."))},safeGetHeldItem(t){let
e;try{e=this.getHeldItem(t)}catch{}return e},get playerList(){return
r.values(l.noa.bloxd.getPlayerIds()).filter(t=>t!
==1&&this.safeGetHeldItem(t)).map(t=>parseInt(t))},get doAttack(){let
t=this.safeGetHeldItem(1);return(t?.doAttack||
t.breakingItem.doAttack).bind(t)},setVelocity(t=null,e=null,i=null){let
o=this.getPhysicsBody(1),s=r.values(o)[16];t!==null&&(s[0]=t),e!==null&&(s[1]=e),i!
==null&&(s[2]=i)},isAlive(t){return r.values(l.noa.entities)[37]
(t).isAlive},touchingWall(){let t=this.getPosition(1),e=.35,i=[[0,0,0],[e,0,0],[-
e,0,0],[0,0,e],[0,0,-e],[e,0,e],[e,0,-e],[-e,0,e],[-e,0,-
e]],o=[0,1,2];for(let[s,c,d]of i)for(let u of o){let
m=Math.floor(t[0]+s),h=Math.floor(t[1]+c+u),E=Math.floor(t[2]+d),M=this.getBlockID(
m,h,E);if(this.getBlockSolidity(M))return!0}return!1}};var n={noa:I,mouse:D};var
a=class{constructor(e){this.name=e,this.isEnabled=!1}onEnable(){}onDisable()
{}enable(){this.isEnabled=!0,this.onEnable()}disable(){this.isEnabled=!
1,this.onDisable()}toggle(){this.isEnabled?this.disable():this.enable()}};var
p=class extends a{constructor(){super("AntiSpike")}onEnable(){let
e=r.values(r.values(l.findModule("Gun:class")).find(o=>typeof
o=="object")),i=r.keys(n.noa.registry)
[12];e.filter(o=>o.name.includes("Spikes")).forEach(function(o){n.noa.registry[i]
[o.id]=!0})}onDisable(){let
e=r.values(r.values(l.findModule("Gun:class")).find(o=>typeof
o=="object")),i=r.keys(n.noa.registry)
[12];e.filter(o=>o.name.includes("Spikes")).forEach(function(o){n.noa.registry[i]
[o.id]=!1})}};var g=class extends a{constructor(){super("Spider")}onRender()
{l.noa.inputs.state.jump&&n.noa.touchingWall()&&n.noa.setVelocity(null,5,null)}};va
r S={normalizeVector(t){let e=t[0]*t[0]+t[1]*t[1]+t[2]*t[2];if(e>0){let
i=1/Math.sqrt(e);return[t[0]*i,t[1]*i,t[2]*i]}return t},distanceBetween(t,e){let
i=e[0]-t[0],o=e[1]-t[1],s=e[2]-t[2];return i*i+o*o+s*s},distanceBetweenSqrt(t,e)
{return Math.sqrt(this.distanceBetween(t,e))},lerp(t,e,i){return t+(e-t)*i}};var
y=class extends a{constructor()
{super("Killaura"),this.lastExecutionTime=null,this.delay=100}onRender(){let
e=Date.now();e-
this.lastExecutionTime>=this.delay&&(this.lastExecutionTime=e,this.tryKill())}tryKi
ll(){let e=n.noa.getPosition(1);n.noa.playerList.forEach(function(i){let
o=n.noa.getPosition(i);if(o&&parseFloat(S.distanceBetweenSqrt(e,o))<=7){let
s=S.normalizeVector([o[0]-e[0],o[1]-e[1],o[2]-
e[2]]);n.noa.doAttack(s,i.toString(),"BodyMesh"),n.noa.getHeldItem(1)?.trySwingBloc
k?.(),n.noa.getMoveState(1)?.setArmsAreSwinging?.()}})}};var b=class extends
a{constructor(){super("Jesus")}onEnable(){let
e=r.values(r.values(l.findModule("Gun:class")).find(o=>typeof
o=="object")),i=r.keys(n.noa.registry)[12];n.noa.registry[i]
[e.find(o=>o.name=="Water").id]=!0,n.noa.registry[i]
[e.find(o=>o.name=="Lava").id]=!0}onDisable(){let
e=r.values(r.values(l.findModule("Gun:class")).find(o=>typeof
o=="object")),i=r.keys(n.noa.registry)[12];n.noa.registry[i]
[e.find(o=>o.name=="Water").id]=!1,n.noa.registry[i]
[e.find(o=>o.name=="Lava").id]=!1}};var v=class extends a{constructor()
{super("Unban")}onEnable(){document.cookie.split(";").forEach(function(e)
{document.cookie=e.replace(/^ +/,"").replace(/=.*/,"=;expires="+new
Date().toUTCString()+";path=/")}),location.reload()}};var x=class extends
a{constructor(){super("HighJump")}onEnable()
{n.noa.setVelocity(null,40,null),setTimeout(()=>this.button.setActive(!
1),100)}};var L={instance:null,get wrapper(){if(!this.instance){let
t=document.createElement("div");this.instance=t.attachShadow({mode:"closed"}),docum
ent.body.appendChild(t)}return this.instance}};var k=class{constructor(e,i,o)
{this.name=e.name,this.onToggle=e.toggle.bind(e),this.isActive=e.isEnabled,this.isD
ragging=!
1,this.dragThreshold=10,this.module=e,this.activeColor="green",this.inactiveColor="
red",this.circle=document.createElement("div"),this.circle.textContent=e.name,r.ass
ign(this.circle.style,{position:"fixed",top:`${o}px`,left:`$
{i}px`,width:"60px",height:"60px",borderRadius:"50%",background:"rgba(0, 0, 0,
0.5)",border:`3px solid ${this.inactiveColor}`,boxShadow:"0 0 10px
rgba(0,0,0,0.3)",cursor:"grab",zIndex:"999999",display:"flex",alignItems:"center",j
ustifyContent:"center",fontFamily:"sans-
serif",fontSize:"11px",color:"white",textAlign:"center",userSelect:"none"}),this.ci
rcle.style.borderColor=this.isActive?
this.activeColor:this.inactiveColor,L.wrapper.appendChild(this.circle),this.attachE
vents()}attachEvents(){let e,i,o=!1;this.circle.addEventListener("click",s=>{o||
this.toggle(),o=!
1,s.stopPropagation()}),this.circle.addEventListener("contextmenu",s=>{s.preventDef
ault();let c=String(prompt("What Key do you want to bind this module
to?"));this.module.keybind=c[0]}),this.circle.addEventListener("mousedown",s=>{o=!
1,this.startDrag(s.clientX,s.clientY),e=s.clientX,i=s.clientY;let c=u=>{if(!
this.isDragging)return;let m=u.clientX-e,h=u.clientY-
i;Math.hypot(m,h)>this.dragThreshold&&(o=!
0),this.drag(u.clientX,u.clientY)},d=()=>{this.endDrag(c,d,"mouse")};this.circle.ad
dEventListener("mousemove",c),this.circle.addEventListener("mouseup",d)}),this.circ
le.addEventListener("touchstart",s=>{let c=s.touches[0];o=!
1,e=c.clientX,i=c.clientY,this.startDrag(e,i);let d=m=>{let
h=m.touches[0],E=h.clientX-e,M=h.clientY-i;Math.hypot(E,M)>this.dragThreshold&&(o=!
0),this.drag(h.clientX,h.clientY)},u=()=>{this.endDrag(d,u,"touch")};this.circle.ad
dEventListener("touchmove",d,{passive:!
1}),this.circle.addEventListener("touchend",u)},{passive:!1})}startDrag(e,i)
{this.isDragging=!0;let o=this.circle.getBoundingClientRect();this.offsetX=e-
o.left,this.offsetY=i-o.top,this.circle.style.cursor="grabbing"}drag(e,i)
{this.isDragging&&(this.circle.style.left=`${e-
this.offsetX}px`,this.circle.style.top=`${i-this.offsetY}px`)}endDrag(e,i,o)
{this.isDragging=!1,this.circle.style.cursor="grab",o==="mouse"?
(this.circle.removeEventListener("mousemove",e),this.circle.removeEventListener("mo
useup",i)):
(this.circle.removeEventListener("touchmove",e),this.circle.removeEventListener("to
uchend",i))}toggle(){this.setActive(!this.isActive)}setActive(e)
{this.isActive=e,this.circle.style.borderColor=e?
this.activeColor:this.inactiveColor,this.onToggle(e)}};var w=class extends
a{constructor(){super("UI"),this.buttons=[],this.initialized=!1}onEnable()
{if(this.initialized)this.buttons.forEach(e=>{e.circle.textContent!
=="UI"&&(e.circle.style.display="flex")});else{let e=100;f.modules.forEach(i=>{let
o=new k(i,e,e);i.button=o,this.buttons.push(o),e+=50}),this.initialized=!
0}}onDisable(){this.buttons.forEach(e=>{e.circle.textContent!
=="UI"&&(e.circle.style.display="none")})}};var f={modules:[new w,new g,new y,new
b,new p,new v,new x],getModByName(t){return
this.modules.find(e=>e.name===t)},handleKeyPress(t)
{this.modules.forEach(e=>{e?.keybind?.toLowerCase?.
()==t.toLowerCase()&&e.button.setActive(e.isEnabled)})}};window.poop={SDK:n,hooks:l
};l.init();f.getModByName("UI").enable();function A()
{f.modules.forEach(t=>{t.isEnabled&&t.onRender&&t.onRender()}),requestAnimationFram
e(A)}document.addEventListener("keydown",t=>{f.handleKeyPress(t.key)});A();})();
})();