Jump to content

Red4X

Members
  • Posts

    6
  • Joined

  • Last visited

Red4X's Achievements

Tree Puncher

Tree Puncher (2/8)

0

Reputation

  1. I made it, but, it emits those lava particles not the smoke particles, my custom fire texture I made is rendered without transparency, no food shows up when placed on it, but it's there, trust me, and also I can't reignite it. I can't find a reason whyy Here's my ModBlocks class: package net.Blue4X.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.CampfireBlock; 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.minecraftforge.eventbus.api.IEventBus; import net.minecraftforge.registries.DeferredRegister; import net.minecraftforge.registries.ForgeRegistries; import net.minecraftforge.registries.RegistryObject; import java.util.function.Supplier; import java.util.function.ToIntFunction; public class ModBlocks { public static final DeferredRegister<Block> BLOCKS = DeferredRegister.create(ForgeRegistries.BLOCKS, TheRevival.MODID); public static final RegistryObject<Block> BLOCK_CAMPFIRE = registerBlock( () -> new CampfireBlock(true, 4, BlockBehaviour.Properties.ofFullCopy(Blocks.SOUL_CAMPFIRE) .ignitedByLava() .noOcclusion() .lightLevel(litBlockEmission(15)) ) ); 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> void registerBlockItem(RegistryObject<T> block) { ModItems.ITEMS.register("block_campfire", () -> new BlockItem(block.get(), new Item.Properties())); } public static void register(IEventBus EventBus) { BLOCKS.register(EventBus); } private static ToIntFunction<BlockState> litBlockEmission(int pLightValue) { return p_50763_ -> p_50763_.getValue(BlockStateProperties.LIT) ? pLightValue : 0; } } Minecraft 1.20.6 Forge 50.0.5
  2. 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); } }
  3. Made a block, copies exactly the soul campfire. But when I start Minecraft, it starts, and right before it goes into full screen, it errors out. That's when I get 2 of these: Caused by: java.lang.IllegalArgumentException: Cannot get property BooleanProperty{name=lit, clazz=class java.lang.Boolean, values=[true, false]} as it does not exist in Block{minecraft:air} And 2 of these: Caused by: java.lang.NullPointerException: Registry Object not present: revive:block_campfire Thanks!
  4. So, using the Curse Forge app, I tried to run an installation, but it gives this error message after the Mojang logo finishes loading: Below is the crash report:
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.