Skip to content

Instantly share code, notes, and snippets.

@BlakeStevenson
Created October 29, 2019 19:07
Show Gist options
  • Save BlakeStevenson/0cb740cb6c7b8c51a33d1eca6a5df192 to your computer and use it in GitHub Desktop.
Save BlakeStevenson/0cb740cb6c7b8c51a33d1eca6a5df192 to your computer and use it in GitHub Desktop.
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