9
0
mirror of https://github.com/Xiao-MoMi/craft-engine.git synced 2026-01-04 15:41:38 +00:00

refactor default configs

This commit is contained in:
XiaoMoMi
2025-03-17 05:09:21 +08:00
parent f24131e7da
commit c73ad94242
8 changed files with 759 additions and 413 deletions

View File

@@ -13,29 +13,23 @@ items:
type: block_item
block:
loot:
template: loot_table:normal
template: "default:loot_table/basic"
arguments:
item: default:chinese_lantern
settings:
hardness: 0.5
resistance: 0.5
push-reaction: NORMAL
replaceable: false
burnable: true
burn-chance: 30
fire-spread-chance: 100
is-redstone-conductor: true
is-suffocating: false
instrument: HARP
luminance: 15
map-color: 36
item: default:chinese_lantern
sounds:
break: minecraft:block.wood.break
step: minecraft:block.wood.step
place: minecraft:block.wood.place
hit: minecraft:block.wood.hit
fall: minecraft:block.wood.fall
template:
- default:hardness/wool
- default:burn_data/planks
- default:sound/wood
overrides:
push-reaction: NORMAL
replaceable: false
is-redstone-conductor: true
is-suffocating: false
instrument: HARP
luminance: 15
map-color: 36
item: default:chinese_lantern
state:
id: 15
state: note_block:15

View File

@@ -5,31 +5,24 @@ items:
data:
item-name: "<!i><i18n:item.fairy_flower>"
model:
type: "minecraft:model"
path: "minecraft:item/custom/fairy_flower"
generation:
parent: "minecraft:item/generated"
textures:
"layer0": "minecraft:item/custom/fairy_flower"
template: default:model/simplified_generated
arguments:
path: "minecraft:item/custom/fairy_flower"
behavior:
type: block_item
block: default:fairy_flower
blocks:
default:fairy_flower:
settings:
template: block_settings:surface_decoration
template:
- default:hardness/none
- default:sound/grass
overrides:
item: default:fairy_flower
sounds:
break: minecraft:block.grass.break
step: minecraft:block.grass.step
place: minecraft:block.grass.place
hit: minecraft:block.grass.hit
fall: minecraft:block.grass.fall
behavior:
type: bush_block
loot:
template: loot_table:normal
template: "default:loot_table/basic"
arguments:
item: default:fairy_flower
state:

View File

@@ -42,7 +42,7 @@ items:
seats:
- 1,0,-0.1 0
loot:
template: loot_table:normal
template: "default:loot_table/basic"
arguments:
item: default:bench
default:table_lamp:
@@ -86,7 +86,7 @@ items:
height: 0.4
interactive: true
loot:
template: loot_table:normal
template: "default:loot_table/basic"
arguments:
item: default:table_lamp
default:wooden_chair:
@@ -123,6 +123,6 @@ items:
seats:
- 0,0,-0.1 0
loot:
template: loot_table:normal
template: "default:loot_table/basic"
arguments:
item: default:wooden_chair

View File

