Chunk Hopper

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

kamilleon

Member
Nov 18, 2017
48
0
6
24
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
 
use on drop event it same

idk if it work or no
and this only work with 1 block ( hopper)
Code:
on place:
    if name of player's held item is "&6Chunk Hopper":
        set {chunkhopper} to event-block
        loop all block in radius 16 around event-block:
                add loop-value to {chunkhopper.loc::*}
 
 
 
on drop:
     if event-location contains {chunkhopper::*}:
             remove event-entity
             add event-entity to inventory of {chunkhopper}
 
Status
Not open for further replies.