I'm trying to make a chunk hopper, but I don't know how to add the item to the hopper's inventory, this is what I've tried:
Code:
command /ch:
trigger:
give player 1 hopper named "&6Chunk Hopper"
on place:
if name of player's held item is "&6Chunk Hopper":
add location of event-block to {chunkhopper::placed::*}
on death:
if victim isn't player:
loop {chunkhopper::placed::*}:
loop all dropped items in radius 16 around loop-value:
add dropped item to inventory of loop-value-1
delete dropped item