-
Recently Browsing
No registered users viewing this page.
-
Posts
-
public class ModGlassBlock extends GlassBlock{ public ModGlassBlock(AbstractBlock.Properties p_i48392_1_) { super(p_i48392_1_); } public boolean isOpaqueCube() { return false; } public boolean notSolid() { return true; } } this will not work because Block or GlassBlock does not contain any of these methods and I said add this (notSolid) to the block properties so to the following public static final RegistryObject<Block> BERYLGLASS = BLOCKS.register("beryl_glass", () ->newModGlassBlock(AbstractBlock.Properties.of(Material.LEAVES).strength(0.3F).sound(SoundType.GLASS) .noOcclusion().harvestTool(ToolType.PICKAXE).harvestLevel(1)));
-
BananaSquares/ForgeMod (github.com) I uploaded the src folder It's the file in the Main package called brewrecipe
-
By diesieben07 · Posted
And at no point did it occur to you that maybe, just maybe, this conversation is over? Strange. -
By diesieben07 · Posted
Calling newSimpleChannel is the registration. Hence doing it in some random static initializer is a bad idea. Do it at a known point in time, FMLCommonSetupEvent would be appropriate. -
Actually when you spawn an item manually be carefull to place in the center of the broken block. Place it in block.posX+0.5F, block.posY+0.5F, etc. When it is not placed in the center it will move and might disapear threw other blocks.
-
-
Topics
-
Who's Online (See full list)
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.