Skip to content

Commit

Permalink
Update resource pack to 1.21.4
Browse files Browse the repository at this point in the history
Empty textures are a problem, may resort to copying in default textures if I can't figure it out.
  • Loading branch information
Jikoo committed Dec 8, 2024
1 parent d71a030 commit 1ef0183
Show file tree
Hide file tree
Showing 25 changed files with 817 additions and 414 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,7 @@

public final class Placeholders {

// TODO see if this can be converted to a string, i.e. openinv:custom etc.
private static final CustomModelData DEFAULT_CUSTOM_MODEL_DATA = new CustomModelData(List.of(9999.0F), List.of(), List.of(), List.of());
private static final CustomModelData DEFAULT_CUSTOM_MODEL_DATA = new CustomModelData(List.of(), List.of(), List.of("openinv:custom"), List.of());
public static final @NotNull EnumMap<GameType, ItemStack> BLOCKED_GAME_TYPE = new EnumMap<>(GameType.class);
public static @NotNull ItemStack craftingOutput = defaultCraftingOutput();
public static @NotNull ItemStack cursor = defaultCursor();
Expand Down
19 changes: 19 additions & 0 deletions resource-pack/assets/minecraft/items/crafting_table.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
{
"model": {
"type": "minecraft:select",
"cases": [
{
"model": {
"type": "minecraft:model",
"model": "openinv:item/crafting_output"
},
"when": "openinv:custom"
}
],
"fallback": {
"type": "minecraft:model",
"model": "minecraft:block/crafting_table"
},
"property": "minecraft:custom_model_data"
}
}
19 changes: 19 additions & 0 deletions resource-pack/assets/minecraft/items/dropper.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
{
"model": {
"type": "minecraft:select",
"cases": [
{
"model": {
"type": "minecraft:model",
"model": "openinv:item/drop"
},
"when": "openinv:custom"
}
],
"fallback": {
"type": "minecraft:model",
"model": "minecraft:block/dropper"
},
"property": "minecraft:custom_model_data"
}
}
174 changes: 174 additions & 0 deletions resource-pack/assets/minecraft/items/leather_boots.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,174 @@
{
"model": {
"type": "minecraft:select",
"cases": [
{
"model": {
"type": "minecraft:model",
"model": "openinv:item/empty_boots"
},
"when": "openinv:custom"
}
],
"fallback": {
"type": "minecraft:select",
"cases": [
{
"model": {
"type": "minecraft:model",
"model": "minecraft:item/leather_boots_quartz_trim",
"tints": [
{
"type": "minecraft:dye",
"default": -6265536
}
]
},
"when": "minecraft:quartz"
},
{
"model": {
"type": "minecraft:model",
"model": "minecraft:item/leather_boots_iron_trim",
"tints": [
{
"type": "minecraft:dye",
"default": -6265536
}
]
},
"when": "minecraft:iron"
},
{
"model": {
"type": "minecraft:model",
"model": "minecraft:item/leather_boots_netherite_trim",
"tints": [
{
"type": "minecraft:dye",
"default": -6265536
}
]
},
"when": "minecraft:netherite"
},
{
"model": {
"type": "minecraft:model",
"model": "minecraft:item/leather_boots_redstone_trim",
"tints": [
{
"type": "minecraft:dye",
"default": -6265536
}
]
},
"when": "minecraft:redstone"
},
{
"model": {
"type": "minecraft:model",
"model": "minecraft:item/leather_boots_copper_trim",
"tints": [
{
"type": "minecraft:dye",
"default": -6265536
}
]
},
"when": "minecraft:copper"
},
{
"model": {
"type": "minecraft:model",
"model": "minecraft:item/leather_boots_gold_trim",
"tints": [
{
"type": "minecraft:dye",
"default": -6265536
}
]
},
"when": "minecraft:gold"
},
{
"model": {
"type": "minecraft:model",
"model": "minecraft:item/leather_boots_emerald_trim",
"tints": [
{
"type": "minecraft:dye",
"default": -6265536
}
]
},
"when": "minecraft:emerald"
},
{
"model": {
"type": "minecraft:model",
"model": "minecraft:item/leather_boots_diamond_trim",
"tints": [
{
"type": "minecraft:dye",
"default": -6265536
}
]
},
"when": "minecraft:diamond"
},
{
"model": {
"type": "minecraft:model",
"model": "minecraft:item/leather_boots_lapis_trim",
"tints": [
{
"type": "minecraft:dye",
"default": -6265536
}
]
},
"when": "minecraft:lapis"
},
{
"model": {
"type": "minecraft:model",
"model": "minecraft:item/leather_boots_amethyst_trim",
"tints": [
{
"type": "minecraft:dye",
"default": -6265536
}
]
},
"when": "minecraft:amethyst"
},
{
"model": {
"type": "minecraft:model",
"model": "minecraft:item/leather_boots_resin_trim",
"tints": [
{
"type": "minecraft:dye",
"default": -6265536
}
]
},
"when": "minecraft:resin"
}
],
"fallback": {
"type": "minecraft:model",
"model": "minecraft:item/leather_boots",
"tints": [
{
"type": "minecraft:dye",
"default": -6265536
}
]
},
"property": "minecraft:trim_material"
},
"property": "minecraft:custom_model_data"
}
}
174 changes: 174 additions & 0 deletions resource-pack/assets/minecraft/items/leather_chestplate.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,174 @@
{
"model": {
"type": "minecraft:select",
"cases": [
{
"model": {
"type": "minecraft:model",
"model": "openinv:item/empty_chestplate"
},
"when": "openinv:custom"
}
],
"fallback": {
"type": "minecraft:select",
"cases": [
{
"model": {
"type": "minecraft:model",
"model": "minecraft:item/leather_chestplate_quartz_trim",
"tints": [
{
"type": "minecraft:dye",
"default": -6265536
}
]
},
"when": "minecraft:quartz"
},
{
"model": {
"type": "minecraft:model",
"model": "minecraft:item/leather_chestplate_iron_trim",
"tints": [
{
"type": "minecraft:dye",
"default": -6265536
}
]
},
"when": "minecraft:iron"
},
{
"model": {
"type": "minecraft:model",
"model": "minecraft:item/leather_chestplate_netherite_trim",
"tints": [
{
"type": "minecraft:dye",
"default": -6265536
}
]
},
"when": "minecraft:netherite"
},
{
"model": {
"type": "minecraft:model",
"model": "minecraft:item/leather_chestplate_redstone_trim",
"tints": [
{
"type": "minecraft:dye",
"default": -6265536
}
]
},
"when": "minecraft:redstone"
},
{
"model": {
"type": "minecraft:model",
"model": "minecraft:item/leather_chestplate_copper_trim",
"tints": [
{
"type": "minecraft:dye",
"default": -6265536
}
]
},
"when": "minecraft:copper"
},
{
"model": {
"type": "minecraft:model",
"model": "minecraft:item/leather_chestplate_gold_trim",
"tints": [
{
"type": "minecraft:dye",
"default": -6265536
}
]
},
"when": "minecraft:gold"
},
{
"model": {
"type": "minecraft:model",
"model": "minecraft:item/leather_chestplate_emerald_trim",
"tints": [
{
"type": "minecraft:dye",
"default": -6265536
}
]
},
"when": "minecraft:emerald"
},
{
"model": {
"type": "minecraft:model",
"model": "minecraft:item/leather_chestplate_diamond_trim",
"tints": [
{
"type": "minecraft:dye",
"default": -6265536
}
]
},
"when": "minecraft:diamond"
},
{
"model": {
"type": "minecraft:model",
"model": "minecraft:item/leather_chestplate_lapis_trim",
"tints": [
{
"type": "minecraft:dye",
"default": -6265536
}
]
},
"when": "minecraft:lapis"
},
{
"model": {
"type": "minecraft:model",
"model": "minecraft:item/leather_chestplate_amethyst_trim",
"tints": [
{
"type": "minecraft:dye",
"default": -6265536
}
]
},
"when": "minecraft:amethyst"
},
{
"model": {
"type": "minecraft:model",
"model": "minecraft:item/leather_chestplate_resin_trim",
"tints": [
{
"type": "minecraft:dye",
"default": -6265536
}
]
},
"when": "minecraft:resin"
}
],
"fallback": {
"type": "minecraft:model",
"model": "minecraft:item/leather_chestplate",
"tints": [
{
"type": "minecraft:dye",
"default": -6265536
}
]
},
"property": "minecraft:trim_material"
},
"property": "minecraft:custom_model_data"
}
}
Loading

0 comments on commit 1ef0183

Please sign in to comment.