9
0
mirror of https://github.com/Xiao-MoMi/craft-engine.git synced 2025-12-19 15:09:15 +00:00

fix templates

This commit is contained in:
XiaoMoMi
2025-03-17 16:45:56 +08:00
parent fba6358752
commit 28df27e9d6
3 changed files with 28 additions and 12 deletions

View File

@@ -135,7 +135,7 @@ repositories {
``` ```
```kotlin ```kotlin
dependencies { dependencies {
compileOnly("net.momirealms:craft-engine-core:0.0.29") compileOnly("net.momirealms:craft-engine-core:0.0.34")
compileOnly("net.momirealms:craft-engine-bukkit:0.0.29") compileOnly("net.momirealms:craft-engine-bukkit:0.0.34")
} }
``` ```

View File

@@ -314,12 +314,12 @@ recipes:
default:palm_planks: default:palm_planks:
template: default:recipe/planks template: default:recipe/planks
arguments: arguments:
tree_type: palm wood_type: palm
default:palm_wood: default:palm_wood:
template: default:recipe/log_2_wood template: default:recipe/log_2_wood
arguments: arguments:
tree_type: palm wood_type: palm
default:stripped_palm_wood: default:stripped_palm_wood:
template: default:recipe/log_2_wood template: default:recipe/log_2_wood
arguments: arguments:
tree_type: stripped_palm wood_type: stripped_palm

View File

@@ -92,6 +92,22 @@ templates#models#generated:
textures: textures:
"layer0": "{path}" "layer0": "{path}"
# shield
templates#models#shield:
# template: default:model/shield_3d
# arguments:
# model: shield_model_path
# block_model: shield_block_model_path
default:model/shield_3d:
type: "minecraft:condition"
property: "minecraft:using_item"
on-false:
type: minecraft:model
path: "{model}"
on-true:
type: minecraft:model
path: "{block_model}"
# fishing rods # fishing rods
templates#models#fishing_rod: templates#models#fishing_rod:
# template: default:model/fishing_rod_3d # template: default:model/fishing_rod_3d
@@ -305,7 +321,7 @@ templates#models#crossbow:
- when: arrow - when: arrow
model: model:
type: minecraft:model type: minecraft:model
path: "{arrow_path}" path: "{arrow_model}"
generation: generation:
parent: "minecraft:item/crossbow_arrow" parent: "minecraft:item/crossbow_arrow"
textures: textures:
@@ -320,7 +336,7 @@ templates#models#crossbow:
"layer0": "{firework_texture}" "layer0": "{firework_texture}"
fallback: fallback:
type: minecraft:model type: minecraft:model
path: "{path}" path: "{model}"
generation: generation:
parent: "minecraft:item/crossbow" parent: "minecraft:item/crossbow"
textures: textures:
@@ -339,7 +355,7 @@ templates#models#crossbow:
threshold: 0.58 threshold: 0.58
- model: - model:
type: minecraft:model type: minecraft:model
path: "{pulling_2_path}" path: "{pulling_2_model}"
generation: generation:
parent: "minecraft:item/crossbow_pulling_2" parent: "minecraft:item/crossbow_pulling_2"
textures: textures:
@@ -862,9 +878,9 @@ templates#recipes:
category: building category: building
group: planks group: planks
ingredients: ingredients:
A: "#default:{tree_type}_logs" A: "#default:{wood_type}_logs"
result: result:
id: "default:{tree_type}_planks" id: "default:{wood_type}_planks"
count: 4 count: 4
default:recipe/log_2_wood: default:recipe/log_2_wood:
type: shaped type: shaped
@@ -874,9 +890,9 @@ templates#recipes:
- "AA" - "AA"
- "AA" - "AA"
ingredients: ingredients:
A: "default:{tree_type}_log" A: "default:{wood_type}_log"
result: result:
id: "default:{tree_type}_wood" id: "default:{wood_type}_wood"
count: 3 count: 3
default:recipe/smelting_ore: default:recipe/smelting_ore:
type: smelting type: smelting