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.

UM3 F0R TH3 W1N

Members
  • Joined

  • Last visited

Everything posted by UM3 F0R TH3 W1N

  1. so like this: MinecraftForge.EVENT_BUS.register(SeedsFromGrassEvent.class);
  2. alright, thanks soo much for the help, sorry for me being a noob but I've got the hang of it now, i'm currently in the process of testing it and im hoping it works, however don't I need to call this method in my main class or something
  3. so, this works: package com.turtywurty.minecraftmadness.events.seeds; import net.minecraftforge.event.world.BlockEvent.HarvestDropsEvent; import net.minecraftforge.fml.common.eventhandler.SubscribeEvent; public class SeedsFromGrassEvent { @SubscribeEvent public void getSeedsFromGrass(HarvestDropsEvent event) { event.getDrops(); } } so what do I do now, we're getting somewhere now lol
  4. //but HarvestDropEvents h = new HarvestDropEvents(); h.getDrops(); //doesn't work either
  5. a bit but as I said, I took a break, so ive forgotten a lot of it also: HarvestDropsEvent.getDrops(); doesn't work either
  6. package com.turtywurty.minecraftmadness.events.seeds; import java.util.List; import net.minecraft.item.ItemStack; import net.minecraftforge.event.world.BlockEvent; import net.minecraftforge.event.world.BlockEvent.HarvestDropsEvent; import net.minecraftforge.fml.common.eventhandler.SubscribeEvent; public class SeedsFromGrassEvent { @SubscribeEvent public void getSeedsFromGrass(HarvestDropsEvent event) { getDrops(); } } but getDrops(); has an error saying that I need to create the method
  7. package com.turtywurty.minecraftmadness.events.seeds; import java.util.List; import net.minecraft.item.ItemStack; import net.minecraftforge.event.world.BlockEvent; import net.minecraftforge.event.world.BlockEvent.HarvestDropsEvent; import net.minecraftforge.fml.common.eventhandler.SubscribeEvent; public class SeedsFromGrassEvent { public final List<ItemStack> drops; @SubscribeEvent public void getSeedsFromGrass(HarvestDropsEvent event) { } public List<ItemStack> getDrops() { return drops; } }
  8. so I need to create a method called getDrops()?
  9. and theres no methods that it lets me use
  10. that's my package name not my domain name, I use it for all my mods but ok
  11. so what do I need to put inside of my Event class? this is what I currently have: package com.turtywurty.minecraftmadness.events.seeds; import net.minecraftforge.event.world.BlockEvent; import net.minecraftforge.event.world.BlockEvent.HarvestDropsEvent; import net.minecraftforge.fml.common.eventhandler.SubscribeEvent; public class SeedsFromGrassEvent { @SubscribeEvent public void getSeedsFromGrass(HarvestDropsEvent event) { } }
  12. this may sound stupid, but can you remind me of how to do that pls lol, ive took a break from programming and just got back into it, so ive forgotten a lot
  13. Hello fellow modders, I have made some seeds for my crop and I wanted to know how I can get these seeds to be dropped from grass! I know this is possible as I have seen it done before however I am clueless of how it is done. Can anyone help me doing this as I would love to have this in my mod. Many thanks in advance!
  14. ik this post might be totally dead now but I still haven't managed to do it so help would be highly appreciated
  15. Hey fellow modders, this is probs an easy one but I have some ores in my mod that contain meta and I want them to be able to be smelted. how can I make the recipe?

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.