Created
March 21, 2022 14:12
-
-
Save Lubba-64/c4aba69f4f051af20497ad648cb5a322 to your computer and use it in GitHub Desktop.
This file contains 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
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