#Blocks turn to other blocks?

27 messages · Page 1 of 1 (latest)

vernal garnetBOT
#

Once your ticket has been resolved, please close it with </ticket close:1054771505520717835> command!

harsh willow
#

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?

silent agate
#

obviously the block exist and its minecraft time and the chuck is loaded

silent agate
#

...

#

i assume there is not a good way to do it?

harsh willow
#

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

silent agate
#

???

#

so its not possible?

#

couldve just said

silent agate
#

if i was here for a joke i wouldve asked for one

frosty summit
#

Sorry about all that. It's probably possible if you use the setRandomTickCallback method on the block modification event
#off-topic message

mellow isleBOT
frosty summit
#

This PR has been approved

#

I don't think there is another way to do this though

silent agate
#

i just need to know how to set the amount of ticks before it changes

silent agate
# frosty summit I don't think there is another way to do this though
// 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??

frosty summit
#

yeah

silent agate
#

bet

frosty summit
#

i don't know if its on 1.19 though.. i've only seen this PR on 1.20.1

silent agate
#

it should

#

how do i make it so that it changes after a certain amount of ticks?

silent agate
#

does this mean it doesnt work?

frosty summit
#

possibly

#

i'm not sure