Current location - Quotes Website - Personality signature - How to add enchanted weapons to monsters in Minecraft Summon
How to add enchanted weapons to monsters in Minecraft Summon

You can throw enchanted weapons to it~~~

Everyone looks at those maps, and they all have explosive equipment, and they all feel powerful. However, ordinary enchantments cannot be enchanted. Today I will teach you how to customize enchantments.

First, we get a command block, which can be obtained with TMI or give command. After entering the command, remember to activate it with redstone

Then enter

/give @p 276 1 0

{ench: [{id: xx, lvl: x}]}

Instruction parsing

/give @p 276 1 0 It means giving the nearest player a diamond sword

{ench: [{id: xx, lvl: x}]} It means the enchantment ID and enchantment level, which can be modified by yourself

(I will post the enchantment ID at the end)

For example

/give @p 276 1 0

{ench: [{id: 19, lvl : 1000}]} Obtain a level 1000 knockback sword

To enchant multiple effects, just add a few more instructions to the enchantment place

/give @p 311 1 0

{ench: [{id: 10, lvl: 10}, {id: 1, lvl: 10}, {id: 18, lvl: 10}, {id: 3, lvl: 10}, {id: 4, lvl: 10}, {id: 5, lvl: 10}, {id: 6, lvl: 10}, {id: 7, lvl: 10}]}

This is to obtain diamond breastplate, please see the picture for specific enchantment

As for how to enchant other equipment, you only need to modify it

/give @p xxxx 1 0

xxxx is the English name of the equipment, just replace it, for example, sword means sword

diamond means diamond, it can be replaced with other (codes are also acceptable), such as gold

About villager trading enchanted equipment

/summon Villager ~ ~1 ~

{Offers: {Recipes: [{maxUses: 9999999, buy: {id: 264, Count :1}, sell: {id: 267, Count: 1, tag: {ench: [{id: 16, lvl: 1000}], AttributeModifiers: [1]}}}]}}

There is a tag in sell: {ench: [{id: 16, lvl: 1000}] This is a sword with a sharpness of 1000, which can be modified by yourself

Enchanting ID:

Equipment:

0 - Protection

1 - Flame Protection

2 - Fall Protection

3 - Explosion Protection

4 - Projectile Protection

5 - Underwater Breathing

6 - Underwater Digging

7 - Damage Reflection (Thorns)

Swords:

16 - Sharp

17 - Undead Killer

18 - Arthropod Killer

19 - Knockback

20 - Flame Attachment

21 - Looting

Tools:

32 - Mining Efficiency

33 - Accurate Collection

p>

34 - Durability

35 - Luck

61 - Fishing luck can only be enchanted on fishing rods

62 - Bait on fishing rods

Bow and arrow:

48 - Strength

50 - Fire Arrow

51 - Infinite

Durability can be enchanted On any tool/weapon, others are not interoperable.

Explanation on how to customize monster equipment in Minecraft. Wouldn’t it be cool to dress up the monsters in Minecraft? You can do it using command blocks. Let’s take a look at how to use command blocks. Customize monster equipment.

Today I will teach you how to use command blocks to spawn creatures wearing custom equipment. Of course, it does not have to be equipment, any block will do. You can also use MCEDIT software to make it, but this tutorial only teaches command blocks. Note that the game version must be 1.7. First let me show you the screenshots.

This zombie holds a command block, wears gold shoes, leather pants, chain armor and a glass head. The monster's backpack has 5 spaces, namely: hand items, shoes, pants, tops and helmets. If you place blocks in these 5 spaces, only the head and hand items will be displayed, and the others will not be displayed.

First, let’s teach you the simplest /summon command. It is used to spawn any creature. This time I will experiment with skeletons. Command:

/summon Skeleton ~ ~1 ~

If this command is typed in the command block, it will be at the top. A skeleton appears on it. Here we will explain the /summon command. If you don’t understand the basics, you can take a look. The format of /summon is:

/summon (creature name) (XYZ coordinates) (NBT)

So the command to brush the skeleton is: /summon Skeleton ~ ~1 ~, the name of the creature What is written is Skeleton, which is a skeleton, and the coordinates are brushed out one space above the command block. This command can spawn an ordinary skeleton, so you need to add some NBT to give the skeleton custom equipment.

I will teach you how to wear custom equipment/blocks on skeletons later. The main thing is to join {Equipment} NBT. Command:

/summon Skeleton ~ ~1 ~

{Equipment: [{id: 261, Count: 1}, {id: 313, Count: 1}, {id: 312, Count: 1}, {id: 311, Count: 1}, {id: 310, Count: 1}]}

The above command is to spawn a diamond-equipped skeleton. You can hit it. Try it in the command block. Explain NBT:

Equipment: NBT of equipment. If you want to customize your equipment, you must play this.

id: item ID. The above command has 5 IDs, so there are 5 items. A creature can carry up to 5 items.

Count: quantity. If equipped, just hit 1, and the cubes can hit whatever they want.

The following is a very important point: that is, the order of equipment. The format of NBT is:

{Equipment: [{(hand items)}, {(shoes)}, {(pants)}, {(armor)}, {(helmet)}]}

The first bracket after Equipment is the hand-held items, followed by shoes, pants, armor and helmets. The command blocks will always be in this order and will not change. So if you look at my above instruction to equip skeletons with diamonds, you will see that the ID of the first bracket is 261, which is a bow with an item in hand. The second one is 313, which is the ID of Diamond Boots, and so on. Of course, if you want to add custom enchantments, just link to my last post. The index is posted in my personalized signature so that everyone can find it easily. To customize enchantments, custom attributes, etc., just use the {tag} NBT link.

The next thing to talk about is the control of the probability of items being dropped after the monster dies.

Command:

/summon Skeleton ~ ~1 ~

{Equipment: [{id: 137, Count: 6}, {id: 24, Count: 5}, {id: 5, Damage: 4, Count: 8}, {id: 20, Count: 5}, {id: 133, Count: 20}],

DropChances: [1.0F, 1.0F, 1.0F , 1.0F, 1.0F]}

As you can see, this command is the same as the previous one, except that an additional NBT is added: {DropChances}. The purpose of this NBT is to control the probability of monsters dropping items, and it is related to Equipment. Everyone sees that there are 5 1.0F after DropChances. 1.0F means 100 drops. 50 is 0.5F, and so on. It should be noted that an F must be added at the end, otherwise NBT will be invalid. The order of these 5 1.0F and equipment is also the same. The first one is hand-held items, the second one is shoes and so on. After everyone breaks down the instructions, you will find that a skeleton will be spawned with 6 command blocks in hand, 5 sandstone on the top, 8 planks on the pants, 5 glass on the armor, and 20 emeralds on the head. Since the probability is 1.0F, all items will be dropped when killed, no matter how many items there are.