Craftnite.io cheat

try to take over the world!

  1. // ==UserScript==
  2. // @name Craftnite.io cheat
  3. // @namespace http://tampermonkey.net/
  4. // @version 1.4.2
  5. // @description try to take over the world!
  6. // @author You
  7. // @match https://craftnite.io/
  8. // @icon https://w7.pngwing.com/pngs/582/998/png-transparent-smiley-emoticon-devil-devil-smiley-sticker-online-chat-snout.png
  9. // @grant none
  10. // ==/UserScript==
  11. (function () {
  12. "use strict";
  13. var spam_msg = '';
  14. var spam_lock = 'False';
  15. var chat_opened = false;
  16. var spam_count = 0;
  17. var displayInput = true;
  18. var getSpamInput = '';
  19. var SpamInput = document.createElement("input");
  20. var ValidButton1 = document.createElement("button");
  21. var divClass = document.createElement('div');
  22. var ExplainText2 = document.createElement('p');
  23. var discordLink = document.createElement('a');
  24. var SpeedSwimingEnabled = false;
  25. var cheatKick = ''
  26. document.getElementById("craftnite-io_300x250").remove();
  27. document.getElementById("cross-promo").remove();
  28. var FlyEnabled = false
  29. var BedrockEnabled = false
  30. divClass.style.display = 'block';
  31. divClass.id = "MyDIV";
  32. document.body.appendChild(divClass);
  33. function changeColorAtHover(button, color, returncolor) {
  34. $(document).ready(function () {
  35. $(button).hover(function () {
  36. $(button).css('background', color);
  37. },
  38. function () {
  39. $(button).css('background', returncolor);
  40. });
  41. });
  42. }
  43. function modifyHTML() {
  44. ValidButton1.innerHTML = "valid"
  45. ExplainText2.innerHTML = "To spam, you must activate the spam button and then hold the 'enter' key for as long as you want.<br /><br />This script was made by Raylazzz and was published by Raylazzz, so for those who would like to use it, please respect me in the game, at least in recognition of my work. 😂<br /><br /><br />new update :<br /><br>The bedrock-cheat, useful to go under the bedrock :<br />To use it, you must, first, activate the option 'En / Disable bedrock cheat' then, go to the level of the bedrock. Here you can press Shift to go down and then Space to go up. To stabilize yourself, you must press Shift and then Space once.<br /><br />Thank you for being so many to use my cheat and if you want new features, send me a message on my discord :<br /><br />"
  46. ExplainText2.style = "font-family: Madera; font-size: 13px; background-color: black; width: 300px; top: 0px; right: 15px; color: white; border-radius: 15px; border-color: black; padding: 15px; position: absolute; z-index: 100; height: 90%; overflow-y: scroll;"
  47. discordLink.href = "https://discord.gg/gXTWT3Dp";
  48. discordLink.style = "color: darkcyan; overflow-wrap: break-word; cursor: pointer; }";
  49. discordLink.innerHTML = "https://discord.gg/gXTWT3Dp";
  50. discordLink.target = "blank";
  51. SpamInput.className = 'Spam input';
  52. SpamInput.placeholder = "Spam message...";
  53. SpamInput.addEventListener('keydown', function (e) {
  54. if (e.key != "Backspace") e.preventDefault();
  55. if (e.key.length == 1) SpamInput.value += e.key;
  56. });
  57. ValidButton1.style = "color: white; top:15px;left:230px;position:absolute;z-index:99999;padding:15px;cursor: pointer;border-radius: 15px 15px 15px 15px;";
  58. SpamInput.style = "font-family: Madera; font-size: 13px; background-color: black; color: white; top:15px;left:15px;position:absolute;z-index:99999;padding:15px;border-radius: 15px 15px 15px 15px;";
  59. ValidButton1.onclick = "myFunction()";
  60. ValidButton1.style.backgroundColor = "white";
  61. changeColorAtHover(ValidButton1, '#05d1ff', 'black');
  62. ValidButton1.style.backgroundColor = "black";
  63. document.getElementById('MyDIV').appendChild(ExplainText2);
  64. ExplainText2.appendChild(discordLink);
  65. ExplainText2.innerHTML += "<br><br>Enjoy the cheat !!<br><br><br>new update :<br><br>The fast swimming cheat, useful to be so fast in water :<br>To use it, you must activate the option 'En/Disable fast swimming cheat' then, go inside water, and just enjoy your speed ! More you hold the front (or back) key, more your speed increase, you just can to the limit border of the map in 20 sec, just that 🤯 !! <br><br><br>Auto join and auto select cheats features :<br><br>When you get disconnected, it's never nice, especially since you have to reactivate all the selected cheats, join... now, no more bother! You only have to press 1 button at the change of the page, and hop! You are in the game! Not to mention that, whether you clicked on this button or not, in any case, the three cheats fly, bedrock and fast swimming will be automatically selected! Only one key word: quickly!<br><br>Enjoy the update !";
  66. document.getElementById('MyDIV').appendChild(SpamInput);
  67. document.getElementById('MyDIV').appendChild(ValidButton1);
  68. document.getElementById('MyDIV').removeChild(SpamInput);
  69. getSpamInput = SpamInput.value;
  70. spam_msg = getSpamInput;
  71. console.log(getSpamInput);
  72. displayInput = false;
  73. ValidButton1.innerHTML = "change spam message"
  74. ValidButton1.style = "font-family: Madera; font-size: 13px; color: white; top:15px;left:15px;position:absolute;z-index:99999;padding:15px;cursor: pointer;border-radius: 15px 15px 15px 15px;";
  75. ValidButton1.style.backgroundColor = "black";
  76. }
  77. function HTMLButtonSpam() {
  78. ValidButton1.onclick = function () {
  79. if (displayInput == true) {
  80. document.getElementById('MyDIV').removeChild(SpamInput);
  81. getSpamInput = SpamInput.value;
  82. if (getSpamInput.slice(0, 1) != '/') {
  83. spam_msg = getSpamInput;
  84. } else {
  85. cheatKick = getSpamInput.slice(1, getSpamInput.length)
  86. console.log(cheatKick);
  87. }
  88. displayInput = false;
  89. ValidButton1.innerHTML = "change spam message"
  90. ValidButton1.style = "font-family: Madera; font-size: 13px; color: white; top:15px;left:15px;position:absolute;z-index:99999;padding:15px;cursor: pointer;border-radius: 15px 15px 15px 15px;";
  91. ValidButton1.style.backgroundColor = "white";
  92. } else if (displayInput == false) {
  93. ValidButton1.style = "font-family: Madera; font-size: 13px; color: white; top:15px;left:240px;position:absolute;z-index:99999;padding:15px;cursor: pointer;border-radius: 15px 15px 15px 15px;";
  94. document.getElementById('MyDIV').appendChild(SpamInput);
  95. ValidButton1.innerHTML = "submit"
  96. document.getElementById('MyDIV').appendChild(ValidButton1);
  97. displayInput = true;
  98. }
  99. };
  100. }
  101. function keyboardManagement() {
  102. document.onkeydown = function (m) {
  103. if (m.key == "Enter") {
  104. if (chat_opened == false) {
  105. chat_opened = true;
  106. } else if (chat_opened == true) {
  107. chat_opened = false;
  108. }
  109. if (spam_lock == 'True') {
  110. var elt = document.querySelector('input');
  111. elt.value = '' + spam_count + ' ' + spam_msg;
  112. } else {
  113. null;
  114. }
  115. }
  116. if (cheatKick == playerName) {
  117. alert(playerName + ', you were kicked of the game. Reason : Abusing cheat.');
  118. window.close();
  119. }
  120. if (chat_opened == true) {
  121. spam_count++
  122. }
  123. if (FlyEnabled == true) {
  124. G.CONFIG.a143 = 100
  125. } else if (FlyEnabled == false) {
  126. G.CONFIG.a143 = 0
  127. }
  128. if (BedrockEnabled == true) {
  129. if (m.key == " ") G.CONFIG.environmentOceanFloorHeight = 260;
  130. if (m.key == "Shift") {
  131. G.CONFIG.environmentOceanFloorHeight = -10000;
  132. } else {
  133. G.CONFIG.environmentOceanFloorHeight = 260;
  134. }
  135. } else if (BedrockEnabled == false) {
  136. G.CONFIG.environmentOceanFloorHeight = 260
  137. }
  138. if (SpeedSwimingEnabled) {
  139. G.CONFIG.a155 = 100
  140. } else if (!SpeedSwimingEnabled) {
  141. G.CONFIG.a155 = 0
  142. }
  143. }
  144. }
  145. function HTMLlabels() {
  146. var HTMLLabelsButton1 = document.createElement('button');
  147. var HTMLLabelsButton1Checked = true
  148. FlyEnabled = true
  149. HTMLLabelsButton1.innerHTML = 'En/Disable Fly Mode ✔';
  150. HTMLLabelsButton1.style = "font-family: Madera; font-size: 13px; background-color: #05d1ff; color: white; top:75px; left:15px; position:absolute; z-index:99999; padding:15px; cursor: pointer;border-radius: 15px 15px 15px 15px;";
  151. changeColorAtHover(HTMLLabelsButton1, '#05d1ff', '#05d1ff');
  152. HTMLLabelsButton1.onclick = function () {
  153. if (HTMLLabelsButton1Checked == true) {
  154. changeColorAtHover(HTMLLabelsButton1, '#05d1ff', "black");
  155. HTMLLabelsButton1.innerHTML = 'En/Disable Fly Mode ✖';
  156. G.CONFIG.a143 = 0
  157. FlyEnabled = false
  158. HTMLLabelsButton1Checked = false;
  159. } else if (HTMLLabelsButton1Checked == false) {
  160. changeColorAtHover(HTMLLabelsButton1, '#05d1ff', '#05d1ff');
  161. HTMLLabelsButton1.innerHTML = 'En/Disable Fly Mode ✔';
  162. G.CONFIG.a143 = 100
  163. FlyEnabled = true
  164. HTMLLabelsButton1Checked = true;
  165. }
  166. }
  167. var HTMLLabelsButton5 = document.createElement('button');
  168. var HTMLLabelsButton5Checked = true;
  169. BedrockEnabled = true
  170. HTMLLabelsButton5.innerHTML = 'En/Disable bedrock cheat ✔';
  171. HTMLLabelsButton5.style = "font-family: Madera; font-size: 13px; background-color: #05d1ff; color: white; top:195px;left:15px;position:absolute;z-index:99999;padding:15px;cursor: pointer;border-radius: 15px 15px 15px 15px;";
  172. changeColorAtHover(HTMLLabelsButton5, '#05d1ff', '#05d1ff');
  173. HTMLLabelsButton5.onclick = function () {
  174. if (HTMLLabelsButton5Checked == true) {
  175. changeColorAtHover(HTMLLabelsButton5, '#05d1ff', "black");
  176. HTMLLabelsButton5.innerHTML = 'En/Disable bedrock cheat ✖';
  177. G.CONFIG.environmentOceanFloorHeight = 260
  178. BedrockEnabled = false
  179. HTMLLabelsButton5Checked = false;
  180. } else if (HTMLLabelsButton5Checked == false) {
  181. changeColorAtHover(HTMLLabelsButton5, '#05d1ff', '#05d1ff');
  182. HTMLLabelsButton5.innerHTML = 'En/Disable bedrock cheat ✔';
  183. G.CONFIG.environmentOceanFloorHeight = 0
  184. BedrockEnabled = true
  185. HTMLLabelsButton5Checked = true;
  186. }
  187. }
  188. document.getElementById('MyDIV').appendChild(HTMLLabelsButton5);
  189. var HTMLLabelsButton6 = document.createElement('button');
  190. var HTMLLabelsButton6Checked = true;
  191. SpeedSwimingEnabled = true
  192. HTMLLabelsButton6.innerHTML = 'En/Disable fast swimming cheat ✔';
  193. HTMLLabelsButton6.style = "font-family: Madera; font-size: 13px; background: #05d1ff; color: white; top: 255px; left: 15px; position: absolute; z-index: 99999; padding: 15px; cursor: pointer; border-radius: 15px;";
  194. changeColorAtHover(HTMLLabelsButton6, '#05d1ff', '#05d1ff');
  195. HTMLLabelsButton6.onclick = function () {
  196. if (HTMLLabelsButton6Checked == true) {
  197. changeColorAtHover(HTMLLabelsButton6, '#05d1ff', "black");
  198. HTMLLabelsButton6.innerHTML = 'En/Disable fast swimming cheat ✖';
  199. G.CONFIG.a155 = 0
  200. SpeedSwimingEnabled = false
  201. HTMLLabelsButton6Checked = false;
  202. } else if (HTMLLabelsButton6Checked == false) {
  203. changeColorAtHover(HTMLLabelsButton6, '#05d1ff', '#05d1ff');
  204. HTMLLabelsButton6.innerHTML = 'En/Disable fast swimming cheat ✔';
  205. G.CONFIG.a155 = 100
  206. SpeedSwimingEnabled = true
  207. HTMLLabelsButton6Checked = true;
  208. }
  209. }
  210. document.getElementById('MyDIV').appendChild(HTMLLabelsButton6);
  211. document.getElementById('MyDIV').appendChild(HTMLLabelsButton1);
  212. var HTMLLabelsButton2 = document.createElement('button');
  213. var HTMLLabelsButton2Checked = false
  214. HTMLLabelsButton2.innerHTML = 'En/Disable Spam Mode ✖';
  215. HTMLLabelsButton2.style = "font-family: Madera; font-size: 13px; background-color: black; color: white; top:135px;left:15px;position:absolute;z-index:99999;padding:15px;cursor: pointer;border-radius: 15px 15px 15px 15px;";
  216. changeColorAtHover(HTMLLabelsButton2, '#05d1ff', 'black');
  217. HTMLLabelsButton2.onclick = function () {
  218. spam_count = 0;
  219. if (HTMLLabelsButton2Checked == true) {
  220. changeColorAtHover(HTMLLabelsButton2, '#05d1ff', 'black');
  221. HTMLLabelsButton2.innerHTML = 'En/Disable Spam Mode ✖';
  222. HTMLLabelsButton2Checked = false;
  223. } else if (HTMLLabelsButton2Checked == false) {
  224. changeColorAtHover(HTMLLabelsButton2, '#05d1ff', '#05d1ff');
  225. HTMLLabelsButton2.innerHTML = 'En/Disable Spam Mode ✔';
  226. HTMLLabelsButton2Checked = true;
  227. }
  228. if (spam_lock == 'True') {
  229. spam_lock = 'False';
  230. } else if (spam_lock == 'False') {
  231. spam_lock = 'True';
  232. }
  233. }
  234. document.getElementById('MyDIV').appendChild(HTMLLabelsButton2);
  235. }
  236. function hideButtonsButton() {
  237. var HTMLLabelsButton3 = document.createElement('button');
  238. var HTMLLabelsButton3Checked = false
  239. HTMLLabelsButton3.innerHTML = '⬅';
  240. HTMLLabelsButton3.style = "font-family: Madera; font-size: 13px; background-color: black; color: white; top:320px;height: 100px ;left:15px;position:absolute;z-index:99999;padding:15px;cursor: pointer;border-radius: 15px 15px 15px 15px;";
  241. HTMLLabelsButton3.onclick = function () {
  242. if (HTMLLabelsButton3Checked == true) {
  243. divClass.style.display = 'block';
  244. changeColorAtHover(HTMLLabelsButton3, '#05d1ff', 'black');
  245. HTMLLabelsButton3.innerHTML = '⬅';
  246. HTMLLabelsButton3Checked = false
  247. } else if (HTMLLabelsButton3Checked == false) {
  248. divClass.style.display = 'none';
  249. changeColorAtHover(HTMLLabelsButton3, '#05d1ff', '#05d1ff');
  250. HTMLLabelsButton3.innerHTML = '➡';
  251. HTMLLabelsButton3Checked = true
  252. }
  253. }
  254. document.body.appendChild(HTMLLabelsButton3);
  255. }
  256. var askForAutoJoin = confirm("do you want to activate the auto-join? It will join the game automatically.");
  257. modifyHTML();
  258. HTMLlabels();
  259. HTMLButtonSpam();
  260. hideButtonsButton();
  261. keyboardManagement();
  262. window.addEventListener('load', function () {
  263. if (askForAutoJoin) wwStartBtn();
  264. });
  265. })();

QingJ © 2025

镜像随时可能失效,请加Q群300939539或关注我们的公众号极客氢云获取最新地址