#skript gives weird message idk how to fix

1 messages · Page 1 of 1 (latest)

lucid skiff
#

#skript-help-3 message i send it in skript help 3 and i dont got patience to wewrite the msg

wicked wave
#

i don't really have the patience to read it

lucid skiff
#

then why bother answer?

wicked wave
#

then why bother post?

#

we put in our own time to help people

#

the least you could do is put in some effort to make it not a pain on our end

lucid skiff
#

ok ill send it in here

#

Dont know why it gives this msg any help?
on block break:
If event-block is lapis ore:
if player's offhand tool is lapis named "&9Lapis Auto Compresser":
set {lapis.%player's uuid%} to amount of lapis in player's inventory
if {lapis.%player's uuid%} is greater than or equal to 10:
remove 9 lapis from player's inventory
give player 1 lapis block

#

there we go

lucid sundial
#

.format

#

@nova forum

#

.format

lucid skiff
#

huh

#

.format

lucid sundial
#

@ocean trellis mb

#

.format

#

The bots offline ig

#

Anyways
`

 # code here

`

lucid skiff
#
on block break:
    If event-block is lapis ore:
    if player's offhand tool is lapis named "&9Lapis Auto Compresser":
        set {lapis.%player%} to amount of lapis in player's inventory
        if {lapis.%player%} is greater than or equal to 10:
            remove 9 lapis from player's inventory
            give player 1 lapis block
#

like that?

lucid sundial
#

Yeah, anyways it's suggesting you to use %player's uuid% instead of %player%

lucid skiff
#

is that all its saying?

lucid sundial
#

Yeah

#

And also use lists

#

Ans also indent properly that script will not work

#

And*

hot maple
#

Use lists, and that means that you didn't indent properly as lunar said

lucid skiff
#

on block break:
If event-block is lapis ore:
if player's offhand tool is lapis named "&9Lapis Auto Compresser":
set {lapis.%player's uuid%} to amount of lapis in player's inventory
if {lapis.%player's uuid%} is greater than or equal to 129:
remove 128 lapis from player's inventory
give player 1 lapis lazuli named "&9Compressed Lapis"
the skript works but only once and then dont work anymore

lucid skiff
# hot maple Use lists, and that means that you didn't indent properly as lunar said

on block break:
If event-block is lapis ore:
if player's offhand tool is lapis named "&9Lapis Auto Compresser":
set {lapis.%player's uuid%} to amount of lapis in player's inventory
if {lapis.%player's uuid%} is greater than or equal to 129:
remove 128 lapis from player's inventory
give player 1 lapis lazuli named "&9Compressed Lapis"
the skript works but only once and then dont work anymore

hot maple
#

No

#

need to ping

#

I saw it the first time

#

Also, please don't ping me if it's pointless

lucid skiff
#

oh sry

hot maple
#

Have you tried:

  • Debugging it
  • indenting
  • Removing plain lapis
lucid skiff
#

but what happens is it makes it into another lapis but dont give it

lucid skiff
hot maple
#

You indent after any colon.

lucid skiff
#

english isnt rlly my best language i do not know what indent mean

hot maple
#

press tab

#

put 4 spaces

lucid skiff
#

ok

#
    If event-block is lapis ore:
        if player's offhand tool is lapis named "&9Lapis Auto Compresser":
            set {lapis.%player's uuid%} to amount of lapis in player's inventory
            if {lapis.%player's uuid%} is greater than or equal to 129:
                remove 128 lapis from player's inventory
                give player 1 lapis named "&9Compressed Lapis"```
#

like that?

hot maple
#

Please send it in a code block

#

```vb
code```

lucid skiff
#

how do i make the '

#

nvm

hot maple
#

hmmm

#

Again, use lists

#

and again, debug it

lucid skiff
#

it works nbow

hot maple
#

Okay, there you go

lucid skiff
#

one last question give player 1 lapis block named "&9Compressed Lapis" of mending 1 with nbt "{HideFlags:61}" im tryna hide the enchants so it glows but dont show the enchants when i hide my cursor over it

wicked wave
#

..of mending 1 with all flags hidden

#

...with nbt compound from "{HideFlags:61}"

lucid skiff
#

on block break:
If event-block is lapis ore:
if player's offhand tool is lapis named "&9Lapis Auto Compresser":
set {lapis.%player's uuid%} to amount of lapis in player's inventory
if {lapis.%player's uuid%} is greater than or equal to 129:
remove 128 lapis from player's inventory
give player 1 lapis block named "&9Compressed Lapis" of mending 1 with all flags hidden

hot maple
#

...

#

of mending 1 goes before the name

lucid skiff
#

still dont work

#

same message

wicked wave
#

do you have skbee?

lucid skiff
#

just one named skript

wicked wave
lucid skiff
#

now wat i do

#

i downloaded it

#

wait no i already got it

#

its a co server between me and my friends so i think he downloaded it before

hot maple
#

remove the 1

#

try that

lucid skiff
#
    If event-block is lapis ore:
        if player's offhand tool is lapis named "&9Lapis Auto Compresser":
            set {lapis.%player's uuid%} to amount of lapis in player's inventory
            if {lapis.%player's uuid%} is greater than or equal to 129:
                remove 128 lapis from player's inventory
                give player 1 lapis block of mending named "&9Compressed Lapis" with all flags hidden```
#

like that?

hot maple
#

Actually,

#

It parses fine