Jump to content

Help with my Chunk Hopper Script


Palxz

Recommended Posts

Well im new with Skript and wanted to do a Chunk Hopper Skript

Here is the Skript i made

Command /ChunkHopper:
  Aliases:/CHopper
  Trigger:
    give a hopper named "&8Chunk Hopper" to the player

On break of Hopper:
  if {ChunkHopper::*} contains event-block's location:
    remove event-block's location from {ChunkHopper::*}

On Place of Hopper:
  if name of player's held item is "&8Chunk Hopper":
    add event-block's location to {ChunkHopper::*} 
  
every second:
  loop {ChunkHopper::*}:
    loop entities of chunk of loop-value:
      if "%loop-value-2%" is "dropped item":
        add %amount of dropped item% loop-value-2 to inventory of block at loop-value-1
        delete loop-value-2

_________________________________________________________

i have been like 3 hours doing this and still cant find the problem so i though i could ask for help here.

Edited by Palxz
new script and still error
Link to comment
Share on other sites

If u also want the error i got there is it:

 

%amount of dropped item% loop-value-2' can't be added to an inventory because the former is neither an item type nor an inventory (ChunkHopper.sk, line 18: add %amount of dropped item% loop-value-2 to inventory of block at loop-value-1')

Edited by Palxz
new script and still error
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...