Skip to content

Commit

Permalink
Change version control scheme
Browse files Browse the repository at this point in the history
  • Loading branch information
ICY105 committed May 31, 2023
1 parent 0c2e758 commit 3a933a8
Show file tree
Hide file tree
Showing 7 changed files with 56 additions and 6 deletions.
2 changes: 1 addition & 1 deletion data/energy/functions/v1.5/resolve.mcfunction
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@
schedule clear energy:v1.5/init
schedule clear energy:v1.5/tick

execute if score #energy.major load.status matches 1 if score #energy.minor load.status matches 5 run function energy:v1.5/init
execute if predicate energy:v1.5/is_correct_version run function energy:v1.5/init
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@

execute if score #energy.major load.status matches 1 if score #energy.minor load.status matches 5 run function energy:v1.5/cable/break
execute if predicate energy:v1.5/is_correct_version run function energy:v1.5/cable/break
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@

execute if score #energy.major load.status matches 1 if score #energy.minor load.status matches 5 run function energy:v1.5/machine/break
execute if predicate energy:v1.5/is_correct_version run function energy:v1.5/machine/break
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@

execute if score #energy.major load.status matches 1 if score #energy.minor load.status matches 5 run function energy:v1.5/cable/init
execute if predicate energy:v1.5/is_correct_version run function energy:v1.5/cable/init
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@

execute if score #energy.major load.status matches 1 if score #energy.minor load.status matches 5 run function energy:v1.5/machine/init
execute if predicate energy:v1.5/is_correct_version run function energy:v1.5/machine/init
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@

execute if score #energy.major load.status matches 1 if score #energy.minor load.status matches 5 if entity @s[type=minecraft:player] run function energy:v1.5/player/modify_energy
execute if predicate energy:v1.5/is_correct_version if entity @s[type=minecraft:player] run function energy:v1.5/player/modify_energy
50 changes: 50 additions & 0 deletions data/energy/predicates/v1.5/is_correct_version.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
[
{
"condition": "minecraft:value_check",
"value": 1,
"range": {
"min": {
"type": "minecraft:score",
"target": {
"type": "minecraft:fixed",
"name": "#energy.major"
},
"score": "load.status",
"scale": 1
},
"max": {
"type": "minecraft:score",
"target": {
"type": "minecraft:fixed",
"name": "#energy.major"
},
"score": "load.status",
"scale": 1
}
}
},
{
"condition": "minecraft:value_check",
"value": 5,
"range": {
"min": {
"type": "minecraft:score",
"target": {
"type": "minecraft:fixed",
"name": "#energy.minor"
},
"score": "load.status",
"scale": 1
},
"max": {
"type": "minecraft:score",
"target": {
"type": "minecraft:fixed",
"name": "#energy.minor"
},
"score": "load.status",
"scale": 1
}
}
}
]

0 comments on commit 3a933a8

Please sign in to comment.