@@ -9,12 +9,10 @@ items:
item-name: "<!i><#FF8C00><i18n:item.topaz_rod>"
tooltip-style: minecraft:topaz
model:
template: models:fishing_rod_2d
template: default:model/simplified_fishing_rod_2d
arguments:
rod_model: minecraft:item/custom/topaz_rod
rod_texture: minecraft:item/custom/topaz_rod
rod_cast_model: minecraft:item/custom/topaz_rod_cast
rod_cast_texture: minecraft:item/custom/topaz_rod_cast
path: minecraft:item/custom/topaz_rod
cast_path: minecraft:item/custom/topaz_rod_cast
default:topaz_bow:
material: bow
custom-model-data: 1000
@@ -25,16 +23,12 @@ items:
item-name: "<!i><#FF8C00><i18n:item.topaz_bow>"
tooltip-style: minecraft:topaz
model:
template: models:bow_2d
template: default:model/simplified_bow_2d
arguments:
bow_model: minecraft:item/custom/topaz_bow
bow_texture: minecraft:item/custom/topaz_bow
bow_pulling_0_model: minecraft:item/custom/topaz_bow_pulling_0
bow_pulling_0_texture: minecraft:item/custom/topaz_bow_pulling_0
bow_pulling_1_model: minecraft:item/custom/topaz_bow_pulling_1
bow_pulling_1_texture: minecraft:item/custom/topaz_bow_pulling_1
bow_pulling_2_model: minecraft:item/custom/topaz_bow_pulling_2
bow_pulling_2_texture: minecraft:item/custom/topaz_bow_pulling_2
path: minecraft:item/custom/topaz_bow
pulling_0_path: minecraft:item/custom/topaz_bow_pulling_0
pulling_1_path: minecraft:item/custom/topaz_bow_pulling_1
pulling_2_path: minecraft:item/custom/topaz_bow_pulling_2
default:topaz_crossbow:
material: crossbow
custom-model-data: 1000
@@ -45,20 +39,14 @@ items:
item-name: "<!i><#FF8C00><i18n:item.topaz_crossbow>"
tooltip-style: minecraft:topaz
model:
template: models:crossbow_2d
template: default:model/simplified_crossbow_2d
arguments:
crossbow_model: minecraft:item/custom/topaz_crossbow
crossbow_texture: minecraft:item/custom/topaz_crossbow
crossbow_pulling_0_model: minecraft:item/custom/topaz_crossbow_pulling_0
crossbow_pulling_0_texture: minecraft:item/custom/topaz_crossbow_pulling_0
crossbow_pulling_1_model: minecraft:item/custom/topaz_crossbow_pulling_1
crossbow_pulling_1_texture: minecraft:item/custom/topaz_crossbow_pulling_1
crossbow_pulling_2_model: minecraft:item/custom/topaz_crossbow_pulling_2
crossbow_pulling_2_texture: minecraft:item/custom/topaz_crossbow_pulling_2
crossbow_arrow_texture: minecraft:item/custom/topaz_crossbow_arrow
crossbow_arrow_model: minecraft:item/custom/topaz_crossbow_arrow
crossbow_firework_texture: minecraft:item/custom/topaz_crossbow_firework
crossbow_firework_model: minecraft:item/custom/topaz_crossbow_firework
path: minecraft:item/custom/topaz_crossbow
pulling_0_path: minecraft:item/custom/topaz_crossbow_pulling_0
pulling_1_path: minecraft:item/custom/topaz_crossbow_pulling_1
pulling_2_path: minecraft:item/custom/topaz_crossbow_pulling_2
arrow_path: minecraft:item/custom/topaz_crossbow_arrow
firework_path: minecraft:item/custom/topaz_crossbow_firework
default:topaz_pickaxe:
material: golden_pickaxe
custom-model-data: 1000
@@ -71,12 +59,9 @@ items:
components:
minecraft:max_damage: 64
model:
type: minecraft:model
path: minecraft:item/custom/topaz_pickaxe
generation:
parent: "minecraft:item/handheld"
textures:
"layer0": "minecraft:item/custom/topaz_pickaxe"
template: default:model/simplified_handheld
arguments:
path: "minecraft:item/custom/topaz_pickaxe"
default:topaz_axe:
material: golden_axe
custom-model-data: 1000
@@ -89,12 +74,9 @@ items:
components:
minecraft:max_damage: 64
model:
type: minecraft:model
path: minecraft:item/custom/topaz_axe
generation:
parent: "minecraft:item/handheld"
textures:
"layer0": "minecraft:item/custom/topaz_axe"
template: default:model/simplified_handheld
arguments:
path: "minecraft:item/custom/topaz_axe"
default:topaz_hoe:
material: golden_hoe
custom-model-data: 1000
@@ -107,12 +89,9 @@ items:
components:
minecraft:max_damage: 64
model:
type: minecraft:model
path: minecraft:item/custom/topaz_hoe
generation:
parent: "minecraft:item/handheld"
textures:
"layer0": "minecraft:item/custom/topaz_hoe"
template: default:model/simplified_handheld
arguments:
path: "minecraft:item/custom/topaz_hoe"
default:topaz_shovel:
material: golden_shovel
custom-model-data: 1000
@@ -125,12 +104,9 @@ items:
components:
minecraft:max_damage: 64
model:
type: minecraft:model
path: minecraft:item/custom/topaz_shovel
generation:
parent: "minecraft:item/handheld"
textures:
"layer0": "minecraft:item/custom/topaz_shovel"
template: default:model/simplified_handheld
arguments:
path: "minecraft:item/custom/topaz_shovel"
default:topaz_sword:
material: golden_sword
custom-model-data: 1000
@@ -143,35 +119,32 @@ items:
components:
minecraft:max_damage: 64
model:
type: minecraft:model
path: minecraft:item/custom/topaz_sword
generation:
parent: "minecraft:item/handheld"
textures:
"layer0": "minecraft:item/custom/topaz_sword"
template: default:model/simplified_handheld
arguments:
path: "minecraft:item/custom/topaz_sword"
default:topaz_helmet:
template: default:topaz_armor
template: default:armor/topaz
arguments:
part: helmet
slot: head
default:topaz_chestplate:
template: default:topaz_armor
template: default:armor/topaz
arguments:
part: chestplate
slot: chest
default:topaz_leggings:
template: default:topaz_armor
template: default:armor/topaz
arguments:
part: leggings
slot: legs
default:topaz_boots:
template: default:topaz_armor
template: default:armor/topaz
arguments:
part: boots
slot: feet
templates:
default:topaz_armor:
default:armor/topaz:
material: "chainmail_{part}"
custom-model-data: 1000
data:

View File

