#Blocks turn to other blocks?
27 messages · Page 1 of 1 (latest)
there is a lot of ways to implement this, also problems involved, like chunk not loaded after said time, is it real time in hours or minecraft hours? is this block already existing block or is it your block?
obviously the block exist and its minecraft time and the chuck is loaded
only you know the best way for your case
so you will need to come up with a solution for that
our solution will probably not cover all edge cases

if i was here for a joke i wouldve asked for one
Sorry about all that. It's probably possible if you use the setRandomTickCallback method on the block modification event
#off-topic message
[➤](#off-topic message) https://github.com/KubeJS-Mods/KubeJS/pull/762 Something like
this is actually great
i just need to know how to set the amount of ticks before it changes
// startup script
BlockEvents.modification(event => {
event.modify('immersiveengineering:storage_uranium', block => {
block.setIsRandomlyTicking(true)
block.setRandomTickCallback(callback => {
let { block } = callback
block.set('immersiveengineering:storage_lead')
})
})
})
like this??
yeah
bet
i don't know if its on 1.19 though.. i've only seen this PR on 1.20.1
[18:52:45] [ERROR] ! example.js#86: Error occurred while handling event 'BlockEvents.modification': TypeError: Cannot find function randomlyTicking in object Block{immersiveengineering:storage_uranium}.
does this mean it doesnt work?