---
# System prepended metadata

title: Intro to AI Final Project

---

# Intro to AI Final Project

## Menu
- [Schedule](#Schedule)
- [Record](#Record)
- [MineRL](#MineRL)
- [Setup](#Setup)
- [Old](#Old)

## Schedule
- 4/8(六) 10:30 釐清主題
- 4/12(三) 22:00 討論暫定主題
- 4/14(五) 21:00 伺服器, minejodo, 麥塊內部參數調整
- 4/19(三) 22:00 報告
    - MineDojo(哲、森): 負責主要AI訓練程式碼
    - Mods(宥、沛): 了解Terrafirmacraft及Patchouli兩個模組有關農作物的部分
- 4/22(六) 20:00 MineDoJo測試，每人創建自己的agent丟上github
- 4/25(二) 22:00 報告自己的agent檔案，看有什麼新東西
- 4/28(五) 22:00 研究MineRL分別報告屬於自己的主題
- 5/03(三) 22:00 

## Record
### 0408
- 麥塊效率農耕
- 依據不同氣候、地形、農作進行產量分析
- 預期結果：模型能根據現有資源 進行產率最佳化的種植
- Reference
    - [minedojo](https://github.com/MineDojo/MineDojo)
    - [MineRL](https://minerl.readthedocs.io/en/latest/index.html)
    - [minecraft python api](https://github.com/martinohanlon/mcpi)
    - [Serene season mod](https://www.curseforge.com/minecraft/mc-mods/serene-seasons)
    - [不同形式的水能灌溉的土地範圍](https://read01.com/2Kmn43o.html#.ZDI0KtJBxH5)
- [想過的其他主題](https://hackmd.io/@tommyforwork07/ry-or1wGh/edit)

### 0412
- 安裝MineDojo及虛擬環境
    - [用conda建立及管理python虛擬環境](https://medium.com/python4u/%E7%94%A8conda%E5%BB%BA%E7%AB%8B%E5%8F%8A%E7%AE%A1%E7%90%86python%E8%99%9B%E6%93%AC%E7%92%B0%E5%A2%83-b61fd2a76566)
- 尋找可以用的模組
- [four season](https://www.curseforge.com/minecraft/mc-mods/serene-seasons)
    - [four season github](https://github.com/Glitchfiend/SereneSeasons/blob/SS-public/src/main/java/sereneseasons/api/season/SeasonChangedEvent.java)
- 嘗試架設模組伺服器
    - [server.jar](https://www.minecraft.net/zh-hant/download/server)

### 0414
- 決定了之後要用的[模組(Terrafirmacraft)](https://www.curseforge.com/minecraft/mc-mods/terrafirmacraft)
- Terrafirmacraft 需要同時搭配另一個模組[Patchouli](https://www.curseforge.com/minecraft/mc-mods/patchouli/download/3846086)才能使用
- 模組安裝且測試完成
- 外網伺服器因為穎沛Linux壞掉(4/15更新 : 已修好) 只能暫時用公開至局網測試 
- [1.19.4 forge](https://files.minecraftforge.net/net/minecraftforge/forge/index_1.19.4.html)
- [1.18.2 forge](https://files.minecraftforge.net/net/minecraftforge/forge/index_1.18.2.html)
- [MineDojo安裝教學](https://docs.minedojo.org/sections/getting_started/install.html)
- [RLcraft(溫度)](https://www.curseforge.com/minecraft/modpacks/rlcraft)
- 額外連結
    - [Minecraft 指令](https://minecraft.fandom.com/wiki/Commands)
    - [Minecraft random time tick command](https://beebom.com/how-change-tick-speed-minecraft/)

### 0419
- 楊森 mac 本地端安裝測試通過 
- 穎沛 linux docker 安裝測試通過 
- [yt範例 留言區有教學](https://www.youtube.com/watch?v=K0hFMMbrPg8&t=32553s)
    - [Run GUI app in linux docker container on windows host](https://dev.to/darksmile92/run-gui-app-in-linux-docker-container-on-windows-host-4kde)
    - [Xserver install](https://dev.to/)
- 調整工作分配
- docker裡的minedojo如何部屬到外網的伺服器中？

### 0422
- MineDojo 
- How show the GUI in docker
- 先不用server了 太難和minedojo整合

### 0425
- 討論mineRL可以做的主題
- 共篩選出五個下次報告並決定最後主題

### 0428
- 分配細項工作
- Task
    - 地圖(.xml)讀進程式
    - RL
    - 控制agent
## MineRL
- [Main跑酷](https://hackmd.io/@tommyforwork07/H1GnR8KXn/edit)
- [Topics](https://hackmd.io/@tommyforwork07/SkqJ_xBQn/edit)
- [Note by 瑋哲](https://hackmd.io/@RabbitMagician/Hkj2G3PQ2/edit)

## Setup
- openjdk version == 1.8.0
    - To check the current version: ```java -version```
    - To install: ```sudo apt install -y openjdk-8-jdk```
    - To switch the version: ```update-alternatives --config java```
- mineRL
    - To install: ```pip install -r requirements.txt```
## Old
- We encountered some difficulties while trying to set up an agent in the MineDojo world. Specifically, we were unable to output the image from Docker and could not use a custom map.
- We discovered that installing and deploying mineRL was easier, so we decided to switch to using it.
- [Note about setting up MineDoJo](https://hackmd.io/@Alfonsooooo/S1ZiA-F73)
