[1.8] [90% SOLVED] Cannot Interact With CustomFire E.G. Hit to Extinguish
-
Recently Browsing
- No registered users viewing this page.
-
Posts
-
You could but that would be stupid. And no people wouldnt buy it.
-
By TileEntity · Posted
Add crash-reports with sites like https://paste.ee/ Make a test without Create or try other builds -
By scientistknight1 · Posted
Ah; you can't just copy the properties, you need to use the same block class as the soul campfire. -
Oh yea, 1.20.6 forge 50.0.5 package net.Red4X.Revive; import net.minecraft.world.item.BlockItem; import net.minecraft.world.item.Item; import net.minecraft.world.level.block.Block; import net.minecraft.world.level.block.Blocks; import net.minecraft.world.level.block.state.BlockBehaviour; import net.minecraft.world.level.block.state.BlockState; import net.minecraft.world.level.block.state.properties.BlockStateProperties; import net.minecraft.world.level.block.state.properties.BooleanProperty; import net.minecraftforge.eventbus.api.IEventBus; import net.minecraftforge.registries.DeferredRegister; import net.minecraftforge.registries.ForgeRegistries; import net.minecraftforge.registries.RegistryObject; import java.util.function.Supplier; public class ModBlocks { public static final DeferredRegister<Block> BLOCKS = DeferredRegister.create(ForgeRegistries.BLOCKS, TheRevival.MODID); public static final RegistryObject<Block> BLOCK_CAMPFIRE = registerBlock( () -> new Block(BlockBehaviour.Properties.ofFullCopy(Blocks.SOUL_CAMPFIRE))); private static <T extends Block> RegistryObject<T> registerBlock(Supplier<T> block) { RegistryObject<T> toReturn = BLOCKS.register("block_campfire", block); registerBlockItem(toReturn); return toReturn; } private static <T extends Block> RegistryObject<Item> registerBlockItem(RegistryObject<T> block) { return ModItems.ITEMS.register("block_campfire", () -> new BlockItem(block.get(), new Item.Properties())); } public static void register(IEventBus EventBus){ BLOCKS.register(EventBus); } }
-
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.
Note: Your post will require moderator approval before it will be visible.