#JackHammer custom enchant

1 messages · Page 1 of 1 (latest)

dusk berry
#

Okay so basically all I want is for when a block is mined it loops all blocks in the same y level as the event-block BUT if it detects bedrock then it does not loop any blocks past the bedrock, is that possible?

dusk berry
#

Or is there a way to make it possible that it only loops blocks in a region with world guard?

dusk berry
#

Hm

dusk berry
#

Imma go to sleep and hope for a response when i wake up

slim plinth
dusk berry
#

You can't just say read the docs without telling me where to go in the docs, or I've got a better idea, just tell it to me, I made this thread for direct help, not click this or go here and do this. I've already done that, this is always my last resort, I search it, as others, look at the docs, then I come here

slim plinth
#

okay first of all is the mine 1 region?

#

then just set a variabel the to current y-level of the block break-

#

and then the rest is logic

dusk berry
#

Okay well, could you actually show me the code, like I got no idea what I'm doing

still garden
#

you could try using the players y level but that wouldn’t work if they are flying

dusk berry
#

They will be flying sooo

#

I need a way that like loops on blocks on the y level of the event-block (the block they have mined) but if it doesnt loop blocks past bedrock, or use regions

dusk berry
#

So I'm guessing there isnt anyone that might be able to help me?

slim plinth
shy kindle
#

y coordinate of location of event-block

lament terrace
#

(event-block’s location)’s y coord

dusk berry
slim plinth
#

Okay then just loop all blocks in region where y-level is the same dude not that Hard to think yourself

modern knot
#

no one is writing the code for you

#

or maybe xD

#

Okay so basically all I want is for when a block is mined it loops all blocks in the same y level as the event-block BUT if it detects bedrock then it does not loop any blocks past the bedrock, is that possible?

#

ok

#

so you want to loop all blocks around the player in a radius

#

where [input is not bedrock]

#

and add a statement if y cord of loop-value is the y cord u want theen do stuff

#

i think using this u should be able to make the code

slim plinth
#

Just make the mine a region

dusk berry
#

Okay, I have tried absolutely everything I know, can someone plese just tell me how to loop all blocks on the y coord of the event block, that is legit all I need, and I do not have clue on how to do it