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

完善摔落伤害机制处理等

This commit is contained in:
XiaoMoMi
2025-09-11 03:20:47 +08:00
parent b817426575
commit 584d8e1f7a
10 changed files with 159 additions and 157 deletions

View File

@@ -555,23 +555,23 @@ items#misc:
facing=west,open=true:
appearance: west_open
id: 29
default:sofa:
default:sleeper_sofa:
material: nether_brick
custom-model-data: 3008
data:
item-name: <!i><i18n:item.sofa>
model:
type: minecraft:model
path: minecraft:item/custom/sofa
path: minecraft:item/custom/sleeper_sofa
behavior:
type: block_item
block:
loot:
template: default:loot_table/self
settings:
hardness: 2
resistance: 3
map-color: 56
hardness: 0.5
resistance: 0.5
map-color: 27
burn-chance: 5
fire-spread-chance: 20
burnable: true
@@ -595,40 +595,30 @@ items#misc:
id: 0
state: white_bed[facing=west,occupied=false,part=foot]
entity-renderer:
item: default:sofa
default:connectable_sofa_straight:
item: default:sleeper_sofa
default:sofa_inner:
material: nether_brick
custom-model-data: 3009
data:
item-name: <!i><i18n:item.sofa>
model:
type: minecraft:model
path: minecraft:item/custom/sofa_straight
default:connectable_sofa_inner:
path: minecraft:item/custom/sofa_inner
default:sofa:
material: nether_brick
custom-model-data: 3010
data:
item-name: <!i><i18n:item.sofa>
model:
type: minecraft:model
path: minecraft:item/custom/sofa_inner
default:connectable_sofa:
material: nether_brick
custom-model-data: 3011
data:
item-name: <!i><i18n:item.sofa>
model:
type: minecraft:model
path: minecraft:item/custom/sofa_straight
path: minecraft:item/custom/sofa
behavior:
type: block_item
block:
loot:
template: default:loot_table/self
settings:
hardness: 2
resistance: 3
map-color: 56
hardness: 0.5
resistance: 0.5
map-color: 27
burn-chance: 5
fire-spread-chance: 20
burnable: true
@@ -658,59 +648,59 @@ items#misc:
facing=east,shape=straight:
state: barrier[waterlogged=false]
entity-renderer:
item: default:connectable_sofa_straight
item: default:sofa
yaw: 90
facing=north,shape=straight:
state: barrier[waterlogged=false]
entity-renderer:
item: default:connectable_sofa_straight
item: default:sofa
facing=south,shape=straight:
state: barrier[waterlogged=false]
entity-renderer:
item: default:connectable_sofa_straight
item: default:sofa
yaw: 180
facing=west,shape=straight:
state: barrier[waterlogged=false]
entity-renderer:
item: default:connectable_sofa_straight
item: default:sofa
yaw: 270
facing=east,shape=inner_left:
state: barrier[waterlogged=false]
entity-renderer:
item: default:connectable_sofa_inner
item: default:sofa_inner
facing=north,shape=inner_left:
state: barrier[waterlogged=false]
entity-renderer:
item: default:connectable_sofa_inner
item: default:sofa_inner
yaw: 270
facing=south,shape=inner_left:
state: barrier[waterlogged=false]
entity-renderer:
item: default:connectable_sofa_inner
item: default:sofa_inner
yaw: 90
facing=west,shape=inner_left:
state: barrier[waterlogged=false]
entity-renderer:
item: default:connectable_sofa_inner
item: default:sofa_inner
yaw: 180
facing=east,shape=inner_right:
state: barrier[waterlogged=false]
entity-renderer:
item: default:connectable_sofa_inner
item: default:sofa_inner
yaw: 90
facing=north,shape=inner_right:
state: barrier[waterlogged=false]
entity-renderer:
item: default:connectable_sofa_inner
item: default:sofa_inner
facing=south,shape=inner_right:
state: barrier[waterlogged=false]
entity-renderer:
item: default:connectable_sofa_inner
item: default:sofa_inner
yaw: 180
facing=west,shape=inner_right:
state: barrier[waterlogged=false]
entity-renderer:
item: default:connectable_sofa_inner
item: default:sofa_inner
yaw: 270
variants:
facing=east,shape=inner_left:

View File

@@ -80,7 +80,7 @@ categories:
- default:pebble
- default:chessboard_block
- default:safe_block
- default:sofa
- default:sleeper_sofa
- minecraft:air
- minecraft:air
- default:connectable_sofa
- default:sofa

View File

