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.

Tameet

Members
  • Joined

  • Last visited

  1. Is there any guide about adding to minecraft a custom potion effects, custom potions, brewing stand recipes?
  2. How to make it so that when using the tool in crafting, it does not disappear, but simply receives damage?
  3. If yes, then here is my question: Why can't minecraft data be edited in fabric mod? I create a mod. In the resources folder, I create package data.minecraft.loot_tables.blocks and place the grass.json file there, but nothing works. I checked the right of the loot table written by me.
  4. I want to run the minecraft command (for example, /say hello) from the mod main class
  5. I searched info but find nothing helpful.
  6. I want to change drop chances for the vanilla sand block for only one item, for example, for the stick. But if i write this code, i change drop chances for all drops of the sand block: if ((event.getState().getBlock() instanceof BlockSand)) { event.getDrops().add(new ItemStack(Items.STICK, 1)); event.setDropChance((float) 0.08); }
  7. It is necessary that when a player breaks the gravel with a stick in his hand, for example, dirt also drops. I tried to write the necessary code myself, but nothing works, and I need an example.
  8. I wrote this code, but test_item don't drops when i break a gravel with a stick in mainhand. What's wrong? if ((event.getState().getBlock() instanceof BlockGravel)) { if (event.getHarvester() != null) { ItemStack tool = event.getHarvester().getHeldItemMainhand(); ItemStack item = new ItemStack(Items.STICK); if (tool == item) { event.getDrops().add(new ItemStack(ItemList.test_item, 1)); event.setDropChance((float) 0.8); } } }
  9. I do not understand anything but ok ?. As they say in russian 'Них#я не понял, но очень интересно'
  10. And that's working. Thank you very much
  11. but my english "has a mistake"?
  12. it means, that line "IBlockState blockState = event.getState().getBlockState();" has no mistake?

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.