2
Hi,
I made a command with the commandblock that chances the weapon of a skeleton to a sword if you are in a range of 3 blocks, it chances it back to a bow when you are further away than 3 blocks.
this could be used for adventure maps, mobarena or make survival harder.
In the picture the red part is for chancing to a sword and the green part for chancing back to a bow
this is the command for chancing the weapon to a sword (commandblock 1):
/execute @a ~ ~ ~ replaceitem entity @e[name=Skeleton,r=3] slot.weapon minecraft:iron_sword
make sure you have set it up the same way I did it in the picture
this are the commands for chancing the weapon back to a bow:
(commandblock 2): /execute @p ~ ~ ~ effect @e[name=Skeleton,r=3] night_vision 1 1
(commandblock 3: /execute @p ~ ~ ~ replaceitem entity @e[name=Skeleton,r=6] slot.weapon minecraft:bow
How does it work?
If a player stands in 3 blocks range of a Skeleton commandblock 2 will activate the comparator that will activate the piston.
The piston stops the redstone signal from commandblock 3 to make sure the weapon doesn’t chance to a bow when you are within 3 blocks range of the skeleton
If you stand in 6 blocks range of the skeleton he won’t be able to shoot because his bow chances to a new very fast.
To fix this you could make more of these systems and lower the range to 4 or 5, if you don’t do this there is a big chance that the sword doesn’t chance to a bow.
I made a command with the commandblock that chances the weapon of a skeleton to a sword if you are in a range of 3 blocks, it chances it back to a bow when you are further away than 3 blocks.
this could be used for adventure maps, mobarena or make survival harder.
In the picture the red part is for chancing to a sword and the green part for chancing back to a bow
this is the command for chancing the weapon to a sword (commandblock 1):
/execute @a ~ ~ ~ replaceitem entity @e[name=Skeleton,r=3] slot.weapon minecraft:iron_sword
make sure you have set it up the same way I did it in the picture
this are the commands for chancing the weapon back to a bow:
(commandblock 2): /execute @p ~ ~ ~ effect @e[name=Skeleton,r=3] night_vision 1 1
(commandblock 3: /execute @p ~ ~ ~ replaceitem entity @e[name=Skeleton,r=6] slot.weapon minecraft:bow
How does it work?
If a player stands in 3 blocks range of a Skeleton commandblock 2 will activate the comparator that will activate the piston.
The piston stops the redstone signal from commandblock 3 to make sure the weapon doesn’t chance to a bow when you are within 3 blocks range of the skeleton
If you stand in 6 blocks range of the skeleton he won’t be able to shoot because his bow chances to a new very fast.
To fix this you could make more of these systems and lower the range to 4 or 5, if you don’t do this there is a big chance that the sword doesn’t chance to a bow.
Credit | hoiiohha |
Tags |
tools/tracking
3118765
6
chancing-the-weapon-of-a-skeleton-to-swordbow
Create an account or sign in to comment.