Jump to content
View in the app

A better way to browse. Learn more.

Forge Forums

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

An12854

Members
  • Joined

  • Last visited

  1. package com.an12854.leanmod.block.entity; import com.an12854.leanmod.block.entity.ModBlockEntities; import net.minecraft.core.BlockPos; import net.minecraft.world.level.block.entity.BlockEntityType; import net.minecraft.world.level.block.entity.SignBlockEntity; import net.minecraft.world.level.block.state.BlockState; public class ModSignBlockEntity extends SignBlockEntity { public ModSignBlockEntity(BlockPos p_155700_, BlockState p_155701_) { super (p_155700_, p_155701_); } @Override public BlockEntityType<?> getType() { return ModBlockEntities.SIGN_BLOCK_ENTITIES.get(); } } None of the docs i found mention registering the screen so I would ask if you could point me in the right direction.
  2. As a way to practice modding I'm trying to add signs to my 1.19.2 mod, but when placing the sign and opening the sign edit screen it crashes with this log: https://mclo.gs/hxLFTGn I can't find any info on the crash so i don't know what to do anymore. package com.an12854.leanmod.block.entity; import com.an12854.leanmod.Leanmod; import com.an12854.leanmod.block.ModBlocks; import net.minecraft.world.level.block.entity.BlockEntityType; import net.minecraftforge.eventbus.api.IEventBus; import net.minecraftforge.registries.DeferredRegister; import net.minecraftforge.registries.ForgeRegistries; import net.minecraftforge.registries.RegistryObject; public class ModBlockEntities { public static final DeferredRegister<BlockEntityType<?>> BLOCK_ENTITIES = DeferredRegister.create(ForgeRegistries.BLOCK_ENTITY_TYPES, Leanmod.MODID); public static final RegistryObject<BlockEntityType<ModSignBlockEntity>> SIGN_BLOCK_ENTITIES = BLOCK_ENTITIES.register("sign_block_entity", () -> BlockEntityType.Builder.of(ModSignBlockEntity::new, ModBlocks.LEAN_WALL_SIGN.get(), ModBlocks.LEAN_SIGN.get()).build(null)); public static void register(IEventBus eventBus) { BLOCK_ENTITIES.register(eventBus); } } Here is the custom BlockEntities

Important Information

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

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.