#give points when drop ore on cauldron

1 messages · Page 1 of 1 (latest)

polar vine
#
    if event-item is iron ore or gold ore or diamond ore:
        if target block is cauldron:
            cancel event
            remove event-item from player
            add 10 points to player's points
            send "&aBạn đã nhận được &e10 points &avì ném quặng vào vạc!" to player
solid swift
#

whats wrong with this?

#

If you dont know, have you tried debugging?

polar vine
#
    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
solid swift
polar vine
#

can i have direct link sir

solid swift
#

to the docs?

#

search for remove

polar vine
#

im reading https://docs.skriptlang.org/docs.html
these have any different with https://skripthub.net/docs/ sir

solid swift
#

I would recommend skripthub

polar vine
#
    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

solid swift
#

yes

#

you can instead kill or delete the event-item as I said earlier

polar vine
#

kill and delete doesnt work also sir

ember tendon
polar vine
#

it still doesnt work sir

solid swift
polar vine
#
    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
solid swift
#

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

polar vine
#

i use kill also

solid swift
#

this is one of the examples on the docs:

#

why thats not listed as an event value i have no idea

polar vine
#

wow it worked

polar vine