@@ -36,97 +36,76 @@ items:
data:
item-name: "<!i><#FF8C00><i18n:item.topaz>"
model:
template: models:generated
template: "default:model/simplified_generated"
arguments:
model_path: "minecraft:item/custom/topaz"
texture_path: "minecraft:item/custom/topaz"
path: "minecraft:item/custom/topaz"
blocks:
default:topaz_ore:
loot:
template: loot_table:ore
template: "default:loot_table/ore"
arguments:
ore_drop: default:topaz
ore_block: default:topaz_ore
min_exp: 3
max_exp: 7
settings:
template:
- block_settings:ore
- block_settings:pickaxe_level_2
template: "default:settings/ore"
overrides:
item: default:topaz_ore
arguments:
break_power: 2
state:
id: 13
state: note_block:13
model:
path: "minecraft:block/custom/topaz_ore"
generation:
parent: "minecraft:block/cube_all"
textures:
"all": "minecraft:block/custom/topaz_ore"
template: "default:model/simplified_cube_all"
arguments:
path: "minecraft:block/custom/topaz_ore"
default:deepslate_topaz_ore:
loot:
template: loot_table:ore
template: "default:loot_table/ore"
arguments:
ore_drop: default:topaz
ore_block: default:deepslate_topaz_ore
min_exp: 3
max_exp: 7
settings:
template:
- block_settings:deepslate_ore
- block_settings:pickaxe_level_2
template: "default:settings/deepslate_ore"
overrides:
item: default:deepslate_topaz_ore
arguments:
break_power: 2
state:
id: 14
state: note_block:14
model:
path: "minecraft:block/custom/deepslate_topaz_ore"
generation:
parent: "minecraft:block/cube_all"
textures:
"all": "minecraft:block/custom/deepslate_topaz_ore"
template: "default:model/simplified_cube_all"
arguments:
path: "minecraft:block/custom/deepslate_topaz_ore"
recipes:
default:topaz_from_smelting_topaz_ore:
type: smelting
experience: 1.0
category: misc
group: topaz
time: 200
ingredient: "default:topaz_ore"
result:
id: default:topaz
count: 1
template: default:recipe/smelting_ore
arguments:
exp: 1.0
ingredient: "default:topaz_ore"
result: "default:topaz"
default:topaz_from_smelting_deepslate_topaz_ore:
type: smelting
experience: 1.0
category: misc
group: topaz
time: 200
ingredient: "default:deepslate_topaz_ore"
result:
id: default:topaz
count: 1
template: default:recipe/smelting_ore
arguments:
exp: 1.0
ingredient: "default:deepslate_topaz_ore"
result: "default:topaz"
default:topaz_from_blasting_topaz_ore:
type: blasting
experience: 1.0
category: misc
group: topaz
time: 100
ingredient: "default:topaz_ore"
result:
id: default:topaz
count: 1
template: default:recipe/blasting_ore
arguments:
exp: 1.0
ingredient: "default:topaz_ore"
result: "default:topaz"
default:topaz_from_blasting_deepslate_topaz_ore:
type: blasting
experience: 1.0
category: misc
group: topaz
time: 100
ingredient: "default:deepslate_topaz_ore"
result:
id: default:topaz
count: 1
template: default:recipe/blasting_ore
arguments:
exp: 1.0
ingredient: "default:deepslate_topaz_ore"
result: "default:topaz"

View File

@@ -22,15 +22,15 @@ items:
type: strippable_block
stripped: default:stripped_palm_log
loot:
template: loot_table:normal
template: "default:loot_table/basic"
arguments:
item: default:palm_log
settings:
template: block_settings:log
template: "default:settings/wood"
overrides:
item: default:palm_log
states:
template: states:log
template: "default:block_state/pillar"
arguments:
base_block: note_block
texture_top_path: minecraft:block/custom/palm_log_top
@@ -65,15 +65,15 @@ items:
type: block_item
block:
loot:
template: loot_table:normal
template: "default:loot_table/basic"
arguments:
item: default:stripped_palm_log
settings:
template: block_settings:log
template: "default:settings/wood"
overrides:
item: default:stripped_palm_log
states:
template: states:log
template: "default:block_state/pillar"
arguments:
base_block: note_block
texture_top_path: minecraft:block/custom/stripped_palm_log_top
@@ -111,15 +111,15 @@ items:
type: strippable_block
stripped: default:stripped_palm_wood
loot:
template: loot_table:normal
template: "default:loot_table/basic"
arguments:
item: default:palm_wood
settings:
template: block_settings:log
template: "default:settings/wood"
overrides:
item: default:palm_wood
states:
template: states:log
template: "default:block_state/pillar"
arguments:
base_block: note_block
texture_top_path: minecraft:block/custom/palm_log
@@ -154,15 +154,15 @@ items:
type: block_item
block:
loot:
template: loot_table:normal
template: "default:loot_table/basic"
arguments:
item: default:stripped_palm_wood
settings:
template: block_settings:log
template: "default:settings/wood"
overrides:
item: default:stripped_palm_wood
states:
template: states:log
template: "default:block_state/pillar"
arguments:
base_block: note_block
texture_top_path: minecraft:block/custom/stripped_palm_log
@@ -196,22 +196,20 @@ items:
type: block_item
block:
settings:
template: block_settings:planks
template: "default:settings/planks"
overrides:
item: default:palm_planks
loot:
template: loot_table:normal
template: "default:loot_table/basic"
arguments:
item: default:palm_planks
state:
model:
template: "default:model/simplified_cube_all"
arguments:
path: "minecraft:block/custom/palm_planks"
id: 12
state: note_block:12
model:
path: "minecraft:block/custom/palm_planks"
generation:
parent: "minecraft:block/cube_all"
textures:
"all": "minecraft:block/custom/palm_planks"
default:palm_sapling:
material: paper
custom-model-data: 1005
@@ -220,15 +218,15 @@ items:
data:
item-name: "<!i><i18n:item.palm_sapling>"
model:
template: models:generated
template: "default:model/generated"
arguments:
model_path: "minecraft:item/custom/palm_sapling"
texture_path: "minecraft:block/custom/palm_sapling"
model: "minecraft:item/custom/palm_sapling"
texture: "minecraft:block/custom/palm_sapling"
behavior:
type: block_item
block:
settings:
template: block_settings:sapling
template: "default:settings/sapling"
overrides:
item: default:palm_sapling
behavior:
@@ -242,7 +240,7 @@ items:
- minecraft:farmland
- minecraft:sand
loot:
template: loot_table:normal
template: "default:loot_table/basic"
arguments:
item: default:palm_sapling
states:
@@ -272,6 +270,7 @@ items:
custom-model-data: 1000
data:
item-name: "<!i><i18n:item.palm_leaves>"
# reduce visual issues
components:
minecraft:block_state:
distance: "1"
@@ -291,16 +290,16 @@ items:
behavior:
type: leaves_block
loot:
template: loot_table:leaves
template: "default:loot_table/leaves"
arguments:
leaves: default:palm_leaves
sapling: default:palm_sapling
settings:
template: block_settings:leaves
template: "default:settings/leaves"
overrides:
item: default:palm_leaves
states:
template: states:leaves
template: "default:block_state/leaves"
arguments:
default_state: oak_leaves[distance=1,persistent=false,waterlogged=false]
waterlogged_state: oak_leaves[distance=1,persistent=false,waterlogged=true]
@@ -313,35 +312,14 @@ items:
recipes:
default:palm_planks:
type: shapeless
category: building
group: planks
ingredients:
A: "#default:palm_logs"
result:
id: default:palm_planks
count: 4
template: default:recipe/planks
arguments:
tree_type: palm
default:palm_wood:
type: shaped
category: building
group: bark
pattern:
- "AA"
- "AA"
ingredients:
A: "default:palm_log"
result:
id: default:palm_wood
count: 3
template: default:recipe/log_2_wood
arguments:
tree_type: palm
default:stripped_palm_wood:
type: shaped
category: building
group: bark
pattern:
- "AA"
- "AA"
ingredients:
A: "default:stripped_palm_log"
result:
id: default:stripped_palm_wood
count: 3
template: default:recipe/log_2_wood
arguments:
tree_type: stripped_palm

