Skip to content

Commit

Permalink
Make better end chests switch into lootr chests
Browse files Browse the repository at this point in the history
  • Loading branch information
IThundxr committed Nov 1, 2024
1 parent 384765d commit e33bb4d
Show file tree
Hide file tree
Showing 3 changed files with 35 additions and 2 deletions.
2 changes: 1 addition & 1 deletion index.toml
Original file line number Diff line number Diff line change
Expand Up @@ -416,7 +416,7 @@ hash = "74e30b1d2dadd419b04dcecc8c690ff9b8b06dcc1badffc45fe33ec127694035"

[[files]]
file = "kubejs/server_scripts/tags.js"
hash = "513d30faad111c24ea1c41155cf68e8858000827a645b99ac0bdf0f3ab9cb966"
hash = "8eafb91a8a114e411374074fc8661014163a86c161756f8bf087af76bf0abc6c"

[[files]]
file = "mods/3dskinlayers.pw.toml"
Expand Down
33 changes: 33 additions & 0 deletions kubejs/server_scripts/tags.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,29 @@
let better_end_chests = [
"betterend:mossy_glowshroom_chest",
"betterend:end_lotus_chest",
"betterend:pythadendron_chest",
"betterend:lacugrove_chest",
"betterend:dragon_tree_chest",
"betterend:tenanea_chest",
"betterend:helix_tree_chest",
"betterend:umbrella_tree_chest",
"betterend:jellyshroom_chest",
"betterend:lucernia_chest"
]

let better_end_barrels = [
"betterend:mossy_glowshroom_barrel",
"betterend:end_lotus_barrel",
"betterend:pythadendron_barrel",
"betterend:lacugrove_barrel",
"betterend:dragon_tree_barrel",
"betterend:tenanea_barrel",
"betterend:helix_tree_barrel",
"betterend:umbrella_tree_barrel",
"betterend:jellyshroom_barrel",
"betterend:lucernia_barrel"
]

let non_movable = [
"armourers_workshop:skin-library-creative",
"create:creative_motor",
Expand All @@ -13,6 +39,13 @@ let bottomless_allow = [
]

ServerEvents.tags("block", (event) => {
better_end_chests.forEach((id) => {
event.add("lootr:convert_chests", id);
})
better_end_barrels.forEach((id) => {
event.add("lootr:convert_barrels", id);
})

non_movable.forEach((id) => {
event.add("create:non_movable", id);
})
Expand Down
2 changes: 1 addition & 1 deletion pack.toml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ pack-format = "packwiz:1.1.0"
[index]
file = "index.toml"
hash-format = "sha256"
hash = "74d77934a62d9aa7b237343f930a988be69bb5852dcecfc966f631a70b91cbbb"
hash = "35de9b0f28fa88892ce9a27f97189b216b7fd2f25edeb45e7f9d1784bd70e2df"

[versions]
fabric = "0.16.5"
Expand Down

0 comments on commit e33bb4d

Please sign in to comment.