Created
October 29, 2019 19:07
-
-
Save BlakeStevenson/0cb740cb6c7b8c51a33d1eca6a5df192 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function updateNether() { | |
var netherX = document.getElementById("nether-x"); | |
var netherZ = document.getElementById("nether-z"); | |
var overworldX = document.getElementById("overworld-x"); | |
var overworldZ = document.getElementById("overworld-z"); | |
netherX.value = Math.round((overworldX.value / 8)); | |
netherZ.value = Math.round((overworldZ.value / 8)); | |
} | |
function updateOverworld() { | |
var netherX = document.getElementById("nether-x"); | |
var netherZ = document.getElementById("nether-z"); | |
var overworldX = document.getElementById("overworld-x"); | |
var overworldZ = document.getElementById("overworld-z"); | |
overworldX.value = Math.round((netherX.value * 8)); | |
overworldZ.value = Math.round((netherZ.value * 8)); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment