Hello, I have the following code:
I wanted to have the pickaxe appear in a random slot from 45 to 53, every time the player opens the gui. However, it doesn't. The only error I get is "Numeric IDs are not supported anymore"...
Code:
on right click on entity:
if name of clicked entity is "gui":
set {_gui} to a new chest inventory with 6 row with name "*"
set {_numbers::*} to "45", "46", "47", "48", "49", "50", "51", "52" and "53"
set {_switch} to random element of {_numbers::*}
set slot {_switch} of {_gui} to diamond pickaxe with damage 33
open {_gui} to player
I wanted to have the pickaxe appear in a random slot from 45 to 53, every time the player opens the gui. However, it doesn't. The only error I get is "Numeric IDs are not supported anymore"...