View File

@@ -1,40 +1,161 @@
# map-color: https://minecraft.wiki/w/Map_item_format
templates:
# Models
models:generated:
# This file contains some useful template data. If you have good ideas, you are welcome to contribute your template!
# blocks
templates#models#block:
# template: default:model/cube_all
# arguments:
# model: model_path
# texture: texture_path
default:model/cube_all:
path: "{model}"
generation:
parent: "minecraft:block/cube_all"
textures:
"all": "{texture}"
# template: default:model/simplified_cube_all
# arguments:
# path: model/texture_path
default:model/simplified_cube_all:
path: "{path}"
generation:
parent: "minecraft:block/cube_all"
textures:
"all": "{path}"
# template: default:model/cube_column
# arguments:
# model: model_path
# end_texture: end_texture_path
# end_texture: side_texture_path
default:model/cube_column:
path: "{model}"
generation:
parent: "minecraft:block/cube_column"
textures:
"end": "{end_texture}"
"side": "{side_texture}"
# 2D items
templates#models#generated:
# template: default:model/generated
# arguments:
# model: model_path
# texture: texture_path
default:model/generated:
type: "minecraft:model"
path: "{model_path}"
path: "{model}"
generation:
parent: "minecraft:item/generated"
textures:
"layer0": "{texture_path}"
models:fishing_rod_2d:
"layer0": "{texture}"
# template: default:model/simplified_generated
# arguments:
# path: model_path/texture_path
default:model/simplified_generated:
type: "minecraft:model"
path: "{path}"
generation:
parent: "minecraft:item/generated"
textures:
"layer0": "{path}"
# template: default:model/2_layer_generated
# arguments:
# model: model_path
# layer0: texture_path
# layer1: texture_path
default:model/2_layer_generated:
type: "minecraft:model"
path: "{model}"
generation:
parent: "minecraft:item/generated"
textures:
"layer0": "{layer0}"
"layer1": "{layer1}"
# template: default:model/handheld
# arguments:
# model: model_path
# texture: texture_path
default:model/handheld:
type: "minecraft:model"
path: "{model}"
generation:
parent: "minecraft:item/handheld"
textures:
"layer0": "{texture}"
# template: default:model/simplified_handheld
# arguments:
# path: model_path/texture_path
default:model/simplified_handheld:
type: "minecraft:model"
path: "{path}"
generation:
parent: "minecraft:item/handheld"
textures:
"layer0": "{path}"
# fishing rods
templates#models#fishing_rod:
# template: default:model/fishing_rod_3d
# arguments:
# model: rod_model_path
# cast_model: rod_cast_model_path
default:model/fishing_rod_3d:
type: "minecraft:condition"
property: "minecraft:fishing_rod/cast"
on-false:
type: "minecraft:model"
path: "{rod_model}"
generation:
parent: "minecraft:item/fishing_rod"
textures:
"layer0": "{rod_texture}"
path: "{model}"
on-true:
type: "minecraft:model"
path: "{rod_cast_model}"
path: "{cast_model}"
# template: default:model/fishing_rod_2d
# arguments:
# model: rod_model_path
# cast_model: rod_cast_model_path
# texture: rod_texture_path
# cast_texture: rod_cast_texture_path
default:model/fishing_rod_2d:
type: "minecraft:condition"
property: "minecraft:fishing_rod/cast"
on-false:
type: "minecraft:model"
path: "{model}"
generation:
parent: "minecraft:item/fishing_rod"
textures:
"layer0": "{rod_cast_texture}"
models:bow_2d:
"layer0": "{texture}"
on-true:
type: "minecraft:model"
path: "{cast_model}"
generation:
parent: "minecraft:item/fishing_rod"
textures:
"layer0": "{cast_texture}"
# template: default:model/simplified_fishing_rod_2d
# arguments:
# path: rod_model/texture_path
# cast_path: rod_cast_model/texture_path
default:model/simplified_fishing_rod_2d:
template: default:model/fishing_rod_2d
arguments:
texture: "{path}"
model: "{path}"
cast_texture: "{cast_path}"
cast_model: "{cast_path}"
# bows
templates#models#bow:
# template: default:model/bow_3d
# arguments:
# model: bow_model_path
# pulling_0_model: bow_pulling_0_model_path
# pulling_1_model: bow_pulling_1_model_path
# pulling_2_model: bow_pulling_2_model_path
default:model/bow_3d:
type: "minecraft:condition"
property: "minecraft:using_item"
on-false:
type: "minecraft:model"
path: "{bow_model}"
generation:
parent: "minecraft:item/bow"
textures:
"layer0": "{bow_texture}"
path: "{model}"
on-true:
type: "minecraft:range_dispatch"
property: "minecraft:use_duration"
@@ -42,28 +163,92 @@ templates:
entries:
- model:
type: minecraft:model
path: "{bow_pulling_1_model}"
generation:
parent: "minecraft:item/bow_pulling_1"
textures:
"layer0": "{bow_pulling_1_texture}"
path: "{pulling_1_model}"
threshold: 0.65
- model:
type: minecraft:model
path: "{bow_pulling_2_model}"
generation:
parent: "minecraft:item/bow_pulling_2"
textures:
"layer0": "{bow_pulling_2_texture}"
path: "{pulling_2_model}"
threshold: 0.9
fallback:
type: minecraft:model
path: "{bow_pulling_0_model}"
path: "{pulling_0_model}"
# template: default:model/bow_2d
# arguments:
# model: bow_model_path
# pulling_0_model: bow_pulling_0_model_path
# pulling_1_model: bow_pulling_1_model_path
# pulling_2_model: bow_pulling_2_model_path
# texture: bow_texture_path
# pulling_0_texture: bow_pulling_0_texture_path
# pulling_1_texture: bow_pulling_1_texture_path
# pulling_2_texture: bow_pulling_2_texture_path
default:model/bow_2d:
type: "minecraft:condition"
property: "minecraft:using_item"
on-false:
type: "minecraft:model"
path: "{model}"
generation:
parent: "minecraft:item/bow"
textures:
"layer0": "{texture}"
on-true:
type: "minecraft:range_dispatch"
property: "minecraft:use_duration"
scale: 0.05
entries:
- model:
type: minecraft:model
path: "{pulling_1_model}"
generation:
parent: "minecraft:item/bow_pulling_1"
textures:
"layer0": "{pulling_1_texture}"
threshold: 0.65
- model:
type: minecraft:model
path: "{pulling_2_model}"
generation:
parent: "minecraft:item/bow_pulling_2"
textures:
"layer0": "{pulling_2_texture}"
threshold: 0.9
fallback:
type: minecraft:model
path: "{pulling_0_model}"
generation:
parent: "minecraft:item/bow_pulling_0"
textures:
"layer0": "{bow_pulling_0_texture}"
models:crossbow_2d:
"layer0": "{pulling_0_texture}"
# template: default:model/simplified_bow_2d
# arguments:
# path: bow_model/texture_path
# pulling_0_path: bow_pulling_0_model/texture_path
# pulling_1_path: bow_pulling_1_model/texture_path
# pulling_2_path: bow_pulling_2_model/texture_path
default:model/simplified_bow_2d:
template: default:model/bow_2d
arguments:
model: "{path}"
pulling_0_model: "{pulling_0_path}"
pulling_1_model: "{pulling_1_path}"
pulling_2_model: "{pulling_2_path}"
texture: "{path}"
pulling_0_texture: "{pulling_0_path}"
pulling_1_texture: "{pulling_1_path}"
pulling_2_texture: "{pulling_2_path}"
# crossbows
templates#models#crossbow:
# template: default:model/crossbow_3d
# arguments:
# model: crossbow_model_path
# arrow_model: crossbow_arrow_model_path
# firework_model: crossbow_firework_model_path
# pulling_0_model: crossbow_pulling_0_model_path
# pulling_1_model: crossbow_pulling_1_model_path
# pulling_2_model: crossbow_pulling_2_model_path
default:model/crossbow_3d:
type: "minecraft:condition"
property: "minecraft:using_item"
on-false:
@@ -73,98 +258,261 @@ templates:
- when: arrow
model:
type: minecraft:model
path: "{crossbow_arrow_model}"
generation:
parent: "minecraft:item/crossbow_arrow"
textures:
"layer0": "{crossbow_arrow_texture}"
path: "{arrow_path}"
- when: rocket
model:
type: minecraft:model
path: "{crossbow_firework_model}"
generation:
parent: "minecraft:item/crossbow_firework"
textures:
"layer0": "{crossbow_firework_texture}"
path: "{firework_model}"
fallback:
type: minecraft:model
path: "{crossbow_model}"
generation:
parent: "minecraft:item/crossbow"
textures:
"layer0": "{crossbow_texture}"
path: "{path}"
on-true:
type: "minecraft:range_dispatch"
property: "minecraft:crossbow/pull"
entries:
- model:
type: minecraft:model
path: "{crossbow_pulling_1_model}"
generation:
parent: "minecraft:item/crossbow_pulling_1"
textures:
"layer0": "{crossbow_pulling_1_texture}"
path: "{pulling_1_model}"
threshold: 0.58
- model:
type: minecraft:model
path: "{crossbow_pulling_2_model}"
generation:
parent: "minecraft:item/crossbow_pulling_2"
textures:
"layer0": "{crossbow_pulling_2_texture}"
path: "{pulling_2_path}"
threshold: 1.0
fallback:
type: minecraft:model
path: "{crossbow_pulling_0_model}"
path: "{pulling_0_model}"
# template: default:model/crossbow_2d
# arguments:
# model: crossbow_model_path
# texture: crossbow_texture_path
# arrow_model: crossbow_arrow_model_path
# arrow_texture: crossbow_arrow_texture_path
# firework_model: crossbow_firework_model_path
# firework_texture: crossbow_firework_texture_path
# pulling_0_model: crossbow_pulling_0_model_path
# pulling_0_texture: crossbow_pulling_0_texture_path
# pulling_1_model: crossbow_pulling_1_model_path
# pulling_1_texture: crossbow_pulling_1_texture_path
# pulling_2_model: crossbow_pulling_2_model_path
# pulling_2_texture: crossbow_pulling_2_texture_path
default:model/crossbow_2d:
type: "minecraft:condition"
property: "minecraft:using_item"
on-false:
type: "minecraft:select"
property: "minecraft:charge_type"
cases:
- when: arrow
model:
type: minecraft:model
path: "{arrow_path}"
generation:
parent: "minecraft:item/crossbow_arrow"
textures:
"layer0": "{arrow_texture}"
- when: rocket
model:
type: minecraft:model
path: "{firework_model}"
generation:
parent: "minecraft:item/crossbow_firework"
textures:
"layer0": "{firework_texture}"
fallback:
type: minecraft:model
path: "{path}"
generation:
parent: "minecraft:item/crossbow"
textures:
"layer0": "{texture}"
on-true:
type: "minecraft:range_dispatch"
property: "minecraft:crossbow/pull"
entries:
- model:
type: minecraft:model
path: "{pulling_1_model}"
generation:
parent: "minecraft:item/crossbow_pulling_1"
textures:
"layer0": "{pulling_1_texture}"
threshold: 0.58
- model:
type: minecraft:model
path: "{pulling_2_path}"
generation:
parent: "minecraft:item/crossbow_pulling_2"
textures:
"layer0": "{pulling_2_texture}"
threshold: 1.0
fallback:
type: minecraft:model
path: "{pulling_0_model}"
generation:
parent: "minecraft:item/crossbow_pulling_0"
textures:
"layer0": "{crossbow_pulling_0_texture}"
"layer0": "{pulling_0_texture}"
# template: default:model/simplified_crossbow_2d
# arguments:
# path: crossbow_model/texture_path
# arrow_path: crossbow_arrow_model/texture_path
# firework_path: crossbow_firework_model/texture_path
# pulling_0_path: crossbow_pulling_0_model/texture_path
# pulling_1_path: crossbow_pulling_1_model/texture_path
# pulling_2_path: crossbow_pulling_2_model/texture_path
default:model/simplified_crossbow_2d:
template: default:model/crossbow_2d
arguments:
model: "{path}"
texture: "{path}"
arrow_model: "{arrow_path}"
arrow_texture: "{arrow_path}"
firework_model: "{firework_path}"
firework_texture: "{firework_path}"
pulling_0_model: "{pulling_0_path}"
pulling_0_texture: "{pulling_0_path}"
pulling_1_model: "{pulling_1_path}"
pulling_1_texture: "{pulling_1_path}"
pulling_2_model: "{pulling_2_path}"
pulling_2_texture: "{pulling_2_path}"
# Block Settings
block_settings:surface_decoration:
hardness: 0
resistance: 0
block_settings:sapling:
template: block_settings:surface_decoration
overrides:
push-reaction: DESTROY
is-randomly-ticking: true
map-color: 7
sounds:
break: minecraft:block.grass.break
step: minecraft:block.grass.step
place: minecraft:block.grass.place
hit: minecraft:block.grass.hit
fall: minecraft:block.grass.fall
tags:
- minecraft:mineable/axe
- minecraft:saplings
- minecraft:sword_efficient
block_settings:leaves:
hardness: 0.2
resistance: 0.2
push-reaction: DESTROY # NORMAL,DESTROY,BLOCK,IGNORE,PUSH_ONLY
replaceable: false
# sounds
templates#settings#sounds:
default:sound/block_template:
sounds:
break: "minecraft:block.{block_type}.break"
step: "minecraft:block.{block_type}.step"
place: "minecraft:block.{block_type}.place"
hit: "minecraft:block.{block_type}.hit"
fall: "minecraft:block.{block_type}.fall"
default:sound/crop:
sounds:
break: "minecraft:block.crop.break"
step: "minecraft:block.grass.step"
place: "minecraft:item.crop.plant"
hit: "minecraft:block.grass.hit"
fall: "minecraft:block.grass.fall"
default:sound/grass:
template: default:sound/block_template
arguments:
block_type: grass
default:sound/wood:
template: default:sound/block_template
arguments:
block_type: wood
default:sound/stone:
template: default:sound/block_template
arguments:
block_type: stone
default:sound/deepslate:
template: default:sound/block_template
arguments:
block_type: deepslate
default:sound/glass:
template: default:sound/block_template
arguments:
block_type: glass
default:sound/sand:
template: default:sound/block_template
arguments:
block_type: sand
default:sound/gravel:
template: default:sound/block_template
arguments:
block_type: gravel
default:sound/metal:
template: default:sound/block_template
arguments:
block_type: metal
default:sound/snow:
template: default:sound/block_template
arguments:
block_type: snow
default:sound/bamboo:
template: default:sound/block_template
arguments:
block_type: bamboo
default:sound/vine:
template: default:block
arguments:
block_type: vine
default:sound/lantern:
template: default:block
arguments:
block_type: lantern
default:sound/amethyst_block:
template: default:block
arguments:
block_type: amethyst_block
# burn data
templates#settings#burn:
default:burn_data/leaves:
burnable: true
burn-chance: 30
fire-spread-chance: 60
default:burn_data/wood:
burnable: true
burn-chance: 5
fire-spread-chance: 5
default:burn_data/planks:
burnable: true
burn-chance: 5
fire-spread-chance: 20
default:burn_data/wool:
burnable: true
burn-chance: 30
fire-spread-chance: 60
default:burn_data/vine:
burnable: true
burn-chance: 15
fire-spread-chance: 100
default:burn_data/carpet:
burnable: true
burn-chance: 60
fire-spread-chance: 20
default:burn_data/coal:
burnable: true
burn-chance: 5
fire-spread-chance: 5
default:burn_data/grass:
burnable: true
burn-chance: 60
fire-spread-chance: 100
is-redstone-conductor: false
is-suffocating: false
instrument: HARP
tags:
- minecraft:mineable/hoe
- minecraft:sword_efficient
- minecraft:leaves
- minecraft:replaceable_by_trees
sounds:
break: minecraft:block.grass.break
step: minecraft:block.grass.step
place: minecraft:block.grass.place
hit: minecraft:block.grass.hit
fall: minecraft:block.grass.fall
block_settings:pickaxe_level_1:
# hardness & resistance
templates#settings#hardness:
default:hardness/none:
hardness: 0
resistance: 0
default:hardness/leaves:
hardness: 0.2
resistance: 0.2
default:hardness/glass:
hardness: 0.3
resistance: 0.3
default:hardness/stone:
hardness: 1.5
resistance: 6.0
default:hardness/deepslate:
hardness: 3.0
resistance: 6.0
default:hardness/obsidian:
hardness: 50.0
resistance: 1200.0
default:hardness/wool:
hardness: 0.8
resistance: 0.8
default:hardness/wood:
hardness: 2.0
resistance: 2.0
default:hardness/planks:
hardness: 2.0
resistance: 3.0
# break level
templates#settings#break_level:
default:pickaxe_power/level_1:
correct-tools:
- minecraft:wooden_pickaxe
- minecraft:stone_pickaxe
@@ -173,7 +521,7 @@ templates:
- minecraft:diamond_pickaxe
- minecraft:netherite_pickaxe
- default:topaz_pickaxe
block_settings:pickaxe_level_2:
default:pickaxe_power/level_2:
correct-tools:
- minecraft:stone_pickaxe
- minecraft:iron_pickaxe
@@ -181,97 +529,131 @@ templates:
- minecraft:diamond_pickaxe
- minecraft:netherite_pickaxe
- default:topaz_pickaxe
block_settings:pickaxe_level_3:
default:pickaxe_power/level_3:
correct-tools:
- minecraft:iron_pickaxe
- minecraft:golden_pickaxe
- minecraft:diamond_pickaxe
- minecraft:netherite_pickaxe
- default:topaz_pickaxe
block_settings:pickaxe_level_4:
default:pickaxe_power/level_4:
correct-tools:
- minecraft:diamond_pickaxe
- minecraft:netherite_pickaxe
block_settings:log:
hardness: 2.0
resistance: 2.0
push-reaction: NORMAL
replaceable: false
burnable: true
burn-chance: 5
fire-spread-chance: 5
is-redstone-conductor: true
is-suffocating: true
instrument: BASS
can-occlude: true
tags:
- minecraft:mineable/axe
- minecraft:logs_that_burn
- minecraft:logs
- minecraft:completes_find_tree_tutorial
sounds:
break: minecraft:block.wood.break
step: minecraft:block.wood.step
place: minecraft:block.wood.place
hit: minecraft:block.wood.hit
fall: minecraft:block.wood.fall
block_settings:planks:
hardness: 2.0
resistance: 2.0
push-reaction: NORMAL
replaceable: false
burnable: true
burn-chance: 5
fire-spread-chance: 5
is-redstone-conductor: true
is-suffocating: true
instrument: BASS
can-occlude: true
tags:
- minecraft:mineable/axe
sounds:
break: minecraft:block.wood.break
step: minecraft:block.wood.step
place: minecraft:block.wood.place
hit: minecraft:block.wood.hit
fall: minecraft:block.wood.fall
block_settings:ore:
hardness: 4.5
resistance: 3.0
push-reaction: NORMAL
is-redstone-conductor: true
is-suffocating: true
instrument: BASEDRUM
can-occlude: true
map-color: 11
tags:
- minecraft:mineable/pickaxe
sounds:
break: minecraft:block.stone.break
step: minecraft:block.stone.step
place: minecraft:block.stone.place
hit: minecraft:block.stone.hit
fall: minecraft:block.stone.fall
block_settings:deepslate_ore:
hardness: 6
resistance: 3.0
push-reaction: NORMAL
is-redstone-conductor: true
is-suffocating: true
instrument: BASEDRUM
can-occlude: true
map-color: 59
tags:
- minecraft:mineable/pickaxe
sounds:
break: minecraft:block.deepslate.break
step: minecraft:block.deepslate.step
place: minecraft:block.deepslate.place
hit: minecraft:block.deepslate.hit
fall: minecraft:block.deepslate.fall
# Block States
states:log:
# block settings
templates#settings#blocks:
default:settings/solid_1x1x1:
is-suffocating: true
is-view-blocking: true
can-occlude: true
default:settings/transparent_1x1x1:
is-suffocating: false
is-view-blocking: false
can-occlude: false
# sapling
default:settings/sapling:
burnable: false
template:
- default:hardness/none
- default:sound/grass
overrides:
push-reaction: DESTROY
is-randomly-ticking: true
map-color: 7
tags:
- minecraft:mineable/axe
- minecraft:saplings
- minecraft:sword_efficient
# leaves
default:settings/leaves:
template:
- default:sound/grass
- default:burn_data/leaves
- default:hardness/leaves
overrides:
hardness: 0.2
resistance: 0.2
push-reaction: DESTROY
replaceable: false
is-redstone-conductor: false
is-suffocating: false
instrument: HARP
tags:
- minecraft:mineable/hoe
- minecraft:sword_efficient
- minecraft:leaves
- minecraft:replaceable_by_trees
# wood
default:settings/wood:
template:
- default:sound/wood
- default:burn_data/wood
- default:hardness/wood
overrides:
push-reaction: NORMAL
replaceable: false
is-redstone-conductor: true
is-suffocating: true
instrument: BASS
can-occlude: true
tags:
- minecraft:mineable/axe
- minecraft:logs_that_burn
- minecraft:logs
- minecraft:completes_find_tree_tutorial
# plank
default:settings/planks:
template:
- default:sound/wood
- default:burn_data/planks
- default:hardness/planks
overrides:
push-reaction: NORMAL
replaceable: false
is-redstone-conductor: true
is-suffocating: true
instrument: BASS
can-occlude: true
tags:
- minecraft:mineable/axe
# ore
default:settings/ore:
template:
- "default:sound/stone"
- "default:pickaxe_power/level_{break_power}"
overrides:
hardness: 4.5
resistance: 3.0
push-reaction: NORMAL
is-redstone-conductor: true
is-suffocating: true
instrument: BASEDRUM
can-occlude: true
map-color: 11
tags:
- minecraft:mineable/pickaxe
# deepslate ore
default:settings/deepslate_ore:
template:
- "default:sound/deepslate"
- "default:pickaxe_power/level_{break_power}"
overrides:
hardness: 6.0
resistance: 3.0
push-reaction: NORMAL
is-redstone-conductor: true
is-suffocating: true
instrument: BASEDRUM
can-occlude: true
map-color: 59
tags:
- minecraft:mineable/pickaxe
# block states
templates#block_states:
# pillar/log blocks
default:block_state/pillar:
properties:
axis:
type: axis
@@ -317,7 +699,7 @@ templates:
axis=z:
appearance: axisZ
id: "{internal_id}"
states:leaves:
default:block_state/leaves:
properties:
waterlogged:
type: boolean
@@ -473,8 +855,54 @@ templates:
resistance: 1200.0
burnable: false
# Loot Tables
loot_table:normal:
# recipes
templates#recipes:
default:recipe/planks:
type: shapeless
category: building
group: planks
ingredients:
A: "#default:{tree_type}_logs"
result:
id: "default:{tree_type}_planks"
count: 4
default:recipe/log_2_wood:
type: shaped
category: building
group: bark
pattern:
- "AA"
- "AA"
ingredients:
A: "default:{tree_type}_log"
result:
id: "default:{tree_type}_wood"
count: 3
default:recipe/smelting_ore:
type: smelting
experience: "{exp}"
category: misc
group: topaz
time: 200
ingredient: "{ingredient}"
result:
id: "{result}"
count: 1
default:recipe/blasting_ore:
type: blasting
experience: "{exp}"
category: misc
group: topaz
time: 100
ingredient: "{ingredient}"
result:
id: "{result}"
count: 1
# loot tables
templates#loot_tables:
# drop one item
default:loot_table/basic:
pools:
- rolls: 1
conditions:
@@ -482,7 +910,8 @@ templates:
entries:
- type: item
item: "{item}"
loot_table:ore:
# drop ores
default:loot_table/ore:
pools:
- rolls: 1
entries:
@@ -506,7 +935,8 @@ templates:
type: uniform
min: "{min_exp}"
max: "{max_exp}"
loot_table:leaves:
# leaves
default:loot_table/leaves:
pools:
- rolls: 1
entries:

