Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <table>
- <tr>
- <td>
- Text:
- </td>
- </tr>
- <tr>
- <td>
- ➥<input id="color" placeholder="Color" size="1" /> | <input id="name" placeholder="Text" />
- </td>
- </tr>
- <tr>
- <td>
- <br />
- <button id="generiere">Command Generieren</button>
- </td>
- </tr>
- <tr>
- <td>
- <br />
- One Command:
- </td>
- </tr>
- <tr>
- <td>
- <div id="output">
- </div>
- </td>
- </tr>
- </table>
- <script type="text/javascript">
- //<![CDATA[
- function rechtsklick()
- {
- if (event.button==2)
- {
- alert('Tut mir Leid, aber diese Funktion ist nicht verfügbar!')
- }
- }
- document.onmousedown=rechtsklick
- document.getElementById("generiere").addEventListener("click", function(){
- var output = document.getElementById("output");
- output.innerHTML = "";
- output.appendChild(document.createTextNode(
- '/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}\\"}}"}'
- ));
- }, false);
- //]]>
- </script>
- <tr>
- <td>
- <span style="color: rgb(255, 0, 0);" data-mce-style="color: #ffff00;"><strong><span style="font-size: 12px;">Code by DerRedCrafter</span></strong></span>
- </td>
- </tr>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement