-
Notifications
You must be signed in to change notification settings - Fork 1
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
1 parent
ea12326
commit 4c2f8dc
Showing
5 changed files
with
99 additions
and
1 deletion.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,53 @@ | ||
{ | ||
"criteria": { | ||
"requirement": { | ||
"trigger": "minecraft:tick", | ||
"conditions": { | ||
"player": [ | ||
{ | ||
"condition": "minecraft:entity_properties", | ||
"entity": "this", | ||
"predicate": { | ||
"equipment": { | ||
"mainhand": { | ||
"items": "minecraft:sheep_spawn_egg", | ||
"predicates": { | ||
"minecraft:custom_data": { | ||
"bot": { | ||
"id": "bot_spawn" | ||
} | ||
} | ||
} | ||
} | ||
} | ||
} | ||
}, | ||
{ | ||
"condition": "minecraft:inverted", | ||
"term": { | ||
"condition": "minecraft:entity_properties", | ||
"entity": "this", | ||
"predicate": { | ||
"equipment": { | ||
"mainhand": { | ||
"items": "minecraft:sheep_spawn_egg", | ||
"predicates": { | ||
"minecraft:custom_data": { | ||
"bot": { | ||
"version": {} | ||
} | ||
} | ||
} | ||
} | ||
} | ||
} | ||
} | ||
} | ||
] | ||
} | ||
} | ||
}, | ||
"rewards": { | ||
"function": "bot:dfu/v0-3-2" | ||
} | ||
} |
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,2 @@ | ||
advancement revoke @s only bot:dfu/v0-3-2 | ||
item modify entity @s weapon.mainhand bot:dfu/v0-3-2 |
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,6 @@ | ||
function bot:entity/summon | ||
data modify entity @e[type=marker,tag=bot.golem.brain,sort=nearest,limit=1] data set from entity @s data | ||
data modify storage bot:private temp.data set from entity @s data | ||
data modify storage bot:private temp.data.version set from storage bot:version | ||
data modify entity @e[type=marker,tag=bot.golem.brain,sort=nearest,limit=1] data set from storage bot:private temp.data | ||
|
||
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
[ | ||
{ | ||
"function": "minecraft:set_components", | ||
"components": { | ||
"minecraft:entity_data": { | ||
"id": "minecraft:marker", | ||
"Tags": [ | ||
"bot.spawn" | ||
] | ||
} | ||
} | ||
}, | ||
{ | ||
"function": "minecraft:copy_custom_data", | ||
"source": { | ||
"type": "minecraft:storage", | ||
"source": "bot:version" | ||
}, | ||
"ops": [ | ||
{ | ||
"source": "{}", | ||
"target": "bot.version", | ||
"op": "merge" | ||
} | ||
] | ||
} | ||
] |
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