added decobench assets added backend logic to best of my ability
This commit is contained in:
@@ -0,0 +1,208 @@
|
||||
{
|
||||
"format_version": "1.21.60",
|
||||
"minecraft:entity": {
|
||||
"description": {
|
||||
"identifier": "rzb_dcs:decobench",
|
||||
"is_spawnable": true,
|
||||
"is_summonable": true,
|
||||
"is_experimental": false
|
||||
},
|
||||
"components": {
|
||||
"minecraft:type_family": {
|
||||
"family": [
|
||||
"decobench",
|
||||
"inanimate"
|
||||
]
|
||||
},
|
||||
"minecraft:health": {
|
||||
"value": 10,
|
||||
"max": 10
|
||||
},
|
||||
"minecraft:physics": {
|
||||
"has_gravity": false,
|
||||
"has_collision": false
|
||||
},
|
||||
"minecraft:collision_box": {
|
||||
"width": 1,
|
||||
"height": 1
|
||||
},
|
||||
"minecraft:custom_hit_test": {
|
||||
"hitboxes": [
|
||||
{
|
||||
"width": 1,
|
||||
"height": 1,
|
||||
"pivot": [
|
||||
0,
|
||||
0.5,
|
||||
0
|
||||
]
|
||||
}
|
||||
]
|
||||
},
|
||||
"minecraft:pushable": {
|
||||
"is_pushable": false,
|
||||
"is_pushable_by_piston": false
|
||||
},
|
||||
"minecraft:knockback_resistance": {
|
||||
"value": 1
|
||||
},
|
||||
"minecraft:persistent": {},
|
||||
"minecraft:fire_immune": true,
|
||||
"minecraft:nameable": {
|
||||
"allow_name_tag_renaming": false
|
||||
},
|
||||
"minecraft:damage_sensor": {
|
||||
"triggers": [
|
||||
{
|
||||
"cause": "all",
|
||||
"deals_damage": "no"
|
||||
}
|
||||
]
|
||||
},
|
||||
"minecraft:interact": {
|
||||
"interactions": [
|
||||
{
|
||||
"on_interact": {
|
||||
"filters": {
|
||||
"test": "is_family",
|
||||
"subject": "other",
|
||||
"value": "player"
|
||||
},
|
||||
"event": "rzb_dcs:open"
|
||||
},
|
||||
"swing": true
|
||||
}
|
||||
]
|
||||
}
|
||||
},
|
||||
"events": {
|
||||
"rzb_dcs:open": {},
|
||||
"rzb_dcs:ht_0": {
|
||||
"add": {
|
||||
"component_groups": [
|
||||
"rzb_dcs:ht_0"
|
||||
]
|
||||
}
|
||||
},
|
||||
"rzb_dcs:ht_90": {
|
||||
"add": {
|
||||
"component_groups": [
|
||||
"rzb_dcs:ht_90"
|
||||
]
|
||||
}
|
||||
},
|
||||
"rzb_dcs:ht_180": {
|
||||
"add": {
|
||||
"component_groups": [
|
||||
"rzb_dcs:ht_180"
|
||||
]
|
||||
}
|
||||
},
|
||||
"rzb_dcs:ht_270": {
|
||||
"add": {
|
||||
"component_groups": [
|
||||
"rzb_dcs:ht_270"
|
||||
]
|
||||
}
|
||||
}
|
||||
},
|
||||
"component_groups": {
|
||||
"rzb_dcs:ht_0": {
|
||||
"minecraft:custom_hit_test": {
|
||||
"hitboxes": [
|
||||
{
|
||||
"width": 1,
|
||||
"height": 1,
|
||||
"pivot": [
|
||||
0,
|
||||
0.5,
|
||||
0
|
||||
]
|
||||
},
|
||||
{
|
||||
"width": 1,
|
||||
"height": 1,
|
||||
"pivot": [
|
||||
1,
|
||||
0.5,
|
||||
0
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
},
|
||||
"rzb_dcs:ht_90": {
|
||||
"minecraft:custom_hit_test": {
|
||||
"hitboxes": [
|
||||
{
|
||||
"width": 1,
|
||||
"height": 1,
|
||||
"pivot": [
|
||||
0,
|
||||
0.5,
|
||||
0
|
||||
]
|
||||
},
|
||||
{
|
||||
"width": 1,
|
||||
"height": 1,
|
||||
"pivot": [
|
||||
0,
|
||||
0.5,
|
||||
1
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
},
|
||||
"rzb_dcs:ht_180": {
|
||||
"minecraft:custom_hit_test": {
|
||||
"hitboxes": [
|
||||
{
|
||||
"width": 1,
|
||||
"height": 1,
|
||||
"pivot": [
|
||||
0,
|
||||
0.5,
|
||||
0
|
||||
]
|
||||
},
|
||||
{
|
||||
"width": 1,
|
||||
"height": 1,
|
||||
"pivot": [
|
||||
-1,
|
||||
0.5,
|
||||
0
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
},
|
||||
"rzb_dcs:ht_270": {
|
||||
"minecraft:custom_hit_test": {
|
||||
"hitboxes": [
|
||||
{
|
||||
"width": 1,
|
||||
"height": 1,
|
||||
"pivot": [
|
||||
0,
|
||||
0.5,
|
||||
0
|
||||
]
|
||||
},
|
||||
{
|
||||
"width": 1,
|
||||
"height": 1,
|
||||
"pivot": [
|
||||
0,
|
||||
0.5,
|
||||
-1
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,32 @@
|
||||
{
|
||||
"format_version": "1.21.60",
|
||||
"minecraft:entity": {
|
||||
"description": {
|
||||
"identifier": "rzb_dcs:decobench_init",
|
||||
"is_spawnable": true,
|
||||
"is_summonable": true,
|
||||
"is_experimental": false
|
||||
},
|
||||
"components": {
|
||||
"minecraft:physics": {
|
||||
"has_gravity": false,
|
||||
"has_collision": false
|
||||
},
|
||||
"minecraft:collision_box": {
|
||||
"width": 0.1,
|
||||
"height": 0.1
|
||||
},
|
||||
"minecraft:damage_sensor": {
|
||||
"triggers": [
|
||||
{
|
||||
"cause": "all",
|
||||
"deals_damage": "no"
|
||||
}
|
||||
]
|
||||
},
|
||||
"minecraft:nameable": {
|
||||
"allow_name_tag_renaming": false
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,82 @@
|
||||
{
|
||||
"format_version": "1.21.60",
|
||||
"minecraft:entity": {
|
||||
"description": {
|
||||
"identifier": "rzb_dcs:decomposer",
|
||||
"is_spawnable": true,
|
||||
"is_summonable": true,
|
||||
"is_experimental": false
|
||||
},
|
||||
"components": {
|
||||
"minecraft:type_family": {
|
||||
"family": [
|
||||
"decomposer",
|
||||
"inanimate"
|
||||
]
|
||||
},
|
||||
"minecraft:health": {
|
||||
"value": 10,
|
||||
"max": 10
|
||||
},
|
||||
"minecraft:physics": {
|
||||
"has_gravity": false,
|
||||
"has_collision": false
|
||||
},
|
||||
"minecraft:collision_box": {
|
||||
"width": 1,
|
||||
"height": 1
|
||||
},
|
||||
"minecraft:custom_hit_test": {
|
||||
"hitboxes": [
|
||||
{
|
||||
"width": 1,
|
||||
"height": 1,
|
||||
"pivot": [
|
||||
0,
|
||||
0.5,
|
||||
0
|
||||
]
|
||||
}
|
||||
]
|
||||
},
|
||||
"minecraft:pushable": {
|
||||
"is_pushable": false,
|
||||
"is_pushable_by_piston": false
|
||||
},
|
||||
"minecraft:knockback_resistance": {
|
||||
"value": 1
|
||||
},
|
||||
"minecraft:persistent": {},
|
||||
"minecraft:fire_immune": true,
|
||||
"minecraft:nameable": {
|
||||
"allow_name_tag_renaming": false
|
||||
},
|
||||
"minecraft:damage_sensor": {
|
||||
"triggers": [
|
||||
{
|
||||
"cause": "all",
|
||||
"deals_damage": "no"
|
||||
}
|
||||
]
|
||||
},
|
||||
"minecraft:interact": {
|
||||
"interactions": [
|
||||
{
|
||||
"on_interact": {
|
||||
"filters": {
|
||||
"test": "is_family",
|
||||
"subject": "other",
|
||||
"value": "player"
|
||||
},
|
||||
"event": "rzb_dcs:open"
|
||||
},
|
||||
"swing": true
|
||||
}
|
||||
]
|
||||
}
|
||||
},
|
||||
"events": {
|
||||
"rzb_dcs:open": {}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,32 @@
|
||||
{
|
||||
"format_version": "1.21.60",
|
||||
"minecraft:entity": {
|
||||
"description": {
|
||||
"identifier": "rzb_dcs:decomposer_init",
|
||||
"is_spawnable": true,
|
||||
"is_summonable": true,
|
||||
"is_experimental": false
|
||||
},
|
||||
"components": {
|
||||
"minecraft:physics": {
|
||||
"has_gravity": false,
|
||||
"has_collision": false
|
||||
},
|
||||
"minecraft:collision_box": {
|
||||
"width": 0.1,
|
||||
"height": 0.1
|
||||
},
|
||||
"minecraft:damage_sensor": {
|
||||
"triggers": [
|
||||
{
|
||||
"cause": "all",
|
||||
"deals_damage": "no"
|
||||
}
|
||||
]
|
||||
},
|
||||
"minecraft:nameable": {
|
||||
"allow_name_tag_renaming": false
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user