On break of minecart?

  • Welcome to skUnity!

    Welcome to skUnity! This is a forum where members of the Skript community can communicate and interact. Skript Resource Creators can post their Resources for all to see and use.

    If you haven't done so already, feel free to join our official Discord server to expand your level of interaction with the comminuty!

    Now, what are you waiting for? Join the community now!

  • LOOKING FOR A VERSION OF SKRIPT?

    You can always check out skUnity Downloads for downloads and any other information about Skript!

Status
Not open for further replies.

Blep

New Member
Jun 23, 2020
9
0
1
25
I know the answer is probably posted somewhere obscure, but the only answer that I could find with 30 minutes of searching was something that I couldn't get to work. So, my issue is that when a player breaks a minecart with a chest, it should cancel the drops and drop a minecart with chest. So I thought it would look something like the code below, but I just can't get it to work. Help?


Code:
on death:
    if victim is minecart with chest:
        cancel the drops
        give a minecart with chest to attacker
 
That wasn't really my issue. My issue was it wasn't seeing that the minecart was broken
ahh, there was another event trigger that I was looking at on the approach for that, and the parser wasn't super sure about the minecart, sorry that I couldn't help you with that.
 
Status
Not open for further replies.