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.

Wintersky20

Members
  • Joined

  • Last visited

Everything posted by Wintersky20

  1. You are right ! @SubscribeEvent public static void breakSpeed(PlayerEvent.BreakSpeed event) { PlayerEntity player = event.getPlayer(); if (player != null && !(player instanceof FakePlayer) && !player.isCreative()) { ItemStack stack = player.getHeldItemMainhand(); Material state = event.getState().getMaterial(); if (stack.isEmpty() && state == Material.WOOD) { event.setNewSpeed(0); } } } I changed that with stack.isEmpty(), bust is still not working! By the way , thanks for the fast replaye !
  2. 1) You have to use an @SubscribeEvent for this 2) You have to access the ResourceLocation of the recipe 3) Then delete the recipe using ResourceLocation ,event and vanilla recipe string like : "minecraft:bookshelf"
  3. Hello.. I need some help with Break Speed Event . I want to make wood material blocks break only with tools @Mod.EventBusSubscriber(bus=Mod.EventBusSubscriber.Bus.MOD) public class MaterialWoodBreaking { @SubscribeEvent public static void breakSpeed(PlayerEvent.BreakSpeed event) { PlayerEntity player = event.getPlayer(); if (player != null && !(player instanceof FakePlayer) && !player.isCreative()) { ItemStack stack = player.getHeldItemMainhand(); Material state = event.getState().getMaterial(); if (stack == null && state == Material.WOOD) { event.setNewSpeed(0); } } } } Thanks for all replies to this post!
  4. Hello guys ! I need a simple 3x3 mining method ! Any idea ?
  5. I have some problems with "creation of tools" ! One of the problems that I have with my tool is this : -> I can't enchnat the item in the enchanting table only in a anvil ->I can't brake the crafting table with this tool ( I mean , I can , but is taking me a long time to do ths) -> And if i try to switch the extension with a ItemAxe , the i can't break redstone ores and obsidean ! Some help please !! And sorry for my bad English

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.