Have you ever had the problem with adventure maps where you accidently press [Q] and drop your "Key" into a pool of lava and then have to redownload the whole map because of one single item? Well, here is the solution.
Pros and Cons
Pros
+ Instantly gives all dropped items to the player nearest to them.
+ No items can get lost or despawned.
+ No lag from dropped items.
+ Four Command Blocks cover every item.
+ Multiplayer Friendly.
Cons
+ Dropped items from mobs will also instantly go to the players.
+ There is a chance that items can be transferred between players if they are standing extremely close.
How do I get this in my world?
You can either build it with the commands below or use my 1-Command.
1-Command
Firstly you need a command_block, you can get one by typing:
/give @p minecraft:command_block
Now place the Command Block in an open area and enter this long command.
When you have entered it, activate it with a button or Redstone Block on the side.
TIP: You can copy this and paste it into a Command Block using [Ctrl] + [V] on Windows or [⌘] + [V] on Mac
How do I make this?
1. Once off Commands
Firstly you will need some command blocks.
You can get them by using:
/give @p minecraft:command_block
Also you need to change two game rules.
You have to use:
/gamerule keepInventory true
And:
/gamerule commandBlockOutput false
2. Clock
You will need a /fill or a /setblock clock powering your machine. To make a /setblock clock put down the 2 Command Blocks above each other with an air block in between.
In the top Command Block type:
/setblock ~ ~-1 ~ minecraft:redstone_block
In the bottom Command Block type:
/setblock ~ ~1 ~ minecraft:stone
When that is done put a Redstone Block in the center to activate it.
It should look like this:
Now that your clock is done let’s move on to the machine.
Machine
Now press [F3] and orientate yourself so you’re Facing: south (Towards positive Z). Now add a Command Block to each side.
Firstly we changed two game rules.
The first one causes players to not lose items on death and the second one causes the clock to not spam chat. Secondly we /tp (teleport) the items to the player nearest to them. (@p means nearest player and the /execute causes it to execute @a[type=Item] so that it takes the player nearest to the items and not the command block). Then we change the entity-data of the items so that they can be picked up instantly. We also set their age to 0 and make them invulnerable so that they cannot despawn before they are given to the player.
Or you can do /replaceitem entity @p slot.(slot) (item) and attach that to a fill clock
And if you don't know what item they dropped? This works for any item a player drops, even named items. /replaceitem will only work if you know what item they dropped. You can use a 1000 /testfors but I find this easier because it only uses 4 Command Blocks covering every Item, every enchantments, every everything.
Why would I need this?
Pros and Cons
How do I get this in my world?
on Mac
How does this work?
The first one causes players to not lose items on death and the second one causes the clock to not spam chat. Secondly we /tp (teleport) the items to the player nearest to them. (@p means nearest player and the /execute causes it to execute @a[type=Item] so that it takes the player nearest to the items and not the command block). Then we change the entity-data of the items so that they can be picked up instantly. We also set their age to 0 and make them invulnerable so that they cannot despawn before they are given to the player.
Tags
Projects:
Cool Welcome Message using Unicode for Map Makers and Server Owners.
Q-Lock for adventure mappers that dont want their players to lose valuble items.
minecraft:command_block One-Command: Terrain Tools for adventure mappers that want to shape their world without using external tools.
Rad bro, thanks, that saved me tons of time. Got tired of those maps!
Thank you. You are my first Commenter on my first Post
Projects:
Cool Welcome Message using Unicode for Map Makers and Server Owners.
Q-Lock for adventure mappers that dont want their players to lose valuble items.
minecraft:command_block One-Command: Terrain Tools for adventure mappers that want to shape their world without using external tools.
Or you can do /replaceitem entity @p slot.(slot) (item) and attach that to a fill clock
Thnaks,
NoahFense
http://www.youtube.com/nfsmartie
And if you don't know what item they dropped? This works for any item a player drops, even named items. /replaceitem will only work if you know what item they dropped. You can use a 1000 /testfors but I find this easier because it only uses 4 Command Blocks covering every Item, every enchantments, every everything.
Projects:
Cool Welcome Message using Unicode for Map Makers and Server Owners.
Q-Lock for adventure mappers that dont want their players to lose valuble items.
minecraft:command_block One-Command: Terrain Tools for adventure mappers that want to shape their world without using external tools.
Good first post, bro, keep 'em rolling.
Updated title. (Last one was to long)
Projects:
Cool Welcome Message using Unicode for Map Makers and Server Owners.
Q-Lock for adventure mappers that dont want their players to lose valuble items.
minecraft:command_block One-Command: Terrain Tools for adventure mappers that want to shape their world without using external tools.