Solved remove event-item from event-block

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

vuurdraken

Member
Jul 23, 2017
3
0
0
Hi I am trying to remove the item that normally goes out of the dispenser from the inventory of the dispenser.

My code is:
Code:
on dispense:
    if {placer.%event-block%} is true:
        cancel event
        set block south of the event-block to event-item
        remove 1 event-item from the inventory of event-block

Is there someone who has a solution to this problem

Error code is:
'1 event-item' can't be removed from an inventory because the former is neither an item type nor an inventory (blockplacer.sk, line 5: remove 1 event-item from the inventory of event-block')
 
this syntax doesnt give any errors in parser
Code:
remove event-item from event-block
 
Status
Not open for further replies.