1

Making RPG Classes With Commands and I Need Help...

AlienCommander's Avatar AlienCommander7/12/19 1:04 am
1 emeralds 155 3
7/23/2019 3:50 am
HoboMaggot's Avatar HoboMaggot
So I have been trying to make rpg classes using commands. Right now I want to make a wizard like class that has an aoe abbility that sets all enemies around it on fire. The command I was trying was,
  (In a command block)
execute at @p[team=Red] run data merge @e[team=!Red] {Fire:200}
but it wants me to only select 1 entity at a time and it would only select the same one over and over again. If anyone has an Idea please help.
Posted by AlienCommander's Avatar
AlienCommander
Level 16 : Journeyman Miner
5

Create an account or sign in to comment.

3

1
07/12/2019 10:23 pm
Level 52 : Grandmaster Blob
HoboMaggot
HoboMaggot's Avatar
execute as @p[team=Red] at @s run execute as @e[team=!Red,distance=..10] run data merge @s {Fire:200}
Although I suggest putting a 2 tags for the red member to 1. know if its a wizard and 2. to know if they activated their ability
1
07/22/2019 11:32 pm
Level 16 : Journeyman Miner
AlienCommander
AlienCommander's Avatar
thaks, i am planing on adding more tags but just wanted things simple to start out. Again thanks a lot for the help!
1
07/23/2019 3:50 am
Level 52 : Grandmaster Blob
HoboMaggot
HoboMaggot's Avatar
I just realised that you are unable to change the nbt of a player, you can only do this with mobs.
Sorry abt that.
Another way to do this is to /setblock the block under the player with fire
Planet Minecraft

Website

© 2010 - 2024
www.planetminecraft.com

Welcome