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.

Darkrider000

Members
  • Joined

  1. So my goal is to make a item that can random into other item that I made when player rightclick on it So I create class (which is item) that have random generator of with list of item (it also other item that I made) I want it to become by using int rand = generator.nextInt then I try to code when player rightclick on item it will start doing random then pick a item from "rand" then put in player inventory public void onItemRightClick(World worldIn, PlayerEntity player, Hand handIn) but after this code I stuck because I don't know which code or how should I use I try using player.addItemtoInventory or dropItem which seem to require ItemStack in () instead, so I try create new class and put same rand code in it, but it seem to can only pick one of item instead of full of item list to do random so I have no idea anymore what I supported to do I need really advice on this ps. my reference also 1.12.2 version so I encounter lot of problem even if try to copy it as well
  2. When I try to download it say it can't reach this page and ask if it the right address for https://adfoc.us I can't download any version at all, what do I need to do to download the forge?

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.