Skip to content

End result - how to use #2

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
AJman14 opened this issue Jan 20, 2025 · 3 comments
Closed

End result - how to use #2

AJman14 opened this issue Jan 20, 2025 · 3 comments

Comments

@AJman14
Copy link

AJman14 commented Jan 20, 2025

You may consider adding a "How to use your custom model" section.

Would be useful to have an example /give command:
/give AJman14 iron_nugget[minecraft:custom_model_data={strings:['uno_reverse']}]

And explain how to apply it to a custom recipe result:

"result": {
    "id": "minecraft:iron_nugget",
    "components": {
        "minecraft:custom_model_data": {
            "strings": [
                "uno_reverse"
            ]
        }
    }
}

...just a thought. It took me a while to figure out the custom recipe bit in 1.21.4.

@RhythmicSys
Copy link
Member

Ah yeah, that's a good idea, thanks

@AJman14
Copy link
Author

AJman14 commented Jan 21, 2025

No problem! Thank you so much for the tutorial; it helped a ton! (including the example pack)

There are very few resources/tutorials available yet for 1.21.4.

I created a datapack to make the invisible item frame craftable - which is available in vanilla behind an NBT tag - and used your tutorial to create a model (texture) for it! 😁

It's an absolute must-have for decorating, now available in survival!

{
    "type": "minecraft:crafting_shapeless",
    "category": "misc",
    "ingredients": [
        "minecraft:item_frame",
        "minecraft:glass_pane"
    ],
    "result": {
        "id": "minecraft:item_frame",
        "components": {
            "item_name": "[{'text':'Invisible Item Frame'}]",
            "rarity" : "common",
            "lore": [
                "{'text':'Invisible when placed!'}"
            ],
            "minecraft:entity_data": {
                "id": "minecraft:item_frame",
                "Invisible": 1
            },
            "minecraft:custom_model_data": {
                "strings": [
                    "invisible"
                ]
            },
            "minecraft:enchantment_glint_override": true
        }
    }
}

(I used the enchantment glint to help those that don't have the resourcepack for the model)

@RhythmicSys
Copy link
Member

Cool, should be added now, the tutorial is also adjusted quite heavily for the new system now that I've had longer to figure it out :3

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants