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.

Featured Replies

Posted

* I'M NOT TRYING TO MAKE THE PLAYER CRAFT A CUSTOM ITEM *

 

I want to create a mod where it crafts an item for the player (if they have the block obviously). How would I force the player to make an item (by id/name - i have the block stored). So for example how would I force this to make a snow block from snowballs.

By "craft" do you mean on a crafting table? For that you  could just create a custom recipe. Since you said "force" I think you meant that just by holding something it would "craft" into something else? In that case you would just check the ItemStack in the player's hand, compare it to the things you want to be ingredients and then replace it with the output of the "recipe".

 

Check out my tutorials here: http://jabelarminecraft.blogspot.com/

  • Author

Thats the part I don't understand. I'm perfectly capable of checking the inventory. I'm doing it on a command so they type /craft snowblock or something and it would craft it from the snow in their inventory

  • Author

The reason for this is I want it to work on servers. So i can't just remove and add different items etc.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

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.