Hello fellow skripters!
I tried to make a skript where it automatically turns ingots into blocks
This is what I have:
It doesn't give me any errors, it just doesn't work.
[doublepost=1584130179,1584127161][/doublepost]
I have figured out what i did wrong!
I tried to make a skript where it automatically turns ingots into blocks
This is what I have:
Code:
on block break:
if event-block is lapis ore:
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
if {lapis.%player%} is greater than or equal to 19:
remove 18 lapis from player's inventory
give player 2 lapis block
if {lapis.%player%} is greater than or equal to 28:
remove 27 lapis from player's inventory
give player 3 lapis block
if {lapis.%player%} is greater than or equal to 37:
remove 36 lapis from player's inventory
give player 4 lapis block
if {lapis.%player%} is greater than or equal to 46:
remove 45 lapis from player's inventory
give player 5 lapis block
It doesn't give me any errors, it just doesn't work.
[doublepost=1584130179,1584127161][/doublepost]
Hello fellow skripters!
I tried to make a skript where it automatically turns ingots into blocks
This is what I have:
Code:on block break: if event-block is lapis ore: 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 if {lapis.%player%} is greater than or equal to 19: remove 18 lapis from player's inventory give player 2 lapis block if {lapis.%player%} is greater than or equal to 28: remove 27 lapis from player's inventory give player 3 lapis block if {lapis.%player%} is greater than or equal to 37: remove 36 lapis from player's inventory give player 4 lapis block if {lapis.%player%} is greater than or equal to 46: remove 45 lapis from player's inventory give player 5 lapis block
It doesn't give me any errors, it just doesn't work.
I have figured out what i did wrong!