3D OWOT script: Difference between revisions
Jump to navigation
Jump to search
Guest-1052 (talk | contribs) (fp deleted all face reveals) |
Dat Hack3r (talk | contribs) (Better formatting.) |
||
(3 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
menu.addEntry("<input id='3d' type='range' min='-10' max='10'></input>"); | menu.addEntry("<input id='3d' type='range' min='-10' max='10'></input>"); | ||
document.getElementById("3d").style.width = "100%"; | |||
document.getElementById("3d").onchange = function () { | |||
let z = Number(document.getElementById("3d").value); | |||
if (z) { | |||
[[Category:Scripts]] | w.chat.send("/warp " + "dimension3dz" + z); | ||
} else { | |||
w.chat.send("/warp"); | |||
} | |||
}; | |||
/* [[Category:Scripts]] */ |
Latest revision as of 10:21, 10 December 2024
menu.addEntry("<input id='3d' type='range' min='-10' max='10'></input>");
document.getElementById("3d").style.width = "100%";
document.getElementById("3d").onchange = function () {
let z = Number(document.getElementById("3d").value);
if (z) {
w.chat.send("/warp " + "dimension3dz" + z);
} else {
w.chat.send("/warp");
}
};
/* [[Category:Scripts]] */