Jump to content

yumeji

Members
  • Posts

    4
  • Joined

  • Last visited

yumeji's Achievements

Tree Puncher

Tree Puncher (2/8)

0

Reputation

  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
×
×
  • Create New...

Important Information

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