Compare commits
3 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| 6b000ceba9 | |||
| 9fb6a4f0bc | |||
| 03d0d0df63 |
@@ -0,0 +1,13 @@
|
|||||||
|
{
|
||||||
|
"parent": "fzsd:game_event/on_placed_block",
|
||||||
|
"criteria": {
|
||||||
|
"on_placed_liquid": {
|
||||||
|
"trigger": "minecraft:placed_block",
|
||||||
|
"conditions": {
|
||||||
|
"item": {
|
||||||
|
"tag": "fzsd:bucket_of_liquid"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -1,10 +1,10 @@
|
|||||||
# 调用者:advancements/fzsd:~
|
# 调用者:advancements/fzsd:~
|
||||||
|
|
||||||
## 调试
|
|
||||||
execute if score fzsd.logger.level fzsd.variable.integer matches ..400 run tellraw @a [{"nbt": "fzsd.level.debug", "interpret": true, "storage": "fzsd:logger"}, {"text": "事件已触发:玩家"}, {"selector": "@s"}, {"text": "放置了方块"}]
|
|
||||||
|
|
||||||
## 运行事件
|
## 运行事件
|
||||||
|
execute if entity @s[advancements={fzsd:game_event/on_placed_block/on_placed_liquid=true}] run function #fzsd:game_event/player/on_placed_liquid
|
||||||
|
execute if entity @s[advancements={fzsd:game_event/on_placed_block/on_placed_liquid=false}] run function #fzsd:game_event/player/on_placed_solid
|
||||||
function #fzsd:game_event/player/on_placed_block
|
function #fzsd:game_event/player/on_placed_block
|
||||||
|
|
||||||
## 重置事件进度
|
## 重置事件进度
|
||||||
advancement revoke @s from fzsd:game_event/on_placed_block
|
advancement revoke @s from fzsd:game_event/on_placed_block
|
||||||
|
advancement revoke @s from fzsd:game_event/on_placed_block/on_placed_liquid
|
||||||
@@ -0,0 +1,2 @@
|
|||||||
|
## 调试
|
||||||
|
execute if score fzsd.logger.level fzsd.variable.integer matches ..400 run tellraw @a [{"nbt": "fzsd.level.debug", "interpret": true, "storage": "fzsd:logger"}, {"text": "事件已触发:玩家"}, {"selector": "@s"}, {"text": "放置了流体"}]
|
||||||
@@ -0,0 +1,2 @@
|
|||||||
|
## 调试
|
||||||
|
execute if score fzsd.logger.level fzsd.variable.integer matches ..400 run tellraw @a [{"nbt": "fzsd.level.debug", "interpret": true, "storage": "fzsd:logger"}, {"text": "事件已触发:玩家"}, {"selector": "@s"}, {"text": "放置了实体方块"}]
|
||||||
@@ -1 +1 @@
|
|||||||
execute if data storage fzsd:installed fzsd.module{join_message:1b} run function #fzsd:module/join_message/send_message
|
execute if data storage fzsd:install fzsd.module{join_message:1b} run function #fzsd:module/join_message/send_message
|
||||||
@@ -1,6 +1,5 @@
|
|||||||
{
|
{
|
||||||
"replace": false,
|
"replace": false,
|
||||||
"values": [
|
"values": [
|
||||||
"#fzsd:module/scoreboard/assign/scoreboard/placement_count"
|
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
@@ -0,0 +1,6 @@
|
|||||||
|
{
|
||||||
|
"replace": false,
|
||||||
|
"values": [
|
||||||
|
"fzsd:game_event/callback/on_placed_liquid"
|
||||||
|
]
|
||||||
|
}
|
||||||
@@ -0,0 +1,7 @@
|
|||||||
|
{
|
||||||
|
"replace": false,
|
||||||
|
"values": [
|
||||||
|
"fzsd:game_event/callback/on_placed_solid",
|
||||||
|
"#fzsd:module/scoreboard/assign/scoreboard/placement_count"
|
||||||
|
]
|
||||||
|
}
|
||||||
@@ -0,0 +1,9 @@
|
|||||||
|
{
|
||||||
|
"replace": false,
|
||||||
|
"values": [
|
||||||
|
"minecraft:lava_bucket",
|
||||||
|
"minecraft:water_bucket",
|
||||||
|
"minecraft:powder_snow_bucket",
|
||||||
|
"#fzsd:bucket_of_mob"
|
||||||
|
]
|
||||||
|
}
|
||||||
@@ -0,0 +1,11 @@
|
|||||||
|
{
|
||||||
|
"replace": false,
|
||||||
|
"values": [
|
||||||
|
"minecraft:cod_bucket",
|
||||||
|
"minecraft:salmon_bucket",
|
||||||
|
"minecraft:axolotl_bucket",
|
||||||
|
"minecraft:tadpole_bucket",
|
||||||
|
"minecraft:pufferfish_bucket",
|
||||||
|
"minecraft:tropical_fish_bucket"
|
||||||
|
]
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user