這個專案分析了 Minecraft 中不同資源的生長和收穫機制,以計算出最佳的採收時間。主要使用二項分布和泊松分布進行建模分析。
This project analyzes the growth and harvesting mechanics of different resources in Minecraft to calculate optimal harvesting times. It primarily uses binomial and Poisson distributions for modeling and analysis.
- 最佳採收時間 / Optimal harvesting time: 2h 46m 36s 16tick (199,937 ticks)
- 每小時產量 / Hourly yield: 0.517 shards/hour
- 最佳採收時間 / Optimal harvesting time: 41m 2s 13tick (49,253 ticks)
- 每小時產量 / Hourly yield: 2.6 sugar canes/hour
完整的分析和說明請參考 wiki 文件: For complete analysis and explanation, please refer to the wiki documents:
- 紫水晶 / Amethyst
- 甘蔗 / Sugar Cane
- 生長時間較長 / Long growth time
- 無法使用骨粉加速 / Cannot be sped up with bone meal
- 需要精確的計時收割 / Require precise timing for harvesting
- 語言 / Language: Python
- 主要套件 / Main Packages:
- NumPy: 數值計算 / Numerical computation
- SciPy: 統計分析 / Statistical analysis
src/
├── amethyst.py # 紫水晶分析 / Amethyst analysis
├── sugar_cane.py # 甘蔗分析 / Sugar cane analysis
└── rate_calculator.py # 通用計算器 / Generic calculator
wiki/
├── en/ # 英文文檔 / English documentation
└── zh_tw/ # 中文文檔 / Chinese documentation
- 安裝依賴 / Install dependencies: use pip
pip install -r requirements.txtor use uv
uv venv
uv sync- 運行分析 / Run analysis:
python src/amethyst.py # 分析紫水晶 / Analyze amethyst
python src/sugar_cane.py # 分析甘蔗 / Analyze sugar cane本專案使用以下統計模型: This project uses the following statistical models:
- 二項分布 / Binomial Distribution: 適用於精確計算 / For exact calculations
- 泊松分布 / Poisson Distribution: 用於大量樣本近似 / For large sample approximations
- 補充更多農場範例 / Add more farm designs
- 研究甘蔗的初始值問題(見doc) / Investigate the initial state problem of sugar cane growth(see doc)
- 研究飛行器返回路徑對產率的影響 / Analyze how return flight paths affect efficiency
- 擴展耕種物品分析 / Expand analysis of farmable items:
- 傳統作物(小麥、馬鈴薯等)/ Crops (wheat, potatoes, etc.)
- 菇類植物 / Mushrooms
- 特殊植物:仙人掌、海帶、竹子、紫頌花、紅樹胎生苗、甜莓叢
- Special blocks: Cactus, kelp, bamboo, chorus flowers, mangrove propagules, sweet berries
- 特殊自然方塊:草方塊、海龜蛋、鐘乳石
- Natural blocks: grass blocks, turtle eggs, dripstone
歡迎提供改進建議或提交 Pull Request。 Suggestions for improvements or pull requests are welcome.
本專案採用 MIT 授權條款 - 詳見 LICENSE 文件。 This project is licensed under the MIT License - see the LICENSE file for details.
Imango 1.17 Shard Farming: Doing The Crystal Math - YouTube Which inspired me to do this, as we obtained very similar results in the end.
My friend @Youhe inspired me to start this project and try modeling it with a binomial distribution.