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 am new to modding and im trying to make a furnace recipe where if u input one ruby ore into a furnace, you yield 2 rubies. I tried doing a count function but it did not work. Any help?

 

My code:

{
  "type": "minecraft:blasting",
  "ingredient": {
    "item": "examplemod:ruby_ore"
  },
  "result": "examplemod:ruby",
  "count": 2,
  "experience": 0.5,
  "cookingtime": 50
}
12 minutes ago, 20ChenM said:

I tried doing a count function but it did not work

It's not a function, just a key-value pair. Also, result would need to be an object where you specify the item name and count for it to work.

  • Author

so, how do i fix it? I am new to modding so I need you to do a step by step guide

Edited by 20ChenM

14 minutes ago, 20ChenM said:

I am new to modding so I need you to do a step by step guide

I didn't tell you anything related to modding, I told you something related to json objects. Reliance on a guide to do the work for you will not solve your problem.

 

I'll give a more clear answer though. The 'result' key is attached to a json object. You can specify the name of the item using the 'item' key and the count with the 'count' key inside this json object.

  • Author
so like this?

{
  "type": "minecraft:smelting",
  "ingredient": {
    "item": "examplemod:ruby_ore"
  },
  "result": {
    "item":  "examplemod:ruby",
    "count": 2
  },
  "experience": 0.2,
  "cookingtime": 50
}

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.