@@ -1,53 +1,24 @@
{
"texture_size": [64, 64],
"textures": {
"0": "item/custom/sofa",
"particle": "item/custom/sofa"
},
"elements": [
{
"from": [1, 0, 1],
"to": [3, 3, 3],
"rotation": {"angle": 0, "axis": "y", "origin": [1, 0, 1]},
"from": [-0.005, 2.995, -0.005],
"to": [16.005, 9.005, 16.005],
"faces": {
"north": {"uv": [14.5, 15.25, 15, 16], "texture": "#0"},
"east": {"uv": [15, 15.25, 15.5, 16], "texture": "#0"},
"south": {"uv": [15, 15.25, 15.5, 16], "texture": "#0"},
"west": {"uv": [15, 15.25, 14.5, 16], "texture": "#0"},
"up": {"uv": [16, 15.5, 15.5, 15], "texture": "#0"},
"down": {"uv": [16, 15.5, 15.5, 16], "texture": "#0"}
"north": {"uv": [4, 11.5, 8, 13], "texture": "#0"},
"east": {"uv": [8, 11.5, 4, 13], "texture": "#0"},
"south": {"uv": [4, 11.5, 8, 13], "texture": "#0"},
"west": {"uv": [4, 11.5, 8, 13], "texture": "#0"},
"up": {"uv": [4, 4, 0, 0], "texture": "#0"},
"down": {"uv": [4, 12, 0, 16], "texture": "#0"}
}
},
{
"from": [13, 0, 1],
"to": [15, 3, 3],
"rotation": {"angle": 0, "axis": "y", "origin": [15, 0, 1]},
"faces": {
"north": {"uv": [15, 15.25, 14.5, 16], "texture": "#0"},
"east": {"uv": [14.5, 15.25, 15, 16], "texture": "#0"},
"south": {"uv": [15.5, 15.25, 15, 16], "texture": "#0"},
"west": {"uv": [15.5, 15.25, 15, 16], "texture": "#0"},
"up": {"uv": [15.5, 15.5, 16, 15], "texture": "#0"},
"down": {"uv": [15.5, 15.5, 16, 16], "texture": "#0"}
}
},
{
"from": [13, 0, 13],
"to": [15, 3, 15],
"rotation": {"angle": 0, "axis": "y", "origin": [15, 0, 15]},
"faces": {
"north": {"uv": [15, 15.25, 15.5, 16], "texture": "#0"},
"east": {"uv": [15, 15.25, 14.5, 16], "texture": "#0"},
"south": {"uv": [14.5, 15.25, 15, 16], "texture": "#0"},
"west": {"uv": [15, 15.25, 15.5, 16], "texture": "#0"},
"up": {"uv": [15.5, 15, 16, 15.5], "texture": "#0"},
"down": {"uv": [15.5, 16, 16, 15.5], "texture": "#0"}
}
},
{
"from": [1, 0, 13],
"to": [3, 3, 15],
"rotation": {"angle": 0, "axis": "y", "origin": [1, 0, 15]},
"from": [-0.005, -0.005, 12.995],
"to": [3.005, 3.005, 16.005],
"faces": {
"north": {"uv": [15.5, 15.25, 15, 16], "texture": "#0"},
"east": {"uv": [15.5, 15.25, 15, 16], "texture": "#0"},
@@ -58,29 +29,39 @@
}
},
{
"from": [0.01, 2.51, 0.01],
"to": [15.99, 8.49, 15.99],
"rotation": {"angle": 0, "axis": "y", "origin": [0, 2, 0]},
"from": [12.995, -0.005, 12.995],
"to": [16.005, 3.005, 16.005],
"faces": {
"north": {"uv": [4, 11.5, 8, 13], "texture": "#0"},
"east": {"uv": [8, 14.5, 4, 16], "texture": "#0"},
"south": {"uv": [4, 13, 8, 14.5], "texture": "#0"},
"west": {"uv": [4, 14.5, 8, 16], "texture": "#0"},
"up": {"uv": [4, 12, 0, 8], "texture": "#0"},
"down": {"uv": [4, 12, 0, 16], "texture": "#0"}
"north": {"uv": [15, 15.25, 15.5, 16], "texture": "#0"},
"east": {"uv": [15, 15.25, 14.5, 16], "texture": "#0"},
"south": {"uv": [14.5, 15.25, 15, 16], "texture": "#0"},
"west": {"uv": [15, 15.25, 15.5, 16], "texture": "#0"},
"up": {"uv": [15.5, 15, 16, 15.5], "texture": "#0"},
"down": {"uv": [15.5, 16, 16, 15.5], "texture": "#0"}
}
},
{
"from": [0.02, 6.02, 12.02],
"to": [15.98, 19.98, 15.98],
"rotation": {"angle": 22.5, "axis": "x", "origin": [7, 8, 14]},
"from": [12.995, -0.005, -0.005],
"to": [16.005, 3.005, 3.005],
"faces": {
"north": {"uv": [9, 8.5, 13, 12], "texture": "#0"},
"east": {"uv": [8, 12.5, 9, 16], "texture": "#0"},
"south": {"uv": [9, 12.5, 13, 16], "texture": "#0"},
"west": {"uv": [9, 12.5, 8, 16], "texture": "#0"},
"up": {"uv": [9, 12, 8, 8.5], "rotation": 90, "texture": "#0"},
"down": {"uv": [7.75, 10.5, 4.25, 11.5], "texture": "#0"}
"north": {"uv": [15, 15.25, 14.5, 16], "texture": "#0"},
"east": {"uv": [14.5, 15.25, 15, 16], "texture": "#0"},
"south": {"uv": [15.5, 15.25, 15, 16], "texture": "#0"},
"west": {"uv": [15.5, 15.25, 15, 16], "texture": "#0"},
"up": {"uv": [15.5, 15.5, 16, 15], "texture": "#0"},
"down": {"uv": [15.5, 15.5, 16, 16], "texture": "#0"}
}
},
{
"from": [-0.005, -0.005, -0.005],
"to": [3.005, 3.005, 3.005],
"faces": {
"north": {"uv": [14.5, 15.25, 15, 16], "texture": "#0"},
"east": {"uv": [15, 15.25, 15.5, 16], "texture": "#0"},
"south": {"uv": [15, 15.25, 15.5, 16], "texture": "#0"},
"west": {"uv": [15, 15.25, 14.5, 16], "texture": "#0"},
"up": {"uv": [16, 15.5, 15.5, 15], "texture": "#0"},
"down": {"uv": [16, 15.5, 15.5, 16], "texture": "#0"}
}
}
],
@@ -96,12 +77,12 @@
"scale": [0.25, 0.25, 0.25]
},
"firstperson_righthand": {
"rotation": [0, 180, 0],
"rotation": [0, -180, 0],
"translation": [0.5, 0.5, 0],
"scale": [0.5, 0.5, 0.5]
},
"firstperson_lefthand": {
"rotation": [0, 180, 0],
"rotation": [0, -180, 0],
"translation": [0.5, 0.5, 0],
"scale": [0.5, 0.5, 0.5]
},
@@ -111,7 +92,7 @@
},
"gui": {
"rotation": [25, -135, 0],
"translation": [0.5, -1, 0],
"translation": [0.25, -1, 0],
"scale": [0.5, 0.5, 0.5]
},
"fixed": {
@@ -119,13 +100,5 @@
"translation": [0, 0, -16],
"scale": [2, 2, 2]
}
},
"groups": [
{
"name": "group",
"origin": [0, 0, 0],
"color": 0,
"children": [0, 1, 2, 3, 4, 5]
}
]
}
}

