Skip to content

Commit

Permalink
fix tall grass id
Browse files Browse the repository at this point in the history
  • Loading branch information
friendlyhj committed Sep 27, 2023
1 parent 77abbac commit 93456c3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions easy/drops/dropt/examples-using.md
Original file line number Diff line number Diff line change
Expand Up @@ -140,8 +140,8 @@ Dropt.list("grass_drop")
// 创建一个 Rule 对象
Dropt.rule()

// 为父 Rule 对象添加匹配破坏 "minecraft:tallgrass:*" 的条件 (使用 META 通配符匹配所有高草丛)
.matchBlocks(["minecraft:tallgrass:*"])
// 为父 Rule 对象添加匹配破坏 "minecraft:double_plant:2" 的条件 (高草丛的 ID)
.matchBlocks(["minecraft:double_plant:2"])

// 将父 Rule 对象的替换策略从默认的 "REPLACE_ALL" 切换为 "ADD"
.replaceStrategy("ADD")
Expand Down

0 comments on commit 93456c3

Please sign in to comment.