CzechHek

custom updateurl test

Oct 25th, 2021 (edited)
182
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. ///api_version=2
  2. (script = registerScript({
  3.     name: "TowerScaffoldz",
  4.     version: "1.10",
  5.     authors: ["CzechHek", "yorik100"]
  6. })).import("Core.lib");
  7.  
  8. Core.updateURL = "https://pastebin.com/raw/nPT3A7Tc";
  9.  
  10. module = {
  11.     category: "World",
  12.     description: "Scaffold Addon",
  13.     onEnable: function () {
  14.         hideScaffold = ScaffoldModule.array; hideTower = TowerModule.array;
  15.         ScaffoldModule.array = TowerModule.array = TowerModule.state = !(ScaffoldModule.state = true);
  16.     },
  17.     onDisable: function () {
  18.         ScaffoldModule.state = TowerModule.state = false;
  19.         ScaffoldModule.array = hideScaffold; TowerModule.array = hideTower;
  20.     },
  21.     onJump: function (e) {
  22.         !isInputHorizontally() && e.cancelEvent();
  23.     },
  24.     onMove: function (e) {
  25.         !(ScaffoldModule.state = !(TowerModule.state = Keyboard.isKeyDown(mc.gameSettings.keyBindJump.getKeyCode()) && !isInputHorizontally())) && e.zeroXZ();
  26.     }
  27. }
  28.  
  29. Core.onScriptUpdate = function (o, n) {
  30.     print(o + " updated to " + n);
  31. }
Advertisement
Add Comment
Please, Sign In to add comment