https://modrinth.com/mod/cobblemon-badgebox
Here is the modpage, the older version were on fabric because I made them on Mcreator but unfortunatly we cant do 1.21.1 Fabric mod yet
#Porting a really simple mod from NeoForge 1.21.1 to Fabric 1.21.1
72 messages · Page 1 of 1 (latest)
So here is the last version made for 1.21.1
My budget is not huge but it could still be a commision
this server doesnt support commissions. only free
You'll have to go elsewhere for that
I said it COULD
But I would love to be helped for free
This mod only add 1 item similar to a backpack
2 crafting recipes
It’s based on the badge box that we can see in the Pokémon anime/games
this is the complete mod on for NeoForge, could be a good base
the problem is that it's ARR and I don't see any source links so it would need to be made from scratch
although why couldn't you use an existing backpack mod and rename it?
i assume based on the name the "R" that is being "R"'d are being granted for porting by the person that holds those rights
Still looking for someone
Making a backpack is relatively easy yes, but making the items it contains unduplicateable is the complete opposite.
The only 100% reliable way I've seen is doing it through leveldata
unless the new item components are more reliable
Isn’t there a way to make that only one item fits per slots ?
That’s the goal of my mod
Just a badge box to put ONE badge per slot
yes, and lock the slot to specific badges
No not really because there is 18 badges for all the types so people can use whatever badges they want
ah, so not like pokemon badges
if nobody else picks this up, I can do it assuming you are the copyright owner. I'll likely re-use assets
Yes I’m the owner
I would be thankful
i forgot how annoying cobblemon is to develop against -_-
does cobblemon even have badges?
Nope not yet
That’s why I created that side mod
with my own badges
i mean, the mod description specifically says it just adds a badge box 😛
I'll add the items as well, just wanted to point out that the description was lacking
My bad it’s a new feature from the last update I should update it
-# Lin making a mod?
there is probably a bit of work left to do until its "production ready" but it gave me a chance to go through all the different parts of mod dev as a dev instead of as a helper person. decided to use architectury to allow the same code to build for neoforge and fabric just because (still in yarn mappings, mwahaha)
after running into some bugs in architectury in relation to their events and making some workarounds, its mostly usable and builds for both neoforge and fabric from the same code.
I also have a couple things set up to make transitions to later mc versions easier as well as a custom recipe type to ensure badges are copied to the upgraded box
I havent tested the artifacts github generated but https://github.com/Linguardium/BadgeBox/actions/runs/12522971012 you can see it here
have been alternating neo and fabric testing
Back from vacation. completely forgot what was left. have you had a chance to try it?
if you are logged into github, there should be a link to the artifact
Yes it works perfectly
Just have a question
Can you turn back « fancy badge box » to « badge box » but with gold rarity ?
The ribbon was not added. The badge box's ribbon slot is limited to those in the badgebox:ribbons item tag.
In case you decide you want to change names or add some things to the code:
data generation is in these classes
https://github.com/Linguardium/BadgeBox/tree/1.21.1/datagen/src/main/java/mod/linguardium/badgebox/datagen
running datagen is done by running
./gradlew datagen:runDataGen
from the main project folder and must be done if things are added/removed/changed in the datagen code (datagen folder)
building the mod is done by running
./gradlew build
note: if datagen changes were made, run datagen first.
adding items requires a few parts:
Creating the item
adding the item itself to https://github.com/Linguardium/BadgeBox/blob/1.21.1/common/src/main/java/mod/linguardium/badgebox/common/registration/ModItems.java
note: badges are made from a list there. adding things to the list will create more badges.
The Datagen stuff
Item model jsons are generated in https://github.com/Linguardium/BadgeBox/blob/1.21.1/datagen/src/main/java/mod/linguardium/badgebox/datagen/ModModelProvider.java
This is automatically done for badges
Item tags are registered in https://github.com/Linguardium/BadgeBox/blob/1.21.1/datagen/src/main/java/mod/linguardium/badgebox/datagen/ModTagProvider.java
badges are automatically added to the badgebox:badges tag
Recipes can be added in https://github.com/Linguardium/BadgeBox/blob/1.21.1/datagen/src/main/java/mod/linguardium/badgebox/datagen/ModRecipeProvider.java
only 2 recipes exist: the badge box and the badge box with ribbon slot (a special type of recipe that looks like a shaped recipe but uses a custom recipe type).
Translations are added in https://github.com/Linguardium/BadgeBox/blob/1.21.1/datagen/src/main/java/mod/linguardium/badgebox/datagen/ModLangProvider.java
Nothing is automatic here. This is for en_us only. other language can be added but requires a little java knowledge
https://github.com/Linguardium/BadgeBox/actions/runs/12604750148
the badge box rename and rarity change is here ^^
(the fun part is that basically the entire mod except datagen is in common, so you can build for both neo and fabric using the same code)
Wow
That’s kind of insane to me
Hi ! I'm sorry to bother you after such a long time,
I've been able to add the rest of the badges, but I have some problems...
Also i dont know how to add the master ribbon by myself could you help with that ?
I just need to add a single item with the name badgebox:master_ribbon with the lore "A testament to your unrivaled might among legends, a symbol that you stand above all, the ultimate proof that you are the very best, like no one ever was"
this is the problem I'm facing when trying to add the badges
at least the tag works, because I can put the in the badgebox
@violet bolt (sorry for the ping)
so after adding the badges to the badge list in ModItems, and the language translations to the ModLangProvider file, you would need to run the datagen gradle task ./gradlew datagen:runDataGen
this should regenerate the files in src/main/generated automatically
then you can test it by using ./gradlew runClient (if you arent using a development tool like vscode or intellij) and make the jar file with ./gradlew build
how do you obtain the master ribbon?
still only in creative
btw tysm for your fast reply
also, where do I run those commands ? I never used gradle before
from a command prompt thats running from the project's folder
or a terminal, or powershell
i dont have time at the moment but can do that this evening (its early morning now)
dont worry ! I'm already so grateful that you help me that much