item entity XXXX has no item - Drop that shuldn't be dropped.

  • 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.

krainser

Member
Jan 27, 2017
60
3
3
35
Argentina
Skript Version: 2.2-dev34
Skript Author: Bensku
Minecraft Version: 1.10.2

Well, I want to make a custom drop ores skript for a mini game, buuuts randomly (more often in the redstone ore) drops a smooth stone that is never written in the skript code. That naughty stone seems dropping an error that is spamming the console: [ERROR]: Item entity XXXX has no item And i put "XXXX" because its shows random numbers from 3 to 4 digits. I found out reading in java forums that is cause when a "illegal" item is spawned and only stops spamming when its picked up or destroyed. Actually this is giving me headaches. Any clue? :emoji_frowning:

I tryied 2 dropping methods, but it doesnt change anything.

Full Code:
code_language.skript:
on break:
    set {_l} to location at event-block
    if event-block is cobblestone:
        if {StoneOres::%{_l}%} is set:
            cancel event
            set block at {_l} to air
            wait 1 tick
            add 1 cobble to {_drops::*}
            chance of 20%:
                add 1 cobble to {_drops::*}
            chance of 20%:
                add 1 iron ore to {_drops::*}
            chance of 20%:
                add 1 redstone ore to {_drops::*}
            drop {_drops::*} at {_l}
            wait 30 seconds
            set block at {_l} to cobblestone
            stop trigger
    if event-block is redstone ore:
        if {RedStoneOres::%location at event-block%} is set:
            cancel event
            set block at {_l} to air
            wait 1 tick
            drop 1 redstone ore
            chance of 20%:
                drop 1 redstone
            chance of 20%:
                drop 1 iron ore
            chance of 20%:
                drop 1 cobble
            wait 30 seconds
            set block at {_l} to redstone ore
            stop trigger


Errors on Reload: None


Console Errors: (if applicable) It just spam that message, until the smooth stone is picked up


Addons using (including versions):
TusKe (last), Skellet, SkStuff

Have you tried searching the docs? Yes
Have you tried searching the forums? Yes
What other methods have you tried to fix it? Trying to clean the entity, but it doesnt trigger the event (¿?), when on break event gets cancelled, I stop the trigget and the smooth stone keeps spawning
 
Skript Version: 2.2-dev34
Skript Author: Bensku
Minecraft Version: 1.10.2

Well, I want to make a custom drop ores skript for a mini game, buuuts randomly (more often in the redstone ore) drops a smooth stone that is never written in the skript code. That naughty stone seems dropping an error that is spamming the console: [ERROR]: Item entity XXXX has no item And i put "XXXX" because its shows random numbers from 3 to 4 digits. I found out reading in java forums that is cause when a "illegal" item is spawned and only stops spamming when its picked up or destroyed. Actually this is giving me headaches. Any clue? :emoji_frowning:

I tryied 2 dropping methods, but it doesnt change anything.

Full Code:
code_language.skript:
on break:
    set {_l} to location at event-block
    if event-block is cobblestone:
        if {StoneOres::%{_l}%} is set:
            cancel event
            set block at {_l} to air
            wait 1 tick
            add 1 cobble to {_drops::*}
            chance of 20%:
                add 1 cobble to {_drops::*}
            chance of 20%:
                add 1 iron ore to {_drops::*}
            chance of 20%:
                add 1 redstone ore to {_drops::*}
            drop {_drops::*} at {_l}
            wait 30 seconds
            set block at {_l} to cobblestone
            stop trigger
    if event-block is redstone ore:
        if {RedStoneOres::%location at event-block%} is set:
            cancel event
            set block at {_l} to air
            wait 1 tick
            drop 1 redstone ore
            chance of 20%:
                drop 1 redstone
            chance of 20%:
                drop 1 iron ore
            chance of 20%:
                drop 1 cobble
            wait 30 seconds
            set block at {_l} to redstone ore
            stop trigger


Errors on Reload: None


Console Errors: (if applicable) It just spam that message, until the smooth stone is picked up


Addons using (including versions):
TusKe (last), Skellet, SkStuff

Have you tried searching the docs? Yes
Have you tried searching the forums? Yes
What other methods have you tried to fix it? Trying to clean the entity, but it doesnt trigger the event (¿?), when on break event gets cancelled, I stop the trigget and the smooth stone keeps spawning
Smooth stone is the default item if the ID is not set. Maybe, because you have 3x 20% chances, if all the chances don't get triggered and you use 'drop {_drops::*} at {_l}' so maybe try testing if {_drops::*} is set so that then it will drop. Example:
code_language.skript:
            chance of 20%:
                add 1 of cobble to {_drops::*}
            chance of 20%:
                add 1 of iron ore to {_drops::*}
            chance of 20%:
                add 1 of redstone ore to {_drops::*}
            if {_drops::*} is set:
                 drop {_drops::*} at {_l}
            else:
                 drop 1 of cobblestone at {_l}

Also, try using 'add 1 of <item> to {_drops::*}' instead of what you are using now (maybe that works)

** EDIT: i just realised you had a 'add 1 cobble to {_drops::*}' line, i have no idea anymore
 
Status
Not open for further replies.