放置榜忽略流体,避免连点器刷榜
This commit is contained in:
parent
010ba03f41
commit
8afd7410d5
@ -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,9 +1,8 @@
|
|||||||
# 调用者: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
|
||||||
|
|
||||||
## 重置事件进度
|
## 重置事件进度
|
||||||
|
@ -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,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"
|
||||||
|
]
|
||||||
|
}
|
8
data/fzsd/tags/items/bucket_of_liquid.json
Normal file
8
data/fzsd/tags/items/bucket_of_liquid.json
Normal file
@ -0,0 +1,8 @@
|
|||||||
|
{
|
||||||
|
"replace": false,
|
||||||
|
"values": [
|
||||||
|
"minecraft:lava_bucket",
|
||||||
|
"minecraft:water_bucket",
|
||||||
|
"#fzsd:bucket_of_mob"
|
||||||
|
]
|
||||||
|
}
|
11
data/fzsd/tags/items/bucket_of_mob.json
Normal file
11
data/fzsd/tags/items/bucket_of_mob.json
Normal file
@ -0,0 +1,11 @@
|
|||||||
|
{
|
||||||
|
"replace": false,
|
||||||
|
"values": [
|
||||||
|
"minecraft:cod_bucket",
|
||||||
|
"minecraft:salmon_bucket",
|
||||||
|
"minecraft:axolotl_bucket",
|
||||||
|
"minecraft:pufferfish_bucket",
|
||||||
|
"minecraft:powder_snow_bucket",
|
||||||
|
"minecraft:tropical_fish_bucket"
|
||||||
|
]
|
||||||
|
}
|
Loading…
Reference in New Issue
Block a user