Ejemplo n.º 1
0
 public void RemoveFromScore(Entities entities, string objective, int amount, NBTObject NBT = null, bool ifPrevious = false)
 {
     EntityCommand(new Command("scoreboard players remove " + entities.GetSelectorString() + " " + objective + " " + amount + " " + NBT.ToString(), CurrentType(ifPrevious)), entities);
 }
Ejemplo n.º 2
0
        // Players

        public void SetScore(Entities entities, string objective, int score, NBTObject NBT = null, bool ifPrevious = false)
        {
            EntityCommand(new Command("scoreboard players set " + entities.GetSelectorString() + " " + objective + " " + score + " " + NBT.ToString(), CurrentType(ifPrevious)), entities);
        }
Ejemplo n.º 3
0
 public void SetEntityData(Entities entities, NBTObject NBT, bool ifPrevious = false)
 {
     EntityCommand(new Command("entitydata " + entities.GetSelectorString() + " " + NBT.ToString(), CurrentType(ifPrevious)), entities);
 }
Ejemplo n.º 4
0
 public void SetBlockData(Coordinates coordinates, NBTObject NBT, bool ifPrevious = false)
 {
     CombineCommand(new Command("blockdata " + coordinates.ToString() + " " + NBT.ToString(), CurrentType(ifPrevious)));
 }
Ejemplo n.º 5
0
 public NBTObject Set(string key, NBTObject value)
 {
     data[key] = value.ToString();
     return(this);
 }
Ejemplo n.º 6
0
 public NBTArray Add(NBTObject value)
 {
     data.Add(value.ToString());
     return(this);
 }