-
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.
- The DataPack now supports 1.19.4. - Fixed several bugs. - When you pick up your minion, the upgrades and collected items now drop automatically. - Fixed the cobblestone advancement issue. - Added a feature to update all minions when needed. - Cobblestone advancement fixed. - Added a way for me to update all minions if needed.
- Loading branch information
Showing
20 changed files
with
96 additions
and
41 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
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/le_minions/function/minions/check_player/is_far.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,4 +1,2 @@ | ||
execute if data entity @s data.leMinions.ui{page: "root"} run return fail | ||
|
||
function le_minions:minions/ui/pages/root/open | ||
function le_minions:minions/ui/refresh |
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,6 @@ | ||
execute as @e[type=text_display,tag=leMinions.minion_display] if score @s leMinions.id = @e[tag=leMinions.minion,limit=1,sort=nearest] leMinions.id run tag @s add this | ||
|
||
$scoreboard players set @e[tag=this,tag=leMinions.minion_display,limit=1] leMinions.timer $(time) | ||
$data merge entity @e[type=text_display,limit=1,tag=this,tag=leMinions.minion_display] {text:'{"text":"$(text)"}'} | ||
$scoreboard players set @n[tag=this,tag=leMinions.minion_display,limit=1] leMinions.timer $(time) | ||
$data merge entity @n[type=text_display,limit=1,tag=this,tag=leMinions.minion_display] {text:'{"text":"$(text)"}'} | ||
|
||
tag @e remove this |
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 was deleted.
Oops, something went wrong.
3 changes: 3 additions & 0 deletions
3
data/le_minions/function/minions/ui/action/remove/drop_upgrade.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,3 @@ | ||
# $data modify storage le_minions:ui remove_items append value {id: "$(id)", count: 1b, Slot: $(slot)b} | ||
|
||
$data modify block ~ ~ ~ Items append value {id: "$(id)", count: 1b, Slot: $(slot)b} |
34 changes: 34 additions & 0 deletions
34
data/le_minions/function/minions/ui/action/remove/start.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,34 @@ | ||
#sound and particle | ||
playsound minecraft:block.anvil.destroy master @p[tag=this_player] ~ ~ ~ 1 1.5 1 | ||
execute at @s run particle minecraft:cloud ~ ~.5 ~ 0 0 0 0.05 5 normal | ||
|
||
#update time action | ||
data modify entity @s data.leMinions.time_action set from entity @s data.leMinions.stats.time_action | ||
|
||
#spawn item | ||
execute positioned ~ ~ ~ run function le_minions:minions/item/spawn with entity @s data.leMinions | ||
|
||
#disable menu | ||
data remove block ~ ~-1 ~ Items | ||
tag @s remove leMinions.working | ||
|
||
#drop items | ||
setblock ~ ~ ~ yellow_shulker_box | ||
|
||
#upgrades | ||
execute if data entity @s data.leMinions.ui.upgrades.10 run function le_minions:minions/ui/action/remove/drop_upgrade with entity @s data.leMinions.ui.upgrades.10 | ||
execute if data entity @s data.leMinions.ui.upgrades.11 run function le_minions:minions/ui/action/remove/drop_upgrade with entity @s data.leMinions.ui.upgrades.11 | ||
execute if data entity @s data.leMinions.ui.upgrades.13 run function le_minions:minions/ui/action/remove/drop_upgrade with entity @s data.leMinions.ui.upgrades.13 | ||
execute if data entity @s data.leMinions.ui.upgrades.14 run function le_minions:minions/ui/action/remove/drop_upgrade with entity @s data.leMinions.ui.upgrades.14 | ||
|
||
#items | ||
function le_minions:minions/get_stats | ||
execute if score #items leMinions.temp matches 1.. run loot insert ~ ~ ~ loot le_minions:minions/items | ||
execute if score #items leMinions.temp matches 1.. run data modify block ~ ~ ~ Items[{id: "minecraft:structure_void"}].id set from entity @s data.leMinions.stats.item | ||
|
||
#spawn | ||
loot spawn ~ ~ ~ mine ~ ~ ~ stick[custom_data={drop_contents:1b}] | ||
setblock ~ ~ ~ air | ||
|
||
#kill entities | ||
execute as @e if score @s leMinions.id = @e[tag=leMinions.minion,limit=1,sort=nearest] leMinions.id run kill @s |
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
9 changes: 1 addition & 8 deletions
9
data/le_minions/function/minions/ui/action/upgrades/fuel/remove/start.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
2 changes: 1 addition & 1 deletion
2
data/le_minions/function/minions/ui/action/upgrades/fuel/start.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,3 @@ | ||
$data modify storage le_minions:stats upgrades.item set from block ~ ~ ~ Items[{Slot:$(slot)b}] | ||
$data modify storage le_minions:stats upgrades.item.slot set value $(slot) | ||
function le_minions:minions/ui/action/upgrades/fuel/check with storage le_minions:stats upgrades.item | ||
function le_minions:minions/ui/action/upgrades/fuel/insert with storage le_minions:stats upgrades.item |
4 changes: 4 additions & 0 deletions
4
data/le_minions/function/minions/ui/action/upgrades/fuel/update_efficiency.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 @@ | ||
execute store result score #efficiency leMinions.temp run data get entity @s data.leMinions.efficiency | ||
$execute store result score #upgrade leMinions.temp run data get $(path) | ||
$scoreboard players operation #efficiency leMinions.temp $(op)= #upgrade leMinions.temp | ||
execute store result entity @s data.leMinions.efficiency int 1 run scoreboard players get #efficiency leMinions.temp |
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
2 changes: 1 addition & 1 deletion
2
data/le_minions/function/minions/ui/action/upgrades/storage/start.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,4 +1,4 @@ | ||
$data modify storage le_minions:stats upgrades.item set from block ~ ~ ~ Items[{Slot:$(slot)b}] | ||
$data modify storage le_minions:stats upgrades.item.slot set value $(slot) | ||
$execute if items block ~ ~ ~ container.$(slot) #minecraft:shulker_boxes run data modify storage le_minions:stats upgrades.item.id set value "minecraft:shulker_box" | ||
function le_minions:minions/ui/action/upgrades/storage/check with storage le_minions:stats upgrades.item | ||
function le_minions:minions/ui/action/upgrades/storage/insert with storage le_minions:stats upgrades.item |
4 changes: 2 additions & 2 deletions
4
data/le_minions/function/minions/ui/models/minion_head.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
2 changes: 1 addition & 1 deletion
2
data/le_minions/function/minions/ui/models/root/fuel/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,3 +1,3 @@ | ||
$execute if data entity @s data.leMinions.ui.upgrades.$(slot) run return run function le_minions:minions/ui/models/root/fuel/item with entity @s data.leMinions.ui.upgrades.$(slot) | ||
|
||
$data modify storage le_minions:ui mask prepend value {Slot:$(slot)b, id: "minecraft:orange_stained_glass_pane", components: {"minecraft:custom_data": {leMinions:{empty:3b}}, "item_name":'"§aFuel§r"', lore: ['"§7Make your minion works §r"', '"§7faster by adding any §r"', '"§7of the fuels below: §r"','"§7- Charcoal: §b-2%§r"','"§7- Coal: §b-4%§r"','"§7- Block of Coal: §b-6%§r"','"§7- Heart of the Sea: §b-8%§r"','"§7- Nether Star: §b-10%§r"','"§7- Dragon Egg: §b-50%§r"','""','"§e| Place the item here "']}} | ||
$data modify storage le_minions:ui mask prepend value {Slot:$(slot)b, id: "minecraft:orange_stained_glass_pane", components: {"minecraft:custom_data": {leMinions:{empty:3b}}, "item_name":'"§aFuel§r"', lore: ['"§7Make your minion works §r"', '"§7faster by adding any §r"', '"§7of the fuels below: §r"','"§7- Charcoal: §b-2%§r"','"§7- Coal: §b-4%§r"','"§7- Block of Coal: §b-6%§r"','"§7- Heart of the Sea: §b-8%§r"','"§7- Nether Star: §b-10%§r"','"§7- Dragon Egg: §b-40%§r"','""','"§e| Place the item here "']}} |
Oops, something went wrong.