vida máxima:
api.setHealth(myId, 9999999999, undefined, true)
escudo máximo:
api.setShieldAmount(myId, 9999999999)
mensaje de esxlamacion:
api.sendTopRightHelper(myId, "exclamation", "te estoy viendo", {duration:5,
width:250, height:75, color:"#FF0000", iconSizeMult:2, textAndIconColor:"#FFFFFF",
fontSize:"25px"})
mensaje de broma plomo
estr="api.send\
TopRightHelper(\
myId, \"\", \"\TE ESTOY VIENDO\",{dur\
ation:5});\
";eval(estr)
comando de bienvenida
api.sendTopRightHelper(myId, "crown", "Bienvenido, " + api.getEntityName(myId),
{duration:5, width:250, height:85, color:"#FF0000", iconSizeMult:1,
textAndIconColor:"#FFFFFF", fontSize:"15px"})
todos los crafteos con stante de pociones
stackableItems=["Toxin Ball","Timed Spike Bomb Block","Water","Lava",
"Invisible Solid","Block of Emerald","Iron Watermelon","Block of Lapis Lazuli",
"Melting Ice","Ice Bridge","Loot Chest","Faction Protector","Beacon","Gravel",
"Useless Soil","Fireball Block","Iceball Block","Grenade","Toxin Ball Block",
"Rocket","Super Rocket",
"Yellowstone","Sponge","Dim Lamp Off","Dim Lamp On","Chiseled Block of Quartz",
"Hay Bale","temp","UNUSED BLOCK TYPE","Mystery Block","Bouncy Bomb Block",
"Purple Paintball Explosive",
"Pink Paintball Explosive","Yellow Paintball Explosive",
"Red Paintball Explosive","Gray Paintball Explosive","Black Paintball Explosive",
"Blue Paintball Explosive","Light Blue Paintball Explosive",
"White Paintball Explosive","Cyan Paintball Explosive",
"Light Gray Paintball Explosive","Brown Paintball Explosive","Orange Balloon",
"Blue Balloon",
"Orange Popup Tower","Blue Popup Tower","Light Blue Popup Tower"
"Blue Strongbed","Light Blue Strongbed","Red Strongbed","Green Strongbed",
"Yellow Strongbed","Cyan Strongbed","Orange Strongbed","Gray Strongbed",
"Pink Strongbed","Lime Strongbed","White Strongbed","Black Strongbed",
"Brown Strongbed","Purple Strongbed","Light Gray Strongbed","Magenta Strongbed"
]
unstackableItems=["Red Paintball Gun","Orange Paintball Gun",
"Blue Paintball Gun",
"Orange Heavy Paintball Gun","Artisan Shears","Orange Paint Bow","Cornbread",
"Artisan Axe"]
for(x=0;x<stackableItems.length;x++)
{api.editItemCraftingRecipes(myId,
stackableItems[x],
[{requires:[{items:["Stone"],amt: 1}],
produces: 999,
station:"Potion Table"}])}
for(x=0;x<unstackableItems.length;x++)
{api.editItemCraftingRecipes(myId,
unstackableItems[x],
[{requires:[{items:["Stone"],amt:1}],
produces: 1,
station:"Potion Table"}])}
texto grande en el chat
api.sendMessage(myId, [{str:"Sub", style:{color:"Red", fontWeight:"1",
fontSize:"160px", fontStyle:"", opacity:0.5}}], {fontWeight:0, color:""})
trasformarse en quien sea
let boundaries = 600*1000;
let entities = api.getEntitiesInRect([-boundaries,-boundaries,-boundaries],
[boundaries,boundaries,boundaries]);
let _break = false;
entities.forEach((eid)=>{
if(_break)return;
if(api.getEntityType(eid)!=="Player" && api.getEntityType(eid)!=="Item") {
console.log(myId, eid, api.getEntityType(eid))
api.addFollowingEntityToPlayer(myId, eid);
const nodes =
["TorsoNode","HeadMesh","ArmRightMesh","ArmLeftMesh","LegLeftMesh","LegRightMesh"];
let obj = {}; for (const node of nodes) {
obj[node] = [0,0,0]; api.scalePlayerMeshNodes(myId, obj);
_break = true;
}
}
})