#Create a leash effect between player and Item

1 messages · Page 1 of 1 (latest)

neat nebula
#

So basically, what I want to make is a fishing-net-kinda thing, and to create the effect I thought it would be a cool idea throw out items as the things holding it together, which would have a lead "effect" attached to the player.
I came across the problem that you can only leash living entities, not things like dropped items.
Another idea I had was spawning foxes with the items in their mouth that were invisible and had NoAI nbt, but when I gave the the nbt tag they could not move anymore.
I hope someone can help me to get this or a similar effect
My current code:

    trigger:
        set {_loc} to location 5 meter in front of player
        loop 36 times:
            # Creating a circle to indicate where to launch the items
            add 10 to {_}
            set {_1} to 20 * cos({_})
            set {_2} to 20 * sin({_})
            set {_v} to spherical vector with radius 1, yaw of player + {_2}, pitch of player + {_1}
            set {_loc} to location of player
            add 1.75 to y-coordinate of {_loc}
            draw 5 of flame at {_loc} ~ {_v} with extra 0
            # Tried this with foxes:
            #set {_n} to nbt compound from "{Silent:1b,Invulnerable:1b,NoAI:1b}"
            #spawn fox at player with nbt {_n}
            #apply invisibility without any particles to last spawned entity for 10 minutes
            #push last spawned entity {_v}
            #make player leash last spawned entity
            # And the items
            drop cobweb named "test%{_}%" at location of player without velocity
            push last dropped item {_v}
            make last dropped item leash player # or make player leash last dropped item```
lyric helm
#

is there an error?

neat nebula
#

No errors, just doesn't create the leash

lyric helm
#

Ok

neat nebula
#

Anyone?

cunning fiber
#

I don't think you can leash an item

neat nebula
#

I had that idea to, but I couldn't figure out how to do it. Would be nice if someone could explain to me what I have to do

lyric helm
modest solar
#

i just wanna slee

neat nebula
#

Ah, there would be a problem because the concept I want requires the player to hold the net item to throw it out