3D OWoT script

From Our World of Text Wiki
Jump to navigation Jump to search
menu.addEntry("<input id='3d' type='range' min='-10' max='10'></input>");
 document.getElementById("3d").style.width = "100%";
 document.getElementById("3d").onchange = function(){
     w.chat.send("/warp " + (!+document.getElementById("3d").value ? "" : "dimension3dz" + document.getElementById("3d").value));
 };