Jump to content

tom2208

Members
  • Posts

    16
  • Joined

  • Last visited

Everything posted by tom2208

  1. here is my code, but it's not working. If i craft with this item there is a 0 on it and if i put it in my inventory it disappears. Item Class: public class wooden_pestle extends Item{ public wooden_pestle(){ super(); this.setMaxDamage(4); this.setMaxStackSize(1); } @Override public boolean hasContainerItem(ItemStack stack) { return true; } @Override public ItemStack getContainerItem(ItemStack itemStack) { itemStack.setItemDamage(itemStack.getItemDamage() + 1); return itemStack; } } how i can register the recipe?
  2. yes, "not that good at pixel art" he said, so you can use the minecraft textures on this way. This is the best way i think or the easiest. And if you do complicated models this will help too. If you want a complicadet model form minecraft you can use copy and paste. if you want to put your own texture on it, edit the model json: { "parent": "block/cube_all", "textures": { "all": "your folder name:blocks/texutrename" //use .png for the texture } }
  3. use my code above, it works
  4. use this for your model: { "parent": "block/cube_all", "textures": { "all": "blocks/stone" } } and for your blockstates you have to use this: { "variants": { "normal": { "model": "name of the model above" } } }
  5. protected static final AxisAlignedBB BLOCK1_AABB = new AxisAlignedBB(X, Y, Z, X,Y, Z);
  6. use this: protected static final AxisAlignedBB BLOCK1_AABB = new AxisAlignedBB(0.0D, 0.0D, 0.0D, 1.D, 0.5D, 1.0D); public AxisAlignedBB getBoundingBox(IBlockState state, IBlockAccess source, BlockPos pos) { return BLOCK1_AABB; }
  7. I dont understand how this is implemented in the class hooper. How it capture the items?
  8. but why shout i not use getTieleData?
  9. okey thx, i'll try
  10. I created a block. Now, if i drop an item on a block the tile entity have to do that: variable +=1. My code doesnt work. :'( pls help me code:
×
×
  • Create New...

Important Information

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