Skip to content

Instantly share code, notes, and snippets.

@Lubba-64
Created March 21, 2022 14:12
Show Gist options
  • Save Lubba-64/c4aba69f4f051af20497ad648cb5a322 to your computer and use it in GitHub Desktop.
Save Lubba-64/c4aba69f4f051af20497ad648cb5a322 to your computer and use it in GitHub Desktop.
import decimal as d
# In minecraft, often times you want to build totally symmetrical and nice looking pillars on your structure.
# This tells you how many blocks appart the pillars need to be for any given distance that you are doing the pillars along,
# in blocks.
gap_size = int(input("GapSize: "))
for inner_gap_size in range(1,gap_size):
y = d.Decimal(gap_size - 1) / d.Decimal(inner_gap_size + 1)
if y % 1 == 0:
print("worked: " + str(inner_gap_size))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment