This is a paragraph! Here's how you make a link: Neocities.
Here's how you can make bold and italic text.
Here's how you can add an image:
Here's how to make a list:
To learn more HTML/CSS, check out these tutorials!
const t=new Map;onPlayerAltAction=(a,b,c,d,e,f)=>{if("Air"==e&&!f){const g=api.getHeldItem(a);if(g&&"Timed Spike Bomb"==g.name&&g.attributes&&g.attributes.customAttributes&&g.attributes.customAttributes.isPlayerTracker){const h=Date.now();if(t.has(a)&&h=r?api.setItemSlot(a,q,"Air",0):api.setItemSlot(a,q,"Timed Spike Bomb",r,g.attributes);t.set(a,h+2e4);m&&(s=api.getPosition(m),api.setClientOption(a,"compassTarget",s),api.sendMessage(m,`⚠️ ${l} tracking you (${Math.round(o)} blocks)`,{color:"orange"}),api.sendMessage(a,`🔴 Hunter: ${api.getEntityName(m)} (${Math.round(o)} blocks)`,{color:"red"}),u=s[0]-k[0],v=s[1]-k[1],w=s[2]-k[2],api.playParticleEffect({texture:"square_particle",minLifeTime:4,maxLifeTime:5,minEmitPower:.3,maxEmitPower:.4,minSize:.25,maxSize:.35,gravity:[0,0,0],dir1:[u,v,w],dir2:[u,v,w],pos1:[k[0],k[1]+1.5,k[2]],pos2:[k[0],k[1]+1.5,k[2]],manualEmitCount:15,colorGradients:[{timeFraction:0,minColor:[255,0,0,1],maxColor:[200,0,0,1]}],velocityGradients:[{timeFraction:0,factor:1,factor2:1}],blendMode:1}));n&&(s=api.getPosition(n),api.sendMessage(n,`⚠️ ${l} tracking you (${Math.round(p)} blocks)`,{color:"red"}),api.sendMessage(a,`🟢 Hunted: ${api.getEntityName(n)} (${Math.round(p)} blocks)`,{color:"green"}),u=s[0]-k[0],v=s[1]-k[1],w=s[2]-k[2],api.playParticleEffect({texture:"square_particle",minLifeTime:4,maxLifeTime:5,minEmitPower:.3,maxEmitPower:.4,minSize:.25,maxSize:.35,gravity:[0,0,0],dir1:[u,v,w],dir2:[u,v,w],pos1:[k[0],k[1]+1.2,k[2]],pos2:[k[0],k[1]+1.2,k[2]],manualEmitCount:15,colorGradients:[{timeFraction:0,minColor:[0,255,0,1],maxColor:[0,200,0,1]}],velocityGradients:[{timeFraction:0,factor:1,factor2:1}],blendMode:1}));api.playSound(a,"levelup",.8,1,{playerIdOrPos:a});return"preventAction"}}};tick=()=>{const a=Date.now();for(const[b,c]of t.entries())a>c&&t.delete(b)};
SECOND
const [x, y, z] = api.getPosition(myId);
const attributes = {
customDisplayName: "Player Tracker",
customDescription: "20s cooldown after use\nRight-click to track nearby hunters/hunted\nIf not working: Throw out, pick up, retry.",
customAttributes: {
isPlayerTracker: true,
cooldown: 20
}
};
const itemId = api.createItemDrop(x, y + 1, z, "Timed Spike Bomb", 5, false, attributes);
if (itemId) {
api.sendMessage(myId, "🎯 Player Tracker spawned above you!", {color: "green"});
api.playSound(myId, "levelup", 1, 1, {playerIdOrPos: myId});
api.setVelocity(itemId, 0, 0.2, 0);
} else {
api.sendMessage(myId, "❌ Couldn't spawn Player Tracker", {color: "red"});
}