#How would I make a block detect other blocks to make a summoning structure?
1 messages · Page 1 of 1 (latest)
ahh I see that's what you were trying to do
the last one the you place should be the pumpkin right?
you are gonna need to use script on that
I'm setting up a script right now
oh, I think I got it
you're new on scripting?
yep learn the basics first
I only started coding a few days ago as well, and look where I am now
that's cool mob
how dod you disable the red when hurt?
is_hurt_color and on_fire_color in render controllers
ahhh I see thank you
Yw
Where did you start learning scripting and addon development? I might have to use that as a reference to help me out
Bridge and a few YouTube tutorials
wiki.bedrock.dev helps a lot as well
Alright thank you. I suppose its mostly the dedication but this helps
Ye
Yw
You even made him petrified, how cool!
Thanks
probably having to check block by block
that's quite simple really, all you need to do is to check if the block below is magma, if the blocks on the north and south or east and west are magma, and finely check if the block below is also magma if all the conditions are met, replace them with air and spawn your entity
world.afterEvents.playerPlaceBlock.subscribe((event) => {
const pumpkin = event.block
const core = pumpkin.below()
if (pumpkin.typeId != "lit_pumpkin") return
if (core.typeId != "magma") return
if (core.below().typeId != "magma") return
if (!((core.north().typeId != "magma" && core.south().typeId != "magma") || (core.east().typeId != "magma" && core.east().typeId != "magma"))) return
spawnGolem(core)
})
alright, did you use the same method?
Pretty much yea
glad it works
Same