#give points when drop ore on cauldron
1 messages · Page 1 of 1 (latest)
if event-item is iron ore or gold ore or diamond ore:
if block under player is cauldron:
cancel event
remove 1 event-item from player's inventory
execute console command "points give %player% 10"
send "&aBạn đã nhận được &e10 points &avì ném quặng vào vạc!" to player```
@solid swift line 5 doesnt work
i cant see the docs how to remove drop
how to do that sir
- please dont ping me
- Can you
?
- You can indeed see this on the docs,
remove x from ywherexis an item andyis an inventory (such asplayer's inventory) - Why not just let the event happen instead of cancelling it? Then you can just kill the drop
can i have direct link sir
to the docs?
search for remove
im reading https://docs.skriptlang.org/docs.html
these have any different with https://skripthub.net/docs/ sir
Skript is a Bukkit plugin which allows server admins to customize their server easily, but without the hassle of programming a plugin or asking/paying someone to program a plugin for them.
I would recommend skripthub
if event-item is iron ore or gold ore or diamond ore:
if block under player is cauldron:
wait 1 tick
remove event-item from drops
execute console command "points give %player% 10"
send "&aBạn đã nhận được &e10 points &avì ném quặng vào vạc!" to player
skript said drops just can use in death event
kill and delete doesnt work also sir
it still doesnt work sir
if event-item is iron ore or gold ore or diamond ore:
if block under player is cauldron:
wait 1 tick
remove event-itementity
execute console command "points give %player% 10"
send "&aBạn đã nhận được &e10 points &avì ném quặng vào vạc!" to player
``` it same with event-entity and event-itementity and itemstack
why did you go back to remove?
if you look at the syntax for remove, its remove x from y. you have no y here
i use kill also
this is one of the examples on the docs:
why thats not listed as an event value i have no idea
wow it worked
me too im tired to find that
