Posted January 8, 20223 yr trying to import net.minecraft.world.level.block.state.BlockBehavior Won't let me import img so https://ibb.co/wJB11Fh Code: package io.github.wallibed.magicalmod.core.init; import io.github.wallibed.magicalmod.MagicalMod; import net.minecraft.world.level.block.Block; import net.minecraft.world.level.block.Blocks; import net.minecraft.world.level.block.state.BlockBehavior; import net.minecraft.world.level.material.Material; import net.minecraft.world.level.material.MaterialColor; import net.minecraftforge.fmllegacy.RegistryObject; import net.minecraftforge.registries.DeferredRegister; import net.minecraftforge.registries.ForgeRegistries; public final class BlockInit { private BlockInit() { } public static final DeferredRegister<Block> BLOCKS = DeferredRegister.create(ForgeRegistries.BLOCKS, MagicalMod.MODID); public static final RegistryObject<Block> SOUL_BLOCK = BLOCKS.register("soul_block", () -> new Block(BlockBehavior.Properties.of(Material.AIR, MaterialColor.COLOR_LIGHT_BLUE))); } Edited January 9, 20223 yr by Bedwa
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.