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

hello! : )

for the last month I've been working on porting an old mod, Advanced Combat, to 1.16.5. just for my own personal game, not to reupload. I have gotten everything done, except for the recipes. the way recipes were made in the original mod was through code. I've tried out a few methods but nothing seemed to work.

https://pastebin.com/mERPVcnX & https://pastebin.com/0N8zvGNN

just for some context for my question, Advanced Combat has items called "upgrades". each upgrade represents a vanilla enchantment, and can be crafted to enchant items in the crafting table. some enchantments like protection has a normal and elite version that can enchant an item double its vanillas max level. (i.e. protection 1-4 and elite protection 5-8)

my question is how could I make a recipe for tools to be enchanted with these upgrades in the crafting table?

thank you!!

first of all, you know you can look at vanilla recipe json files? find the stone sword recipe and a pumpkin pie recipe, you shouldn't have problems making simple recipes based on those.

...or, there a few recipe generators online. drag and drop a few items and download a json file. (now serious modder wouldn't want to be seen using that, but don't worry about that)

the code you show creates recipes via Data Generator,
the code you show should create the recipes if:

  1. you replace the mod id in the args of the data run config for the output of the Generator in the build.gradle file with your mod id
  2. you run the data task

did you do these two things?
-> if yes post log
-> if not try it

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.