-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
7 changed files
with
11 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 0 additions & 2 deletions
2
data/galaxy/functions/block/coke_furnace/states/lit.mcfunction
This file was deleted.
Oops, something went wrong.
1 change: 1 addition & 0 deletions
1
.../coke_furnace/states/check-lit.mcfunction → .../coke_furnace/states/lit/check.mcfunction
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,7 @@ | ||
scoreboard players operation #1 calcu_temp = @s statesLit | ||
|
||
scoreboard players set @s statesLit 0 | ||
function galaxy:block/coke_furnace/work/get-status | ||
execute if score @s workStatus matches 1 run scoreboard players set @s statesLit 1 | ||
|
||
execute unless score @s statesLit = #1 calcu_temp run tag @s add setStateLit |
4 changes: 4 additions & 0 deletions
4
data/galaxy/functions/block/coke_furnace/states/lit/main.mcfunction
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
function galaxy:block/coke_furnace/states/lit/check | ||
execute if entity @s[tag=setStateLit] if score @s statesLit matches 0 positioned ~ ~1 ~ run data merge entity @e[tag=coke_furnace_fake_block,distance=..0.25,sort=nearest,limit=1] {Tags:["coke_furnace_fake_block"],Fire:-1s,ArmorItems:[{},{},{},{id:"minecraft:wooden_sword",Count:1b,tag:{CustomModelData:10200,fakeBlock:1}}]} | ||
execute if entity @s[tag=setStateLit] if score @s statesLit matches 1 positioned ~ ~1 ~ run data merge entity @e[tag=coke_furnace_fake_block,distance=..0.25,sort=nearest,limit=1] {Tags:["coke_furnace_fake_block","illuminate"],Fire:32767s,ArmorItems:[{},{},{},{id:"minecraft:wooden_sword",Count:1b,tag:{CustomModelData:10201,fakeBlock:1}}]} | ||
tag @s[tag=setStateLit] remove setStateLit |
4 changes: 1 addition & 3 deletions
4
data/galaxy/functions/block/coke_furnace/states/main.mcfunction
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1 @@ | ||
function galaxy:block/coke_furnace/states/check-lit | ||
execute if entity @s[tag=setStateLit] run function galaxy:block/coke_furnace/states/lit | ||
tag @s[tag=setStateLit] remove setStateLit | ||
function galaxy:block/coke_furnace/states/lit/main |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
5 changes: 5 additions & 0 deletions
5
data/galaxy/functions/block/coke_furnace/work/processor1/main.mcfunction
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters