Skip to content
This repository has been archived by the owner on Apr 18, 2024. It is now read-only.

Commit

Permalink
Make dynamo able to be broken
Browse files Browse the repository at this point in the history
  • Loading branch information
Leclowndu93150 committed Mar 22, 2024
1 parent a7ed6ea commit 5af583f
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 2 deletions.
10 changes: 9 additions & 1 deletion kubejs/server_scripts/Block_Events.js
Original file line number Diff line number Diff line change
@@ -1,8 +1,16 @@
// For some unholy reason watercondenser refuses to work with loottables, so I gotta fight jank with jank
BlockEvents.broken(event =>{
BlockEvents.broken(event => {
if (event.block.id != 'watercondenser:watercondenser') return
let wc = event.block.createEntity('item')
wc.item = Item.of('watercondenser:watercondenser')
wc.item.count = 1
wc.spawn()
})

BlockEvents.broken(event => {
if (event.block.id != 'steamdynamo:steam_dynamo') return
let wc = event.block.createEntity('item')
wc.item = Item.of('steamdynamo:steam_dynamo')
wc.item.count = 1
wc.spawn()
})
2 changes: 1 addition & 1 deletion kubejs/server_scripts/unification/tags.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 5af583f

Please sign in to comment.