Solved "can't be added to {items::*} because the former is not an object"

  • Welcome to skUnity!

    Welcome to skUnity! This is a forum where members of the Skript community can communicate and interact. Skript Resource Creators can post their Resources for all to see and use.

    If you haven't done so already, feel free to join our official Discord server to expand your level of interaction with the comminuty!

    Now, what are you waiting for? Join the community now!

  • LOOKING FOR A VERSION OF SKRIPT?

    You can always check out skUnity Downloads for downloads and any other information about Skript!

Status
Not open for further replies.

ThatOneSponk

Member
Jul 5, 2019
1
0
0
24
I am currently making a skript for a certain group of items randomly placed within a chest. I added some possible items I wanted in the list variable {items::*} and it doesn't seem to be working. (I checked to make sure my aliases were correct.
Code:
on load:
    add diamond, iron ingot, gold ingot, apple, bottle o' experience, lapis, book, feather, flint, stick, arrow, red mushroom, brown mushroom, bowl, mushroom stew, bow, iron sword, stone sword, wooden sword, wooden axe, stone axe, golden axe, golden sword, iron axe, steak, cooked porkchop, rotten flesh, poisonous potato, string, apple, golden apple, bread, and cooked chicken to {items::*}

error: "can't be added to {items::*} because the former is not an object"
 
Which version of Skript are you running?
If you are running 2.3.x or later, "bottle o' experience" is wrong
Here are the aliases for that:
Code:
(bottle[s] o' enchanting|xp bottle¦s|experience bottle¦s)
 
I am currently making a skript for a certain group of items randomly placed within a chest. I added some possible items I wanted in the list variable {items::*} and it doesn't seem to be working. (I checked to make sure my aliases were correct.
Code:
on load:
    add diamond, iron ingot, gold ingot, apple, bottle o' experience, lapis, book, feather, flint, stick, arrow, red mushroom, brown mushroom, bowl, mushroom stew, bow, iron sword, stone sword, wooden sword, wooden axe, stone axe, golden axe, golden sword, iron axe, steak, cooked porkchop, rotten flesh, poisonous potato, string, apple, golden apple, bread, and cooked chicken to {items::*}

error: "can't be added to {items::*} because the former is not an object"
I recommend adding a few items per line, so you can see which item causes the issue.
 
Status
Not open for further replies.