View File

@@ -61,21 +61,20 @@ images:
char: '\ub009'
templates:
internal:2d_icon:
internal:icon/2d:
material: arrow
custom-model-data: "{model_data}"
data:
item-name: "{name}"
lore: "{lore}"
model:
template: models:generated
template: "default:model/simplified_generated"
arguments:
model_path: "minecraft:item/custom/gui/{texture}"
texture_path: "minecraft:item/custom/gui/{texture}"
path: "minecraft:item/custom/gui/{texture}"
items:
internal:next_page_0:
template: "internal:2d_icon"
template: "internal:icon/2d"
arguments:
model_data: 1000
texture: next_page_0
@@ -83,7 +82,7 @@ items:
lore:
- "<!i><#F5F5F5><arg:current_page>/<arg:max_page>"
internal:next_page_1:
template: "internal:2d_icon"
template: "internal:icon/2d"
arguments:
model_data: 1001
texture: next_page_1
@@ -91,7 +90,7 @@ items:
lore:
- "<!i><#696969><arg:current_page>/<arg:max_page>"
internal:previous_page_0:
template: "internal:2d_icon"
template: "internal:icon/2d"
arguments:
model_data: 1002
texture: previous_page_0
@@ -99,7 +98,7 @@ items:
lore:
- "<!i><#F5F5F5><arg:current_page>/<arg:max_page>"
internal:previous_page_1:
template: "internal:2d_icon"
template: "internal:icon/2d"
arguments:
model_data: 1003
texture: previous_page_1
@@ -107,7 +106,7 @@ items:
lore:
- "<!i><#696969><arg:current_page>/<arg:max_page>"
internal:return:
template: "internal:2d_icon"
template: "internal:icon/2d"
arguments:
model_data: 1004
texture: return
@@ -142,7 +141,7 @@ items:
lore:
- "<!i><#696969><arg:current_page>/<arg:max_page>"
internal:get_item:
template: "internal:2d_icon"
template: "internal:icon/2d"
arguments:
model_data: 1005
texture: get_item
@@ -151,7 +150,7 @@ items:
- "<!i><gray><i18n:internal.get_item.0>"
- "<!i><gray><i18n:internal.get_item.1>"
internal:cooking_info:
template: "internal:2d_icon"
template: "internal:icon/2d"
arguments:
model_data: 1006
texture: cooking_info
@@ -160,7 +159,7 @@ items:
- "<!i><gray><i18n:internal.cooking_info.0>"
- "<!i><gray><i18n:internal.cooking_info.1>"
internal:exit:
template: "internal:2d_icon"
template: "internal:icon/2d"
arguments:
model_data: 1007
texture: exit