TransWikia.com

Minecraft PE, help me make a command to give me a multishot crossbow?

Arqade Asked by LLLLLL on September 20, 2020

enter image description here

Im trying to make a command that gives me a crossbow with multishot, but it just keeps giving me the error code “* Line 1, Column 2 Missing '}' or object member name“.

One of the commands that I have tried is /give @p crossbow 1 3 {enchant:[{id:33},{lvl:127]}.

I am using the pocket edition 1.11.4.

2 Answers

NBT tags have not (yet?) been fully implemented into the pocket edition

The only implemented tags that I am aware of are "can_place_on" and "can_destroy", which I did not know until I read this, I thought that no tags were implemented yet.

Note: I have tested some other tags and I could not find any other tags that worked.

You could do this, but this would replace whatever item you currently have in your main hand. It may not work propperly if you quickly switch between items.

2 command blocks connected with a 2 tick repeater, one command block has a wooden button

The right command block has this command

/replaceitem entity @p slot.weapon.mainhand 0 crossbow 1

The left command block has this command:

/enchant @p multishot 1

Note 2: The repeater is set to 2 ticks, because 1 tick leads to some really weird behaviour. You cannot set the level of the enchantment "multishot" any higher than 1 in the pocket edition

Answered by user232393 on September 20, 2020

You can have a chest with an enchanted crossbow (or any other item) that you clone to the position of the player and then you imidiately destroy the chest by using /setblock in a chain command block.

Your setup may look like this:

The set-up with 2 command blocks, a chest, and a button

The impulse command block clones the chest to the position of the player with this command:

/execute <target> ~ ~ ~ clone <chest coordinates> <chest coordinates> ~ ~ ~

And the chain command block will set the chest to air, while dropping the item(s) inside:

/execute <target> ~ ~ ~ setblock air 0 destroy

Note: Other players may be faster at picking up the item(s), they will simply drop to the floor near the player, they could also fall into lava, or get destroyed, or be lost in a different way.

Note 2: If the player is standing on a half slab, or inside of any block, then that block will be set to air, so it may potentially break parts of your map

Answered by user232393 on September 20, 2020

Add your own answers!

Ask a Question

Get help from others!

© 2024 TransWikia.com. All rights reserved. Sites we Love: PCI Database, UKBizDB, Menu Kuliner, Sharing RPP