• 11/23/25 12:25 pm
- 215 views • 1 today
- save_alt 4 downloads
- Compatibility
- Minecraft 1.21
- Changes include
- Functions
3
Compatible with Minecraft 1.21.10.
You can use this datapack to count the steps from a given number down to 1 using the rules of the Collatz Conjecture. Below is a simplification of the rules.
1. Start with any positive integer.
2. If it is even, divide it by 2.
3. If it is odd, multiply it by 3 and add 1.
After loading the datapack, use "/trigger collatz_input set <number>" to start the calculation. Each step is sent to the text chat, and then it generates a report. The report has five numbers: the starting value, the steps from the starting value to the maximum, the maximum, the steps from the maximum to one, and then the total amount of steps. There is also a simple report on the scoreboard sidebar.
Enjoy!
You can use this datapack to count the steps from a given number down to 1 using the rules of the Collatz Conjecture. Below is a simplification of the rules.
1. Start with any positive integer.
2. If it is even, divide it by 2.
3. If it is odd, multiply it by 3 and add 1.
After loading the datapack, use "/trigger collatz_input set <number>" to start the calculation. Each step is sent to the text chat, and then it generates a report. The report has five numbers: the starting value, the steps from the starting value to the maximum, the maximum, the steps from the maximum to one, and then the total amount of steps. There is also a simple report on the scoreboard sidebar.
Enjoy!
1 Update Logs
Patch v1.0.1 : by Samster6868 11/23/2025 1:28:02 pmNovember 23, 2025 @ 6:28 pm UTC
- Added a condensed report in chat once the calculations are complete.
- Added a couple extra values.
- Adjusted colors.
More like this
6781907
119




Have something to say?