Minecraft Modding

コードが書きたい。

Java 1.8

MinecraftForgeでJavassistを使いたい

目次 概要 今回のコード 課題 終わりに 概要 Mod開発時に既存クラスを変更したいなと調べているうちにForge側で方法が用意されていることを知ったが、ASMを利用する方法でちんぷんかんぷんだったのでJavassistを使いたいなとやってみました。 当初公開してい…

IntelliJ IDEAってカッコいいよね for Minecraft Modding

*/ div.treebox { border-style: solid; border-width: 1px; padding: 1em; } .tree, .tree ul { margin:0 0 0 1em; /* indentation */ padding:0; list-style:none; color:#369; position:relative; } .tree ul {margin-left:.5em} /* (indentation/2) */ .…

鉱石系のブロックを一括破壊する

*/ div.treebox { border-style: solid; border-width: 1px; padding: 1em; } .tree, .tree ul { margin:0 0 0 1em; /* indentation */ padding:0; list-style:none; color:#369; position:relative; } .tree ul {margin-left:.5em} /* (indentation/2) */ .…

食べ物を追加するMod その2 食べ物を追加する(本編)

*/ div.treebox { border-style: solid; border-width: 1px; padding: 1em; } .tree, .tree ul { margin:0 0 0 1em; /* indentation */ padding:0; list-style:none; color:#369; position:relative; } .tree ul {margin-left:.5em} /* (indentation/2) */ .…

食べ物を追加するMod その1 プロジェクトの下準備

*/ div.treebox { border-style: solid; border-width: 1px; padding: 1em; } .tree, .tree ul { margin:0 0 0 1em; /* indentation */ padding:0; list-style:none; color:#369; position:relative; } .tree ul {margin-left:.5em} /* (indentation/2) */ .…

雛形を更新したのでもうちょっと入門らしく

今日の目次 今日の目次 動作確認 実行の仕方 プロジェクトの設定 Modのパッケージ構成を変更 パッケージ名の変更 Mod本体の処理を定義 クライアントとサーバーで処理を分岐 Github 動作確認 プロジェクトのセットアップが完了している前提で始めます。 まず…

やっぱり最初は雛形からでしょうか

次のコードは以下のバージョンに対応しています。 forge-1.12-14.21.1.2426 ExampleMod.java package example.examplemod; import example.examplemod.util.Utils; import net.minecraftforge.fml.common.Mod; import net.minecraftforge.fml.common.Mod.Eve…