- 4,893 views, 2 today
14
SPELLS AND HOW TO GIVE THEM [map download coming soon] [comment if you want me to do another command block tutorial (can be any!)]
In a lot of adventure maps players will be given potion effects or potions that will give them an effect. But what about giving a player a spell which he can activitate whenever he wants instantly? That's my tutorial!
Add a group that you want to enable a certain spell for
Use the following command:
/scoreboard teams add #1
put the name of the group instead of the #1
Adding players to the group
Use the following command:
/scoreboard teams join #1 #2
put the name of the group instead of the #1
put the name of the player instead of the #2
Giving the player a spell item
Use the following command:
/give #1 395 1 0 {display:{Name:"#2",Lore:["b]#3[/b]"]}}
put the name of the player instead of #1
put the name of the spell instead of #2
put the description of the spell instead of #3
Giving the player a spell item that has enchantment effect
/give #1 395 1 0 {display:{Name:"#2",Lore:["b]#3[/b]"]},ench:{[id:b]#4[/b],lvl:#5]}}
put the name of the player instead of #1
put the name of the spell instead of #2
put the description of the spell instead of #3
put the enchantment id instead of #4 (can be found athttp://minecraft.gamepedia.com/Enchanting)
put the level of the enchantment instead of #5 (can be up to 127)
Creating a sender [MAP DOWNLOAD BEING ADDED SOON]
A sender will give the player the effects of the spell
Out of the comparator signal make it so that when the comparator is powered it will power command blocks
In the command blocks put the following commands:
/effect @a[team=b]#1[/b]]#2#3 #4
put the name of the team instead of#1
put the id of the effect instead of the#2[can be found aturl=minecraft.gamepedia.com/Status_effect]http://minecraft.gamepedia.com/Status_effect[/url]]
put the duration of the effect instead of the#3
put the strength of the effect instead of the#4
YOU CAN ADD AS MANY EFFECTS AS YOU WANT
Adding a message when using the spell
put the following command into a command block that is powered when the comparator turns on:
/tell @a[team=b]#1[/b]]#2
put the name of the team instead of the#1
put the message instead of the#2
I hope you enjoyed this tutorial and comment if you see any mistakes, have suggestions or want another tutorial!
In the next update there will be added:
- Add pictures of sender/listener
- Add world download
- Add glinstering effect to maps
In a lot of adventure maps players will be given potion effects or potions that will give them an effect. But what about giving a player a spell which he can activitate whenever he wants instantly? That's my tutorial!
Creating teams
Add a group that you want to enable a certain spell for
Use the following command:
/scoreboard teams add #1
put the name of the group instead of the #1
Adding players to the group
Use the following command:
/scoreboard teams join #1 #2
put the name of the group instead of the #1
put the name of the player instead of the #2
Giving the 'spell'
Giving the player a spell item
Use the following command:
/give #1 395 1 0 {display:{Name:"#2",Lore:["b]#3[/b]"]}}
put the name of the player instead of #1
put the name of the spell instead of #2
put the description of the spell instead of #3
Giving the player a spell item that has enchantment effect
/give #1 395 1 0 {display:{Name:"#2",Lore:["b]#3[/b]"]},ench:{[id:b]#4[/b],lvl:#5]}}
put the name of the player instead of #1
put the name of the spell instead of #2
put the description of the spell instead of #3
put the enchantment id instead of #4 (can be found athttp://minecraft.gamepedia.com/Enchanting)
put the level of the enchantment instead of #5 (can be up to 127)
Creating a listener MAP DOWNLOAD BEING ADDED SOON
]
Building the listener
Make a timer that will send redstone signals into a command block RAPIDLY [as fast as possible]
Fill the following command into a command block:
/clear @a[team=b]#1[/b]] 395
Put the name of your team instead of #1
Next to a command block put a comparator pointing AWAY FROM the command block this will send a redstone signal if the player has right-clicked while holding a map in his/her hand
Building the listener
Make a timer that will send redstone signals into a command block RAPIDLY [as fast as possible]
Fill the following command into a command block:
/clear @a[team=b]#1[/b]] 395
Put the name of your team instead of #1
Next to a command block put a comparator pointing AWAY FROM the command block this will send a redstone signal if the player has right-clicked while holding a map in his/her hand
Creating a sender [MAP DOWNLOAD BEING ADDED SOON]
A sender will give the player the effects of the spell
Out of the comparator signal make it so that when the comparator is powered it will power command blocks
In the command blocks put the following commands:
/effect @a[team=b]#1[/b]]#2#3 #4
put the name of the team instead of#1
put the id of the effect instead of the#2[can be found aturl=minecraft.gamepedia.com/Status_effect]http://minecraft.gamepedia.com/Status_effect[/url]]
put the duration of the effect instead of the#3
put the strength of the effect instead of the#4
YOU CAN ADD AS MANY EFFECTS AS YOU WANT
Adding a message when using the spell
put the following command into a command block that is powered when the comparator turns on:
/tell @a[team=b]#1[/b]]#2
put the name of the team instead of the#1
put the message instead of the#2
How to use the spell
3. Hold the map and right click!
I hope you enjoyed this tutorial and comment if you see any mistakes, have suggestions or want another tutorial!
In the next update there will be added:
- Add pictures of sender/listener
- Add world download
- Add glinstering effect to maps
Progress | 100% complete |
Tags |
2 Update Logs
Update #2 : by SimplisticZ 04/13/2014 2:05:47 pmApr 13th, 2014
Making a wenpage dedicated to cb tutorials
LOAD MORE LOGS
tools/tracking
2554186
2
creating-a-spell-command-blocks-vanilla-172
Create an account or sign in to comment.