#Help me on this small skript

1 messages · Page 1 of 1 (latest)

ocean sail
#

on left click:
if target block is grass block:
if player is holding a stick:
send "&2Added 1$ to your balance!" to player
else of target block is grass block:
if player is holding a stick:
if player's offhand tool is flint:
send "&2Added 111$ to your balance!" to player

idle dirge
#

!format

heady archBOT
# idle dirge !format

Code Blocks

To make it easier for others to read your code, it is asked that you send it in a code block. On Discord, you can simply send this:

```
Code here
```

ocean sail
#
on left click:
   if target block is grass block:
   if player is holding a stick:
      send "&2Added 1$ to your balance!" to player
   else of target block is grass block:
   if player is holding a stick:
   if player's offhand tool is flint:
      send "&2Added 111$ to your balance!" to player
#

noice

idle dirge
#

Your indentation is off

ocean sail
#

let me fix that

idle dirge
#

The target block check doesnt need to be put twice since you are checking for the same block

ocean sail
#

Ok

#

So what do I do?

idle dirge
#

You can actually simply this a lot

#

Send what you have rn

ocean sail
#

k

#
on left click:
   if target block is grass block:
   if player is holding a stick:
      send "&2Added 1$ to your balance!" to player
   if player's offhand tool is dirt:
      send "&2Added 11 to your balance!" to player

i try this but i got the same problem

idle dirge
#

Yeah, you still didnt fix indentation

#

The target block check is useless

ocean sail
#

ok

idle dirge
#

Also

#

Just add an else after the offhand check

#

Then put the $1 thing there

ocean sail
#

Bro i am so bad at skripting

#

i got the same problem

on left click:
   if target block is grass block:
      if player is holding a stick:
      send "&2Added 1$ to your balance!" to player
   else if player's offhand tool is dirt:
   if player is holding a stick:
      send "&2Added 11 to your balance!" to player
   
#

can you just send the skript : ))

idle dirge
#

Again

#

Its mainly your indentation

#
event
  target block check
    stick check
      offhand check
        send $11
      else
        send $1
ocean sail
#
on left click:
  if target block is grass block:
    if player is holding a stick:
      send "&2Added 1$ to your balance!" to player
    else if player's offhand tool is dirt:
      send "&2Added 11 to your balance!" to player

now if i hold my stick i only get $1 ;I

idle dirge
#

Ye, thats not what i wrote

ocean sail
#

oh\

#


on left click:
  if target block is grass block:
    if player is holding a stick:
      if player's offhand tool is dirt:
        send "&2Added 1$ to your balance!" to player
      else
        send "&2Added 11 to your balance!" to player

dd..d.dosnt work ;(