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); }
// 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); }
public void SetEntityData(Entities entities, NBTObject NBT, bool ifPrevious = false) { EntityCommand(new Command("entitydata " + entities.GetSelectorString() + " " + NBT.ToString(), CurrentType(ifPrevious)), entities); }
public void SetBlockData(Coordinates coordinates, NBTObject NBT, bool ifPrevious = false) { CombineCommand(new Command("blockdata " + coordinates.ToString() + " " + NBT.ToString(), CurrentType(ifPrevious))); }
public NBTObject Set(string key, NBTObject value) { data[key] = value.ToString(); return(this); }
public NBTArray Add(NBTObject value) { data.Add(value.ToString()); return(this); }