diff --git a/index.htm b/index.htm
index 8417741..0433fbd 100644
--- a/index.htm
+++ b/index.htm
@@ -56,6 +56,12 @@
Position: | +X: | +Y: | +Z: | +
Rotation: | diff --git a/js/main.js b/js/main.js index a9a75cc..4a67b0e 100644 --- a/js/main.js +++ b/js/main.js @@ -26,7 +26,9 @@ var mLegRight; //* var mArmLeft; //* var mArmRight; //* var armorstand, armorstandWrapper; //Group all the other elements - +var xPos = "~" +var yPos = "~" +var zPos = "~" //DATA -> Stuff that we'll use to generate the command. Fetched from the controls. var invisible = false; @@ -288,9 +290,10 @@ function handleInput(){ rightLeg.set(getRangeInput("rightLegX"), getRangeInput("rightLegY"), getRangeInput("rightLegZ")); leftArm.set(getRangeInput("leftArmX"), getRangeInput("leftArmY"), getRangeInput("leftArmZ")); rightArm.set(getRangeInput("rightArmX"), getRangeInput("rightArmY"), getRangeInput("rightArmZ")); - rotation = getRangeInput("rotation"); - + xPos = getInput("x-coord"); + yPos = getInput("y-coord"); + zPos = getInput("z-coord") updateUI(); } function getCheckBoxInput(name){ @@ -379,7 +382,10 @@ function updateUI(){ } function generateCode(){ - var code = "/summon ArmorStand ~ ~ ~ {"; + var code = "/summon ArmorStand "; + code += xPos + " " + yPos + " " + zPos + " {"; + + var tags = []; |