This commit is contained in:
ZXMushroom63 2024-11-04 16:35:57 +08:00
parent 9b3f7fc5bf
commit d5c8d8fdc8
2 changed files with 2 additions and 3 deletions

View File

@ -41,7 +41,7 @@ function registerSteveClientSide() {
ModAPI.util.str("steve") ModAPI.util.str("steve")
); );
blockClass.staticMethods.registerBlock0.method( blockClass.staticMethods.registerBlock0.method(
198, 198, //use blockid 198
ModAPI.util.str("steve"), ModAPI.util.str("steve"),
block_of_steve block_of_steve
); );

View File

@ -1,4 +1,3 @@
AsyncSink.MIDDLEWARE.push(ev=>{if (ev.method === "read" && ev.file.includes("steve")) {console.log(ev.file)}});
//nice little utility function to fix the block identity map //nice little utility function to fix the block identity map
function fixupBlockIds() { function fixupBlockIds() {
var blockRegistry = ModAPI.util.wrap(ModAPI.reflect.getClassById("net.minecraft.block.Block").staticVariables.blockRegistry).getCorrective(); var blockRegistry = ModAPI.util.wrap(ModAPI.reflect.getClassById("net.minecraft.block.Block").staticVariables.blockRegistry).getCorrective();
@ -24,7 +23,7 @@ function registerSteveClientSide() {
ModAPI.util.str("steve") ModAPI.util.str("steve")
).$setCreativeTab(creativeBlockTab); ).$setCreativeTab(creativeBlockTab);
blockClass.staticMethods.registerBlock0.method( blockClass.staticMethods.registerBlock0.method(
198, 198, //use blockid 198
ModAPI.util.str("steve"), ModAPI.util.str("steve"),
block_of_steve block_of_steve
); );