從零開始的Minecraft插件開發(fā)#1 環(huán)境搭建

Hello,I'm sysROM!
注意啊!?雖然說(shuō)是從零開始,但是你也得會(huì)java的,不然啥也看不懂(當(dāng)然懂java的誰(shuí)還看環(huán)境搭建啊都能倒背了)
一共2節(jié)
安裝Java以及配置環(huán)境變量
配置IDEA

安裝Java以及配置環(huán)境變量
首先你要知道,你開發(fā)的插件是用在哪個(gè)版本的(因?yàn)橛行┌姹居玫腏ava不同)
這里以Java8為例

右鍵JDK的安裝包,以管理員身份運(yùn)行
如果無(wú)特殊情況默認(rèn)一路下一步即可
然后右鍵此電腦(Win7用戶右鍵我的電腦,桌面沒(méi)有的去打開資源管理器)

舊版Win10或者Win7用戶找到高級(jí)系統(tǒng)設(shè)置,較新的Win10右鍵出來(lái)跳的是設(shè)置,下滑找到高級(jí)系統(tǒng)設(shè)置
點(diǎn)擊 "環(huán)境變量"

在"系統(tǒng)變量"處新建一個(gè)名為JAVA_HOME的變量,變量值為你安裝的Java目錄(結(jié)尾不要\ 記好了uwu)

確定之后,在系統(tǒng)變量找到"Path"這一項(xiàng)(別告訴我說(shuō)找不到),點(diǎn)擊編輯(你別點(diǎn)到刪除了哇!)

然后點(diǎn)擊"新建" ,內(nèi)容填寫 %JAVA_HOME%\bin (這里一樣也不要'\'!)

點(diǎn)擊確認(rèn)保存后,Win+R cmd Enter(這里必須要用新打開的Cmd,不然Path還是舊的)
java -version有版本返回就代表配置沒(méi)問(wèn)題

配置IDEA
來(lái)到?https://www.jetbrains.com/zh-cn/idea/ 下載
然后熟悉的右鍵Admin運(yùn)行,還是經(jīng)典的無(wú)特殊要求一路下一步
中途可以稍微設(shè)置一下

Create Desktop Shortcut 創(chuàng)建快捷方式 Update Context Menu 就是在你右鍵菜單加個(gè)Open Folder as Project(就是說(shuō)吧這個(gè)文件夾當(dāng)項(xiàng)目文件夾打開啦)
Create Associations 創(chuàng)建文件關(guān)聯(lián)?
安裝完成之后,激活可以自己找方法(文末附一枚激活碼)
搞完這些應(yīng)該顯示

點(diǎn)擊 "Plugins"
分別安裝 Chinese (Simplified) Language Pack 和 Minecraft Development
前者用于漢化 后者方便了一些開發(fā)的MDK配置


安裝完成之后重啟IDEA,你的IDEA應(yīng)該就是中文的了
點(diǎn)擊新建項(xiàng)目,左邊側(cè)欄生成器應(yīng)該有個(gè)草方塊圖標(biāo)的Minecraft 就代表你環(huán)境配置什么的ojbk了

配置到這里就結(jié)束了,這個(gè)系列理論上一周一更新(沒(méi)更新就是GD嚴(yán)重睡覺(jué)去了)
交流群:724847224 | https://jq.qq.com/?_wv=1027&k=sfpr3JU6

哦還有激活碼來(lái)著我差點(diǎn)忘記了
33MEHOB8W0-eyJsaWNlbnNlSWQiOiIzM01FSE9COFcwIiwibGljZW5zZWVOYW1lIjoiUG9saXRla25payBNZXJsaW1hdSBNZWxha2EiLCJhc3NpZ25lZU5hbWUiOiJtYWdnaWUgc2VyIiwiYXNzaWduZWVFbWFpbCI6Im1hZ2dpZXNlckB5ZWFoLm5ldCIsImxpY2Vuc2VSZXN0cmljdGlvbiI6IkZvciBlZHVjYXRpb25hbCB1c2Ugb25seSIsImNoZWNrQ29uY3VycmVudFVzZSI6ZmFsc2UsInByb2R1Y3RzIjpbeyJjb2RlIjoiRFBOIiwicGFpZFVwVG8iOiIyMDIzLTA3LTI2IiwiZXh0ZW5kZWQiOmZhbHNlfSx7ImNvZGUiOiJEQiIsInBhaWRVcFRvIjoiMjAyMy0wNy0yNiIsImV4dGVuZGVkIjpmYWxzZX0seyJjb2RlIjoiUFMiLCJwYWlkVXBUbyI6IjIwMjMtMDctMjYiLCJleHRlbmRlZCI6ZmFsc2V9LHsiY29kZSI6IklJIiwicGFpZFVwVG8iOiIyMDIzLTA3LTI2IiwiZXh0ZW5kZWQiOmZhbHNlfSx7ImNvZGUiOiJSU0MiLCJwYWlkVXBUbyI6IjIwMjMtMDctMjYiLCJleHRlbmRlZCI6dHJ1ZX0seyJjb2RlIjoiR08iLCJwYWlkVXBUbyI6IjIwMjMtMDct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