In Minecraft 1.14 and later versions, it is possible to copy the player's inventory to a chest without killing the player.
/data modify block <coordinates of chest> Items set from entity <player> Inventory
Note that this only copies the hotbar and the bottom two rows of the player's inventory, since players can carry slightly more stuff than can fit in a chest. If you want to copy the player's entire inventory to a double chest, you need a much more complicated trick.
To add a link to text in a tellraw
command, add a "clickEvent"
object to each of the objects in your JSON of the tellraw. Then add a "action":"open_url"
and a "value":"URL_HERE"
value to each of the "clickEvent"
objects, replacing URL_HERE
with the url you want. So in the end it will look something like this:
/tellraw @p [{"text":"TEXT","clickEvent":{"action":"open_url","value":"http://example.com/"}}]
I ran your text through a tellraw generator, and added the clickEvent
object with the values to it. Here is your command:
/tellraw @p [{"color":"white","bold":true,"text":"InFinite 16x ","clickEvent":{"action":"open_url","value":"http://p.finsgraphics.com/15pVO"}},{"bold":true,"color":"dark_gray","text":"1.9 3D ","clickEvent":{"action":"open_url","value":"http://p.finsgraphics.com/15pVO"}},{"bold":true,"color":"gold","text":"[V1] ","clickEvent":{"action":"open_url","value":"http://p.finsgraphics.com/15pVO"}},{"bold":true,"color":"white","text":"Download Link: ","clickEvent":{"action":"open_url","value":"http://p.finsgraphics.com/15pVO"}},{"bold":false,"color":"white","text":"p.finsgraphics.com/15pVO","clickEvent":{"action":"open_url","value":"http://p.finsgraphics.com/15pVO"}}]
Best Answer
You can use the
deathCount
scoreboard criterion. Create atempDeaths
objective which will increment automatically when a player dies:Then create another objective called
deaths
that will be incremented manually:The reason for the two objectives is so that a player dying (which will increase
tempDeaths
) can be detected by testing if it is at least 1.tempDeaths
will then be reset to 0 so that the tellraw message will not show constantly.deaths
will also be manually incremented, which will be displayed in the message.Put the following in these command blocks.
Repeating, unconditional, always active: checks each player if they have died 1 or more times and if they have, increment the
deaths
objective.Repeating, unconditional, always active: shows "Death, #" to the player who died.
Chain, conditional, always active: resets
tempDeaths
. This command block needs to be placed so that one of the repeating command blocks is directly behind it (so that this command block is facing away from the repeating one and that the repeating one is facing towards this one).