Skip to content

Commit

Permalink
Initial commit
Browse files Browse the repository at this point in the history
  • Loading branch information
OpenBagTwo committed Jun 19, 2022
1 parent 5d110f4 commit 6999adc
Show file tree
Hide file tree
Showing 11 changed files with 282,243 additions and 0 deletions.
78 changes: 78 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,78 @@
# OpenBagTwo's Custom Items

This is a **resourcepack** that adds custom items to the game without replacing the original items.

It requires no mods and no datapacks (though I strongly recommend adding
[the Armor Statues Datapack](https://vanillatweaks.net/picker/datapacks/)
to your world)
and should be broadly compatible across most versions of Java minecraft.

The limitation is that **these are items** and as such, if you place them, they will lose all their NBT
data and return to their default appearances.

The sections below list the commands to give yourself each custom item.

To display these items around your world, you have a few options. The first and most obvious is to
**place them in an item frame.** You can then turn the item frame invisible using commands (with
Armor Statues installed this is literally just `/trigger if_invisble`). Another option is to **give
your item to an armor stand**, either to wear (if the item is a carved pumpkin) or to hold in their
main hand / off-hand (you'll first need to use commands or the Armor Statues book to get an armor
stand with arms). From there, item frames can also be turned invisible using commands or the Armor
Statues book. Finally, any items that replace carved pumpkins can be **dispensed onto a mob's head**.

## Available Items

### Cursed Goomba (HIM)

Replaces: Carved Pumpkin (wearable)

Custom Data Slot: 1

Command to Obtain: `/give @s minecraft:carved_pumpkin{CustomModelData:1}`

### Little Cursed Goomba (Mini-Him)

Replaces: Brown Mushroom

Custom Data Slot: 1

Command to Obtain: `/give @s minecraft:brown-mushroom{CustomModelData:1}`

### Oddish

Replaces: Grass

Custom Data Slot: 1

Command to Obtain: `/give @s minecraft:grass{CustomModelData:1}`

## Credits and Acknowledgements

The Cursed Goomba model is courtesy of [Alesan99](https://github.com/alesan99/mari0_ae).

All models were baked in [Blender](https://www.blender.org/) and converted using
[voxelizer](https://drububu.com/miscellaneous/voxelizer). Several were additionally
edited using [Blockbench](https://www.blockbench.net/).

The resource pack structure was modeled after a template created by
[CraisinLord](https://www.youtube.com/channel/UC30GyQ6HFJuZRJdFMiy8N-A)
and demoed in [this video](https://www.youtube.com/watch?v=dtcZhtZ0PqI).

Many thanks to the creators of
[this `/give` command generator](https://www.mapmaking.fr/give1.16/) as
I was trying to suss out the correct syntax.

Some other tutorials that were instrumental in the development of this datapack:
- [How To Make CUSTOM HATS in Minecraft! Pt.1 - YouTube](https://www.youtube.com/watch?v=YBZbQGNxf18)
- [Bake Multiple Materials to One Texture Map (Blender Tutorial) - YouTube](https://www.youtube.com/watch?v=wG6ON8wZYLc)
- [How to bake textures in Blender - Artisticrender.com](https://artisticrender.com/how-to-bake-textures-in-blender/) --
an honest-to-God _written guide!_

## License

This resourcepack and its contents--including model assets and textures--are licensed by me
under [GPLv3](https://www.gnu.org/licenses/gpl-3.0.en.html). If you require a more permissive
license, I recommend making your own pack and assets using the templates, programs and
tutorials linked above.


13 changes: 13 additions & 0 deletions assets/minecraft/models/item/brown_mushroom.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
{
"parent": "minecraft:item/generated",
"textures": {
"layer0": "minecraft:block/brown_mushroom"
},
"overrides": [
{
"predicate": {"custom_model_data": 1},
"model": "item/custom/mini_him_65x65x64"
}
]
}

8 changes: 8 additions & 0 deletions assets/minecraft/models/item/carved_pumpkin.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
{
"parent": "minecraft:block/carved_pumpkin",

"overrides": [
{"predicate": {"custom_model_data": 1}, "model": "item/custom/him_65x65x64"}
]
}

Loading

0 comments on commit 6999adc

Please sign in to comment.