Does anyone know of a command to make only certain items disappear when they're dropped from being killed? Like you die, so all of your arrows will delete themselves, yet the bow will remain, so you have to travel to where you died to pick it up.
Or maybe have only certain items be removed from your inventory when you die, but still drop the rest of your stuff.
Any way to to either of these?
Rollback Post to RevisionRollBack
AKA: OwenConner
Don't be surprised if one day I take over the front page of the Forum Games, and then disappear for months at a time. It happens.
You can set a scoreboard objective for each item you don't want dropped, with a command on a clock saying /scoreboard players set @e[type=Item,id=minecraft:id] score 1 then have /kill @e[score_score_min=1]
Don't quote me on this, I haven't tested it.
Rollback Post to RevisionRollBack
Also take a look at this guide if you are requesting builders for a server/project.
Please note, if I deny a suggestion because it is already possible, then I mean it is already possible withing 10 command blocks (That do not spawn other command blocks) or up to 5 creations (Command blocks that spawn other command blocks) to make your suggestion.
If I critique your suggestion I am not hating on you. Learn the difference.
The Meaning of Life, the Universe, and Everything.
Location:
Stockholm
Join Date:
9/26/2011
Posts:
140
Member Details
You're on the right track, but the command is off. You'll need something like this:
scoreboard players set @e[type=Item] ItemsToDelete 1 {Item:{id:minecraft:arrow}}
kill @e[score_ItemsToDelete_min=1]
That will remove all arrows dropped anywhere though. Getting that to only happen around players that die would be more difficult, but is definitely doable.
Or maybe have only certain items be removed from your inventory when you die, but still drop the rest of your stuff.
Any way to to either of these?
AKA: OwenConner
Don't be surprised if one day I take over the front page of the Forum Games, and then disappear for months at a time. It happens.
------------------------------------------------------------------------------
------------------------------------------------------------------------------
I was going to put a list of words of wisdom here, but I think I'll put this here instead
Don't quote me on this, I haven't tested it.
Also take a look at this guide if you are requesting builders for a server/project.
Please note, if I deny a suggestion because it is already possible, then I mean it is already possible withing 10 command blocks (That do not spawn other command blocks) or up to 5 creations (Command blocks that spawn other command blocks) to make your suggestion.
If I critique your suggestion I am not hating on you. Learn the difference.
scoreboard players set @e[type=Item] ItemsToDelete 1 {Item:{id:minecraft:arrow}}
kill @e[score_ItemsToDelete_min=1]
That will remove all arrows dropped anywhere though. Getting that to only happen around players that die would be more difficult, but is definitely doable.