-1

I played on a Minecraft map which had this minigame arena mode where you get diamonds for killing each kind of mob. With these diamonds you were able to buy better equipment until you killed all the mobs, and then you moved to the next level. Is there a command for that? I'm playing Minecraft 1.14.

New contributor
Tlots is a new contributor to this site. Take care in asking for clarification, commenting, and answering. Check out our Code of Conduct.
  • 1
    Hi Tlots, what have you tried so far? Have you read this post on Arqade Meta, and the linked article on commands already? – Joachim Sep 12 at 20:01
  • @galacticninja So you just took my edit and made it yours by just changing the last three words ? I think that's not a nice way to go – G. Eiwell Sep 13 at 7:21
  • 2
    @G.Eiwell I reviewed (and approved) your suggested edit from the review queue. Since I noticed that there are some issues with the question left unfixed, i.e. grammar, tags in question title, and unremoved salutations (see the meta posts on my edit notes) - I've edited them to fix the issues. This is one of the reasons why suggested edits are reviewed here: to have them checked for quality by reviewers. – galacticninja Sep 13 at 8:11
2

The easiest way to do this is probably to set the loot table of every zombie to the loot table of diamond ore. You can do that by changing the DeathLootTable NBT data to the loot table that you want for that zombie. In this case that would be "blocks/diamond_ore". The command to change the DeathLootTable for every zombie looks like this:

/execute as @e[type=minecraft:zombie] run data modify entity @s DeathLootTable set value "blocks/diamond_ore"

I recommend using a repeating command block. Doing so will make zombies drop some experience and a single diamond, even with a looting 3 sword, or a fortune 3 pick axe.

  • 2
    This will prevent regular drops like rotten flesh, this may be a positive, or negative side effect depending on your setup. – bearb001 Sep 12 at 19:56
  • thx but if I want the diamonds to spawn somewhere else how can I do it? – Tlots Sep 13 at 9:12
  • @Tlots You could teleport the diamonds to where you want them. If teleporting them is too complicated, then this may not be the right solution for you. In that case it would be nice if you could give a bit more details on what exactly you want to do, like where to spawn the diamond, if zombies should drop something else, how many players are going to be in the map simultaneously, etc. If you feel like clarifying, then editing the question would be the best way to do it. – bearb001 Sep 13 at 11:53
-3

https://www.gamergeeks.nz/apps/minecraft/mob-generator This website is great! You put settings and customisation into it and then it gives you the command. You can change the loot drops and the weapons and armour they hold. You can even change their health and name. You can choose if you want a spawn egg, spawner, or a summon command. I hope this helps!

New contributor
TumbleElf is a new contributor to this site. Take care in asking for clarification, commenting, and answering. Check out our Code of Conduct.
  • The mob-generator does NOT have a way to change the loot... (not yet, supposed to come with newer versions) – Martin Frank Sep 15 at 9:48

Your Answer

Tlots is a new contributor. Be nice, and check out our Code of Conduct.

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.