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.

kpzip

Members
  • Joined

  • Last visited

  1. Turns out this was caused by some transparent places in the texture file, Thanks for your help!
  2. I am having a problem with a specific item that uses a JSON model when it is rendered in your inventory where some of the faces are missing: This is my model: And this is my block class:
  3. ok so I tried removing all cubes but one and the z-fighting still persists
  4. ok I will try later. Thanks for the help!
  5. I tried offsetting all of the strings 1 pixel up, but the Z-fighting persists. Im not sure if I understand what you are saying
  6. I have a JSON model that seems to produce a lot of Z-fighting (outlined in red in the image below) This is my JSON model : This is the block Class:
  7. I have since resolved this issue in my mod.
  8. I am having a problem where you cannot shift-click items into or out of a GUI This is my Container code: This is my Tile Entity Code:
  9. The model for my custom entity has some issues with z-fighting: (seen on the top of the claws) Here is me model file: Here is my render code:
  10. Thanks, By looking at the ItemBlockSpecial class, I was able to figure out what to do
  11. I assume I need to use the custom ItemBlock when registering the block, but what code do I put in the itemblock?
  12. I have created a custom slab in my mod and when I place one down on top of another slab, It doesn't form a double slab, but instead places a slab on top of the block. This is my Generic Slab code: package com.kpzip.SushiMod.blocks.shapes.slab; import java.util.Random; import net.minecraft.block.BlockSlab; import net.minecraft.block.SoundType; import net.minecraft.block.material.Material; import net.minecraft.block.properties.IProperty; import net.minecraft.block.state.BlockStateContainer; import net.minecraft.block.state.IBlockState; import net.minecraft.item.Item; import net.minecraft.item.ItemBlock; import net.minecraft.item.ItemStack; import com.kpzip.SushiMod.Main; import com.kpzip.SushiMod.init.ModBlocks; import com.kpzip.SushiMod.init.ModItems; import com.kpzip.SushiMod.util.IHasModel; public abstract class BambooSlab extends BlockSlab implements IHasModel{ public BambooSlab(String name) { super(Material.WOOD); this.setUnlocalizedName(name); this.setRegistryName(name); this.setSoundType(SoundType.WOOD); if (this instanceof BambooHalfSlab) { this.setCreativeTab(Main.SUSHI_BLOCKS); } setHardness(2); setResistance(15); setHarvestLevel("axe", 0); IBlockState state = this.blockState.getBaseState(); if (!this.isDouble()) { state = state.withProperty(HALF, EnumBlockHalf.BOTTOM); } this.setDefaultState(state); this.useNeighborBrightness = true; ModBlocks.BLOCKS.add(this); ModItems.ITEMS.add(new ItemBlock(this).setRegistryName(this.getRegistryName())); } @Override public void registerModels() { Main.proxy.registerItemRenderer(Item.getItemFromBlock(this), 0, "inventory"); } @Override public String getUnlocalizedName(int meta) { return this.getUnlocalizedName(); } @Override public IProperty<?> getVariantProperty() { return HALF; } @Override public Comparable<?> getTypeForItem(ItemStack stack) { return EnumBlockHalf.BOTTOM; } @Override public int damageDropped(IBlockState state) { return 0; } @Override public IBlockState getStateFromMeta(int meta) { if (!this.isDouble()) { return this.getDefaultState().withProperty(HALF, EnumBlockHalf.values()[meta % EnumBlockHalf.values().length]); } return this.getDefaultState(); } @Override public int getMetaFromState(IBlockState state) { if (!this.isDouble()) { return 0; } return ((EnumBlockHalf)state.getValue(HALF)).ordinal() + 1; } @Override public Item getItemDropped(IBlockState state, Random rand, int fortune) { return Item.getItemFromBlock(ModBlocks.BAMBOO_SLAB_HALF); } @Override protected BlockStateContainer createBlockState() { return new BlockStateContainer(this, new IProperty[] {HALF}); } } This is my Double Slab code: package com.kpzip.SushiMod.blocks.shapes.slab; public class BambooDoubleSlab extends BambooSlab { public BambooDoubleSlab(String name) { super(name); } @Override public boolean isDouble() { return true; } } And this is my half slab code: package com.kpzip.SushiMod.blocks.shapes.slab; import net.minecraft.block.state.IBlockState; import net.minecraft.entity.player.EntityPlayer; import net.minecraft.item.Item; import net.minecraft.util.EnumFacing; import net.minecraft.util.EnumHand; import net.minecraft.util.math.BlockPos; import net.minecraft.world.World; import com.kpzip.SushiMod.blocks.shapes.IHasCustomShape; import com.kpzip.SushiMod.init.ModBlocks; public class BambooHalfSlab extends BambooSlab implements IHasCustomShape { public BambooHalfSlab(String name) { super(name); } @Override public boolean isDouble() { return false; } @Override public IBlockState getStateFromMeta(int meta) { if (meta == 0) { return this.getDefaultState().withProperty(HALF, EnumBlockHalf.BOTTOM); } else { return this.getDefaultState().withProperty(HALF, EnumBlockHalf.TOP); } } @Override public int getMetaFromState(IBlockState state) { if (state.getValue(HALF) == EnumBlockHalf.BOTTOM) { return 0; } else { return 1; } } } Minecraft 1.12.2 7_20_2019 9_22_31 AM.mp4
  13. ~~

    kpzip replied to Alysriel's topic in Modder Support
    I am experienced with modding for 1.12.2, if you would like a mod for that version, I would be happy to work on it!
  14. ~~

    kpzip replied to Alysriel's topic in Modder Support
    What MC version do you want this mod for?
  15. I have fixed the problem. Thank you for your help!

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.