Hello everyone!
Well, I am starting to use script and I am having a hard time getting the result I want.
I am trying that when hitting an arrow in a bell, depending on the type of block that has underneath the bell, execute a command
I have achieved a similar result with the following code
Skrip version: 2.5.3
Minecraft version: 1.16.5
But how can I make it run only when the arrow hits the bell? because currently it runs whenever the arrow falls within 3 blocks of a bell
it doesn't matter if I hit it or not
and if I reduce the radius of the loop to less than 2, it doesn't always detect hits, I don't know why
I've tried looking for solutions in the forum but can't find anything to help me
I hope you understand what I mean, English is not my native language
Greetings to all and thanks
Well, I am starting to use script and I am having a hard time getting the result I want.
I am trying that when hitting an arrow in a bell, depending on the type of block that has underneath the bell, execute a command
I have achieved a similar result with the following code
Code:
on projectile hit:
shooter is a player:
if projectile is an arrow:
loop blocks in radius 3 of projectile:
loop-block is bell:
if block 2 under loop-block is bedrock:
delete projectile
make shooter say "hello"
Skrip version: 2.5.3
Minecraft version: 1.16.5
But how can I make it run only when the arrow hits the bell? because currently it runs whenever the arrow falls within 3 blocks of a bell
it doesn't matter if I hit it or not
and if I reduce the radius of the loop to less than 2, it doesn't always detect hits, I don't know why
I've tried looking for solutions in the forum but can't find anything to help me
I hope you understand what I mean, English is not my native language
Greetings to all and thanks