Solved Drop an item stored in a variable not working

  • 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 community!

    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!

descreetOP

Member
Jan 2, 2024
11
2
3
on join:
set {CustomItem::TestItem} to redstone with name "&4&lTEST" with lore "&7Test1" and "&8Test2"

on death:
if victim is a sheep or pig or cow or chicken or donkey or horse or villager:
feed attacker by 2 beefs
chance of 33%:
drop {CustomItem::TestItem} at victim's location
This code gives an error on the last line:

"Can't understand this condition/effect: drop {CustomItem::TestItem} at victim's location"

But if the code is like this:
drop redstone with name "&4&lTEST" with lore "&7Test1" and "&8Test2" at victim's location
The code works perfectly

Why?
 
Last edited: