#MERGE EVENT
1 messages · Page 1 of 1 (latest)
People here won't/shouldn't make a script for you. Try by yourself first, read the docs and experiment. Get a script done, and when you have a base, then we can help you perfect it.
sure i try hard to made this but it still does'not works and because my english verry bad so i have a big hard to read document bro on drop of torch:
set {_torches::} to all dropped items
if size of {_torches::} is 3:
set {_locations::} to {}
loop {_torches::}:
add location of loop-value to {_locations::}
create explosion at {_locations::} with power 5
create a diamond pickaxe at {_locations::1} with efficiency 5
```
code
```
...
set {_torches::} to all dropped items
if size of {_torches::} is 3:
set {_locations::} to {}
loop {_torches::}:
add location of loop-value to {_locations::}
create explosion at {_locations::} with power 5
create a diamond pickaxe at {_locations::1} with efficiency 5
thanks i get it
Instead of getting ALL dropped items, just loop in a small radius
sorry i dont get it sir can you give me a exampe
loop all blocks in radius 50 around event-block:
if loop-block is diamond block:
add 1 to {_diamondCount}
if {_diamondCount} > 9:
send “there are too many diamond here! Place this farther away!” to player
cancel event
stop```
hi sir i trying but it does'nt work
on drop of diamond ore:
loop all blocks in radius 3 around event-block:
if loop-blocks is diamond ore:
add 1 to {_diamondCount}
if {_diamondCount} > 9:
give diamond pickaxe to player
cancel event
stop
Youre looping blocks not items
Loop dropped items
And maybe drop the pickaxe at event-location instead of giving
And you dont need the cancel event here
i want when i drop 9 diamond it fuse and turn to pickaxe
how to fix it sir
On drop, check if the item that was dropped was a diamond, then if there are 8 nearby
can i have a base from you i cant understand
if event-item is a sponge:
wait 1 tick
wait 1 second
loop all dropped items in radius 2 around event-item:
if type event-item is sugar:
kill loop-item
drop 1 x at event-items location
kill event-item
stop```
it happen sir
Maybe just items