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.

yumeji

Members
  • Joined

  • Last visited

  1. I had posted Block class. Minecraft wiki said,A redstone repeater can power any opaque block (including any opaque mechanism components). for xample stone sand block can be powerd. I have registed it as Rendertype solid, but it doesn't work.
  2. public class MusicBox extends Block { private static VoxelShape shape; static { VoxelShape box = Block.box(0, 0, 0, 16, 16, 16); shape = Shapes.or(box); } public MusicBox() { super(Properties.of(Material.DECORATION)); } public VoxelShape getShape(BlockState blockState, BlockGetter blockGetter, BlockPos blockPos, CollisionContext collisionContext) { return shape; } }
  3. I registered a block but it couldn't be strongly-powerd or weakly-powerd by redstone and redstone repeater I try to set rendertype with solid and set up the VoxelShape,but it doesn't seem to work。 @Mod.EventBusSubscriber(bus = Mod.EventBusSubscriber.Bus.MOD,value = Dist.CLIENT) public class RenderType { @SubscribeEvent public static void onRenderTypeSetup(FMLClientSetupEvent event) { ItemBlockRenderTypes.setRenderLayer(Block.musicBox.get(), net.minecraft.client.renderer.RenderType.solid()); //ItemBlockRenderTypes.setRenderLayer(Block.gift.get(), net.minecraft.client.renderer.RenderType.cutout()); } }
  4. Could you possibly tell me how does it work? i have the same trouble as you did you replace one of the existing painting? or by public static final RegistryObject<PaintingType> PICTURE = PAINTING_TYPES.register("picture", () -> new PaintingType(320, 176)); if you do that, how to create a json file to reflect the image? o.o

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.