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.

titanknox

Members
  • Joined

  • Last visited

Everything posted by titanknox

  1. This event would be called something along the lines of ItemTakeEvent, and is fired when the player tries to click on an item to move it to a different slot. It should be cancellable, and should pass the EntityPlayer and the ItemStack. I already made a fork and implemented the feature, but when I made a pull request I was notified that the way I did it would probably hinder with some mods' functions. Here is an example showing how one might use the new Event: public class FilterEventHandler { @SubscribeEvent public void onItemTake(ItemTakeEvent event) { // Stop the player from being allowed to acquire TNT through an inventory. if (event.getItemStack().getItem().getRegistryName().toString().equals("minecraft:tnt")) { event.setCanceled(true); } } } The reason I thought of this event because I am currently making a mod called InventoryFilter that allows you to write a list of regular expressions. All items that would go into your inventory are compared against this filter either as a whitelist or blacklist. I already have item pickups filtered, but when trying to filter taking items from inventories, I found out there was no event readily made for that. Hope this can be implemented!

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.