on block break

  • 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 community!

    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.

Donat_Rage

Member
May 21, 2020
3
0
1
Skript Version (do not put latest): Skript 2.5 (or 2.4 im not realy sure im using minehut)
Skript Author:
Minecraft Version:
1.15.2
---
Full Code:
Code (Skript):
  1. command /bitcoin:
    2. aliases: /bit
    3. trigger:
    4. message "&7the ammount of bitcoin u currently have is &a%{bitcoin::%player%}%.00"
    5. on block break:
    6. if event-block is beacon:
    7. set {bitcoin%player%} to {bitcoin::%player%} + 1
    8. message "&7 You Gained +1 Bitcoin"


Errors on Reload:
Code (Skript):

  1. can't understand this condition: 'on block break' (bitcoin.sk, line 8: on block break:')
i have alredy tested on break of beacon

sorry for bad english if there is bad english im sorry
 
try this
Code:
command /bitcoin:
    aliases: /bit
    trigger:
        message "&7the ammount of bitcoin u currently have is &a%{bitcoin::%player%}%.00"

on break:
    if event-block is a beacon:
        set {bitcoin%player%} to {bitcoin::%player%} + 1
        message "&7 You Gained +1 Bitcoin"
 
Status
Not open for further replies.