Advertisement
DerRedCrafter

Code für RLCoolLP

Sep 5th, 2015
107
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.04 KB | None | 0 0
  1. <table>
  2. <tr>
  3. <td>
  4. Text:
  5. </td>
  6. </tr>
  7.  
  8. <tr>
  9. <td>
  10. ➥<input id="color" placeholder="Color" size="1" /> | <input id="name" placeholder="Text" />
  11. </td>
  12. </tr>
  13.  
  14. <tr>
  15. <td>
  16. <br />
  17. <button id="generiere">Command Generieren</button>
  18. </td>
  19. </tr>
  20.  
  21. <tr>
  22. <td>
  23. <br />
  24. One Command:
  25. </td>
  26. </tr>
  27.  
  28. <tr>
  29. <td>
  30. <div id="output">
  31. </div>
  32. </td>
  33. </tr>
  34. </table>
  35. <script type="text/javascript">
  36. //<![CDATA[
  37. function rechtsklick()
  38. {
  39. if (event.button==2)
  40. {
  41. alert('Tut mir Leid, aber diese Funktion ist nicht verfügbar!')
  42. }
  43. }
  44. document.onmousedown=rechtsklick
  45.  
  46. document.getElementById("generiere").addEventListener("click", function(){
  47. var output = document.getElementById("output");
  48. output.innerHTML = "";
  49. output.appendChild(document.createTextNode(
  50. '/setblock ~ ~1 ~ standing_sign 0 replace {Text1:"{text:\\"-=+=-\\",clickEvent:{action:\\"run_command\\",value:\\"setblock ~ ~ ~ command_block 0 replace {Command:summon EnderDragon ~ ~10 ~ {NoAI:1,Silent:1,CustomName:\\\\u00a7' + document.getElementById("color").value + '' + document.getElementById("name").value + '},}\\"}}",Text2:"{text:\\"CLICK\\",clickEvent:{action:\\"run_command\\",value:\\"setblock ~ ~1 ~ command_block 0 replace {Command:fill ~ ~-2 ~ ~1 ~2 ~ air}\\"}}",Text3:"{text:\\"TO ACTIVATE!\\",clickEvent:{action:\\"run_command\\",value:\\"setblock ~ ~2 ~ command_block 0 replace {Command:fill ~1 ~-1 ~ ~1 ~-2 ~ redstone_block}\\"}}",Text4:"{text:\\"-=+=-\\",clickEvent:{action:\\"run_command\\",value:\\"summon FallingSand ~ ~5 ~ {Time:1,Block:redstone_block}\\"}}"}'
  51.  
  52. ));
  53. }, false);
  54. //]]>
  55.  
  56.  
  57. </script>
  58.  
  59. <tr>
  60. <td>
  61. <span style="color: rgb(255, 0, 0);" data-mce-style="color: #ffff00;"><strong><span style="font-size: 12px;">Code by DerRedCrafter</span></strong></span>
  62. </td>
  63. </tr>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement