#skript gives weird message idk how to fix
1 messages · Page 1 of 1 (latest)
i don't really have the patience to read it
then why bother answer?
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
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
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?
Yeah, anyways it's suggesting you to use %player's uuid% instead of %player%
is that all its saying?
Yeah
And also use lists
Ans also indent properly that script will not work
And*
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
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
No
need to ping
I saw it the first time
Also, please don't ping me if it's pointless
oh sry
Have you tried:
- Debugging it
- indenting
- Removing plain lapis
but what happens is it makes it into another lapis but dont give it
im a bit of a coding idiot so i do not rlly know how i indent it
You indent after any colon.
english isnt rlly my best language i do not know what indent mean
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?
it works nbow
Okay, there you go
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
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
do you have skbee?
just one named skript
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
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?