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.

DcZipPL

Members
  • Joined

  • Last visited

  1. Ok I fixed, I'm creating new tile entity instead of using existing TE. ClientRegistry.bindTileEntityRenderer(ModTileEntities.INFUSER_TE.get(), InfuserTileEntityRender::new);
  2. I tried make tile entity render but nothing work, //doClientStuff(final FMLClientSetupEvent event) ClientRegistry.bindTileEntityRenderer(TileEntityType.Builder.create(TankTileEntity::new, ModBlocks.TANK ).build(null), TankTileEntityRender::new); //ModTileEntities public static final DeferredRegister<TileEntityType<?>> ENTITY_TYPES = new DeferredRegister<>(ForgeRegistries.TILE_ENTITIES, Reference.MOD_ID); public static RegistryObject<TileEntityType<?>> TANK_TE = ENTITY_TYPES.register("tank_te", () -> TileEntityType.Builder.create(TankTileEntity::new,ModBlocks.TANK).build(null) ); public class TankTileEntityRender extends TileEntityRenderer<TankTileEntity> { public TankTileEntityRender(TileEntityRendererDispatcher p_i226006_1_) { super(p_i226006_1_); } @Override public void render(TankTileEntity tankTileEntity, float v, MatrixStack matrixStack, IRenderTypeBuffer iRenderTypeBuffer, int i, int i1) { matrixStack.push(); matrixStack.translate(tankTileEntity.getPos().getX(),tankTileEntity.getPos().getY(),tankTileEntity.getPos().getZ()); matrixStack.rotate(new Quaternion(0,0,0,0)); matrixStack.translate(0.5,0.1,0); Minecraft.getInstance().getItemRenderer().renderItem(new ItemStack(Items.REDSTONE_TORCH), ItemCameraTransforms.TransformType.GROUND,i,i1,matrixStack,iRenderTypeBuffer); matrixStack.pop(); } } public class TankTileEntity extends TileEntity { public TankTileEntity() { super(ModTileEntities.TANK_TE.get()); } } public class TankBlock extends Block { public VoxelShape SHAPE = Block.makeCuboidShape(1,0,1,15,16,15); public TankBlock(Properties properties) { super(properties); } @Override public VoxelShape getShape(BlockState state, IBlockReader worldIn, BlockPos pos, ISelectionContext context) { return SHAPE; } @Override public VoxelShape getCollisionShape(BlockState state, IBlockReader worldIn, BlockPos pos, ISelectionContext context) { return SHAPE; } }
  3. I mean, how I can re-render nearby chunks which function?
  4. What I can do to remove that bug in my "air like" blocks?
  5. Same thing is with /fill x y z x1 y1 z1 torch command
  6. Placing "Air like" block that emits light (15) in example 4 block radius using BlockPos.getAllInBox.
  7. DcZipPL changed their profile photo
  8. I don't know how update/recalculate lighting in nearby chunks because I get strange lighting issues after destroying blocks that emitting light. Repository: https://github.com/DcZipPL/lightestlampsmod Image:
  9. I'm making Anti-Torch and is possibility make to air-like block that blocks lighting and make area darker?
  10. I wanted to set the light to 6, one block above in TileEntity tick(), but I don't know how. I read that in 1.12 there was something like this: world.setLightFor(LightType, BlockPos, int) but now it is missing in version 1.14.4.
  11. I dont know. Can you Show all Code from your IDE?
  12. I forget private static final Logger LOGGER = LogManager.getLogger(); in Main Class
  13. I use something like that: In Main Class @Mod.EventBusSubscriber(bus=Mod.EventBusSubscriber.Bus.MOD) public static class RegistryEvents { @SubscribeEvent public static void onItemsRegistry(final RegistryEvent.Register<Item> itemsRegistryEvent) { itemsRegistryEvent.getRegistry().registerAll(ModItems.ITEMS.toArray(new Item[0])); LOGGER.info("HELLO from Register ITEM"); } } In ModItems Class public class ModItems { public static final List<Item> ITEMS = new ArrayList<>(); public static final Item REDSTONEPASTE = new ItemBase("redstone_paste"); } In ItemBase Class public class ItemBase extends Item { public ItemBase(String name) { super(new Item.Properties().group(ItemGroup.MISC)); setRegistryName(Reference.MOD_ID, name); ModItems.ITEMS.add(this); } } In Resources/assets/(MOD_ID)/models/item/ { "parent": "item/generated", "textures": { "layer0": "(MOD_ID):items/redstone_paste" } }

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.