public void Create(Position pos)
 {
     FunctionWriter.Write($"summon {type} {pos} {nbt.Copy().Set("Tags",new string[] {tag})}");
 }
 public void From(DataContainer container, string path)
 {
     FunctionWriter.Write($"data modify {modifier.container.ToDataCommand()} {modifier.path} {mode} from {container.ToDataCommand()} {path}");
 }
 public void Value(string value)
 {
     FunctionWriter.Write($"data modify {modifier.container.ToDataCommand()} {modifier.path} {mode} value {value}");
 }
Example #4
0
 public void RunRaw(string command)
 {
     FunctionWriter.Execute.Push(this);
     UseOnce = true;
     FunctionWriter.Write(command);
 }
Example #5
0
 public void Set(int value)
 {
     FunctionWriter.Write($"gamerule {this} {value}");
 }
Example #6
0
 public static Time operator +(Time t, int ticks)
 {
     FunctionWriter.Write("time add " + ticks);
     return(t);
 }