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?
I tryied 2 dropping methods, but it doesnt change anything.
Full Code:
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 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?
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