Skip to content

Commit

Permalink
FD - FNaF4 Blocks (small fix in blue/yellow lamp for fnaf4)
Browse files Browse the repository at this point in the history
  • Loading branch information
Hirxs-MC authored Sep 29, 2023
1 parent 3195a7a commit c40b631
Show file tree
Hide file tree
Showing 2 changed files with 226 additions and 48 deletions.
137 changes: 113 additions & 24 deletions BP/blocks/fnaf4/fnaf4_blue_lamp.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,16 @@
3,
4,
5
],
"fb:block_rotation": [
2,
3,
4,
5
],
"fb:block_status": [
1,
2
]
}
},
Expand All @@ -23,52 +33,56 @@
},
"minecraft:pick_collision": {
"origin": [
-4.5,
-5,
0,
-4.5
-5
],
"size": [
9,
16,
9
10,
18,
10
]
},
"minecraft:entity_collision": {
"origin": [
-4.5,
-5,
0,
-4.5
-5
],
"size": [
9,
16,
9
10,
18,
10
]
},
"minecraft:block_light_absorption": 0,
"minecraft:block_light_emission": 0.8,
"minecraft:block_light_emission": 0,
"minecraft:on_player_placing": {
"event": "bridge:update_rotation"
"event": "fb:block_placed"
},
"minecraft:rotation": [
0,
0,
0
],
"minecraft:creative_category": {
"group": "construction",
"category": "construction"
},
"tag:wall": {}
}
},
"permutations": [
{
"condition": "query.block_property('bridge:block_rotation') == 2",
"condition": "query.block_property('fb:block_rotation') == 2",
"components": {
"minecraft:rotation": [
0,
180,
-180,
0
]
}
},
{
"condition": "query.block_property('bridge:block_rotation') == 3",
"condition": "query.block_property('fb:block_rotation') == 3",
"components": {
"minecraft:rotation": [
0,
Expand All @@ -78,31 +92,106 @@
}
},
{
"condition": "query.block_property('bridge:block_rotation') == 4",
"condition": "query.block_property('fb:block_rotation') == 4",
"components": {
"minecraft:rotation": [
0,
270,
-90,
0
]
}
},
{
"condition": "query.block_property('bridge:block_rotation') == 5",
"condition": "query.block_property('fb:block_rotation') == 5",
"components": {
"minecraft:rotation": [
0,
90,
0
]
}
},
{
"condition": "query.block_property('fb:block_status') == 1",
"components": {
"minecraft:geometry": "geometry.fnaf4_lamp",
"minecraft:material_instances": {
"*": {
"texture": "fnaf4_blue_lamp",
"render_method": "alpha_test"
}
},
"minecraft:on_interact": {
"event": "fb:event_on"
}
}
},
{
"condition": "query.block_property('fb:block_status') == 2",
"components": {
"minecraft:geometry": "geometry.fnaf4_lamp",
"minecraft:material_instances": {
"*": {
"texture": "fnaf4_blue_lamp",
"render_method": "alpha_test"
}
},
"minecraft:on_interact": {
"event": "fb:event_off"
}
}
}
],
"events": {
"bridge:update_rotation": {
"set_block_property": {
"bridge:block_rotation": "query.cardinal_facing_2d"
}
"fb:block_placed": {
"sequence": [
{
"set_block_property": {
"fb:block_rotation": "query.block_face"
}
},
{
"set_block_property": {
"fb:block_status": 1
}
}
]
},
"fb:event_off": {
"sequence": [
{
"set_block_property": {
"fb:block_status": 1
}
},
{
"run_command": {
"target": "self",
"command": [
"gamerule sendcommandfeedback false",
"fill ~-6 ~-2 ~6 ~6 ~5 ~-6 fb:vent_light_on 0 replace fb:vent_light"
]
}
}
]
},
"fb:event_on": {
"sequence": [
{
"set_block_property": {
"fb:block_status": 2
}
},
{
"run_command": {
"target": "self",
"command": [
"gamerule sendcommandfeedback false",
"fill ~-6 ~-2 ~6 ~6 ~5 ~-6 fb:vent_light 0 replace fb:vent_light_on"
]
}
}
]
}
}
}
Expand Down
Loading

0 comments on commit c40b631

Please sign in to comment.