-
Notifications
You must be signed in to change notification settings - Fork 3
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
61 changed files
with
158 additions
and
158 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
2 changes: 0 additions & 2 deletions
2
data/energy/functions/v1.2/versioning/modify_player_energy.mcfunction
This file was deleted.
Oops, something went wrong.
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
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,5 @@ | ||
|
||
#reroute to proper function | ||
execute if entity @s[tag=energy.send] run function energy:v1.3/cable/break_machine | ||
execute if entity @s[tag=energy.receive,tag=!energy.send] run function energy:v1.3/cable/break_machine | ||
execute if entity @s[tag=energy.cable] run function energy:v1.3/cable/break_cable |
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
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,9 @@ | ||
|
||
scoreboard players operation @s energy.network_id = #cable.network_id energy.data | ||
|
||
execute align xyz positioned ~ ~01 ~ as @e[type=#energy:valid_block_entities,predicate=energy:v1.3/equals_network_id,tag=energy.cable,dx=0,dy=0,dz=0] at @s run function energy:v1.3/cable/break_cable_2 | ||
execute align xyz positioned ~ ~-1 ~ as @e[type=#energy:valid_block_entities,predicate=energy:v1.3/equals_network_id,tag=energy.cable,dx=0,dy=0,dz=0] at @s run function energy:v1.3/cable/break_cable_2 | ||
execute align xyz positioned ~ ~ ~-1 as @e[type=#energy:valid_block_entities,predicate=energy:v1.3/equals_network_id,tag=energy.cable,dx=0,dy=0,dz=0] at @s run function energy:v1.3/cable/break_cable_2 | ||
execute align xyz positioned ~ ~ ~01 as @e[type=#energy:valid_block_entities,predicate=energy:v1.3/equals_network_id,tag=energy.cable,dx=0,dy=0,dz=0] at @s run function energy:v1.3/cable/break_cable_2 | ||
execute align xyz positioned ~01 ~ ~ as @e[type=#energy:valid_block_entities,predicate=energy:v1.3/equals_network_id,tag=energy.cable,dx=0,dy=0,dz=0] at @s run function energy:v1.3/cable/break_cable_2 | ||
execute align xyz positioned ~-1 ~ ~ as @e[type=#energy:valid_block_entities,predicate=energy:v1.3/equals_network_id,tag=energy.cable,dx=0,dy=0,dz=0] at @s run function energy:v1.3/cable/break_cable_2 |
File renamed without changes.
File renamed without changes.
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
6 changes: 3 additions & 3 deletions
6
...gy/functions/v1.2/cable/init_2.mcfunction → ...gy/functions/v1.3/cable/init_2.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,11 +1,11 @@ | ||
|
||
#if id is assigned, cascade across the entire network | ||
execute if score #cable.network_id energy.data matches 1.. run scoreboard players operation #predicate energy.data = @s energy.network_id | ||
execute if score #cable.network_id energy.data matches 1.. as @e[type=#energy:valid_block_entities,predicate=energy:v1.2/equals_network_id] run scoreboard players operation @s energy.network_id = #cable.network_id energy.data | ||
execute if score #cable.network_id energy.data matches 1.. as @e[type=#energy:valid_block_entities,predicate=energy:v1.2/has_network_id] run function energy:v1.2/cable/init_machine | ||
execute if score #cable.network_id energy.data matches 1.. as @e[type=#energy:valid_block_entities,predicate=energy:v1.3/equals_network_id] run scoreboard players operation @s energy.network_id = #cable.network_id energy.data | ||
execute if score #cable.network_id energy.data matches 1.. as @e[type=#energy:valid_block_entities,predicate=energy:v1.3/has_network_id] run function energy:v1.3/cable/init_machine | ||
|
||
#if id is unassigned, assign to current value | ||
execute if score #cable.network_id energy.data matches 0 run scoreboard players operation #cable.network_id energy.data = @s energy.network_id | ||
|
||
#call update function | ||
function energy:v1.2/cable/update | ||
function energy:v1.3/cable/update |
File renamed without changes.
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
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
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,5 @@ | ||
|
||
#reroute to proper function | ||
execute if entity @s[tag=energy.send] run function energy:v1.3/cable/update_machine | ||
execute if entity @s[tag=energy.receive,tag=!energy.send] run function energy:v1.3/cable/update_machine | ||
execute if entity @s[tag=energy.cable] run function energy:v1.3/cable/update_cable |
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
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
File renamed without changes.
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
File renamed without changes.
Oops, something went wrong.