Skip to content
This repository has been archived by the owner on Oct 21, 2023. It is now read-only.

Commit

Permalink
more block fixing
Browse files Browse the repository at this point in the history
  • Loading branch information
ANightDazingZoroark committed May 6, 2023
1 parent 037ace9 commit 11c820f
Show file tree
Hide file tree
Showing 2 changed files with 723 additions and 362 deletions.
91 changes: 72 additions & 19 deletions behaviors/blocks/blighted stone slab.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"format_version": "1.16.100",
"format_version": "1.19.80",
"minecraft:block": {
"description": {
"identifier": "rift:blighted_stone_slab",
Expand All @@ -16,13 +16,36 @@
{
"condition": "query.block_property('rift:state') == 0",
"components": {
"minecraft:entity_collision": {
"origin": [ -8, 0, -8 ],
"size": [ 16, 8, 16 ]
"minecraft:geometry": {
"identifier": "geometry.slab",
"bone_visibility": {
"bottom_slab": true,
"top_slab": false
}
},
"minecraft:collision_box": {
"origin": [
-8,
0,
-8
],
"size": [
16,
8,
16
]
},
"minecraft:selection_box": {
"origin": [ -8, 0, -8 ],
"size": [ 16, 8, 16 ]
"origin": [
-8,
0,
-8
],
"size": [
16,
8,
16
]
},
"minecraft:on_interact": {
"event": "rift:full_slab",
Expand All @@ -35,13 +58,36 @@
{
"condition": "query.block_property('rift:state') == 1",
"components": {
"minecraft:entity_collision": {
"origin": [ -8, 8, -8 ],
"size": [ 16, 8, 16 ]
"minecraft:geometry": {
"identifier": "geometry.slab",
"bone_visibility": {
"bottom_slab": false,
"top_slab": true
}
},
"minecraft:collision_box": {
"origin": [
-8,
8,
-8
],
"size": [
16,
8,
16
]
},
"minecraft:selection_box": {
"origin": [ -8, 8, -8 ],
"size": [ 16, 8, 16 ]
"origin": [
-8,
8,
-8
],
"size": [
16,
8,
16
]
},
"minecraft:on_interact": {
"event": "rift:full_slab",
Expand All @@ -54,12 +100,25 @@
{
"condition": "query.block_property('rift:state') == 2",
"components": {
"minecraft:geometry": {
"identifier": "geometry.slab",
"bone_visibility": {
"bottom_slab": true,
"top_slab": true
}
},
"minecraft:unit_cube": {}
}
}
],
"components": {
"minecraft:geometry": "geometry.slab",
"minecraft:geometry": {
"identifier": "geometry.slab",
"bone_visibility": {
"bottom_slab": false,
"top_slab": false
}
},
"minecraft:material_instances": {
"*": {
"texture": "blighted stone",
Expand All @@ -69,16 +128,10 @@
"minecraft:destructible_by_mining": {
"seconds_to_destroy": 5
},
"minecraft:part_visibility": {
"conditions": {
"bottom_slab": "query.block_property('rift:state') == 0 || query.block_property('rift:state') == 2",
"top_slab": "query.block_property('rift:state') == 1 || query.block_property('rift:state') == 2"
}
},
"minecraft:on_player_placing": {
"event": "rift:update_facing_direction"
},
"minecraft:block_light_absorption": 0.0,
"minecraft:light_dampening": 0.0,
"tag:stone": {},
"tag:iron_pick_diggable": {},
"tag:gold_pick_diggable": {},
Expand Down

0 comments on commit 11c820f

Please sign in to comment.