View File

@@ -1,13 +1,14 @@
{
"texture_size": [64, 64],
"textures": {
"0": "item/custom/sofa",
"particle": "item/custom/sofa"
},
"elements": [
{
"from": [-0.07, -0.035, -0.07],
"to": [2.95, 2.495, 2.95],
"rotation": {"angle": 0, "axis": "y", "origin": [-0.07, -0.035, -0.07]},
"from": [1, 0, 1],
"to": [3, 3, 3],
"rotation": {"angle": 0, "axis": "y", "origin": [1, 0, 1]},
"faces": {
"north": {"uv": [14.5, 15.25, 15, 16], "texture": "#0"},
"east": {"uv": [15, 15.25, 15.5, 16], "texture": "#0"},
@@ -18,9 +19,9 @@
}
},
{
"from": [13.05, -0.035, -0.07],
"to": [16.07, 2.495, 2.95],
"rotation": {"angle": 0, "axis": "y", "origin": [16.07, -0.035, -0.07]},
"from": [13, 0, 1],
"to": [15, 3, 3],
"rotation": {"angle": 0, "axis": "y", "origin": [15, 0, 1]},
"faces": {
"north": {"uv": [15, 15.25, 14.5, 16], "texture": "#0"},
"east": {"uv": [14.5, 15.25, 15, 16], "texture": "#0"},
@@ -31,9 +32,9 @@
}
},
{
"from": [13.05, -0.035, 13.05],
"to": [16.07, 2.495, 16.07],
"rotation": {"angle": 0, "axis": "y", "origin": [16.07, -0.035, 16.07]},
"from": [13, 0, 13],
"to": [15, 3, 15],
"rotation": {"angle": 0, "axis": "y", "origin": [15, 0, 15]},
"faces": {
"north": {"uv": [15, 15.25, 15.5, 16], "texture": "#0"},
"east": {"uv": [15, 15.25, 14.5, 16], "texture": "#0"},
@@ -44,9 +45,9 @@
}
},
{
"from": [-0.07, -0.035, 13.05],
"to": [2.95, 2.495, 16.07],
"rotation": {"angle": 0, "axis": "y", "origin": [-0.07, -0.035, 16.07]},
"from": [1, 0, 13],
"to": [3, 3, 15],
"rotation": {"angle": 0, "axis": "y", "origin": [1, 0, 15]},
"faces": {
"north": {"uv": [15.5, 15.25, 15, 16], "texture": "#0"},
"east": {"uv": [15.5, 15.25, 15, 16], "texture": "#0"},
@@ -57,17 +58,30 @@
}
},
{
"from": [-0.0699, 2.5001, -0.0699],
"to": [16.0699, 9.0399, 16.0699],
"rotation": {"angle": 0, "axis": "y", "origin": [-0.08, 1.985, -0.08]},
"from": [0, 3, 0],
"to": [16, 9, 16],
"rotation": {"angle": 0, "axis": "y", "origin": [0, 2, 0]},
"faces": {
"north": {"uv": [4, 11.5, 8, 13], "texture": "#0"},
"east": {"uv": [8, 11.5, 4, 13], "texture": "#0"},
"south": {"uv": [4, 11.5, 8, 13], "texture": "#0"},
"west": {"uv": [4, 11.5, 8, 13], "texture": "#0"},
"up": {"uv": [4, 4, 0, 0], "texture": "#0"},
"east": {"uv": [8, 14.5, 4, 16], "texture": "#0"},
"south": {"uv": [4, 13, 8, 14.5], "texture": "#0"},
"west": {"uv": [4, 14.5, 8, 16], "texture": "#0"},
"up": {"uv": [4, 12, 0, 8], "texture": "#0"},
"down": {"uv": [4, 12, 0, 16], "texture": "#0"}
}
},
{
"from": [0.02, 6.02, 12.02],
"to": [15.98, 19.98, 15.98],
"rotation": {"angle": 22.5, "axis": "x", "origin": [7, 8, 14]},
"faces": {
"north": {"uv": [9, 8.5, 13, 12], "texture": "#0"},
"east": {"uv": [8, 12.5, 9, 16], "texture": "#0"},
"south": {"uv": [9, 12.5, 13, 16], "texture": "#0"},
"west": {"uv": [9, 12.5, 8, 16], "texture": "#0"},
"up": {"uv": [9, 12, 8, 8.5], "rotation": 90, "texture": "#0"},
"down": {"uv": [7.75, 10.5, 4.25, 11.5], "texture": "#0"}
}
}
],
"display": {
@@ -97,7 +111,7 @@
},
"gui": {
"rotation": [25, -135, 0],
"translation": [0.25, -1, 0],
"translation": [0.5, -1, 0],
"scale": [0.5, 0.5, 0.5]
},
"fixed": {
@@ -111,7 +125,7 @@
"name": "group",
"origin": [0, 0, 0],
"color": 0,
"children": [0, 1, 2, 3, 4]
"children": [0, 1, 2, 3, 4, 5]
}
]
}

View File

@@ -57,8 +57,8 @@
}
},
{
"from": [0.01, 2.51, 0.01],
"to": [15.99, 8.49, 15.99],
"from": [0, 3, 0],
"to": [16, 9, 16],
"rotation": {"angle": 0, "axis": "y", "origin": [0, 2, 0]},
"faces": {
"north": {"uv": [4, 11.5, 8, 13], "texture": "#0"},
@@ -98,7 +98,7 @@
],
"display": {
"thirdperson_righthand": {
"rotation": [60, 180, 0],
"rotation": [60, -180, 0],
"translation": [-0.5, 3, 0.25],
"scale": [0.25, 0.25, 0.25]
},
@@ -108,7 +108,7 @@
"scale": [0.25, 0.25, 0.25]
},
"firstperson_righthand": {
"rotation": [0, 180, 0],
"rotation": [0, -180, 0],
"translation": [0.5, 0.5, 0],
"scale": [0.5, 0.5, 0.5]
},