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.

tom2208

Members
  • 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:

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.