Creative+ • Coding • Basics 2

OmgDevastation

New member
World Edit 2.0
• By world edit 2.0, I mean better code or optimized allowing you to do more.
• This is not better than World Edit plugin itself!
• If your rank is lower than Imperator this will help you!
• Coding this requires skilled rank or higher!


Raw Code:
PlayerEvent.Chat {
---If (Default.NameEquals(Names)) {

------If (Default.CommandEquals(Wand, wand, ...) {
------Default.PlayerEvent.SendMessage(TextVariable."&c[&fWorld Edit&c]&e You received a wand!");
------Default.PlayerEvent.GiveItems(WOODEN_AXE);
------}
------If (Default.CommandEquals(Cut, cut, ...) {
------Default.PlayerEvent.SendMessage(TextVariable."&c[&fWorld Edit&c]&e You had removed the blocks in the region!");
------Default.GameEvent.RemoveBlock/Region(DynamicVariable.%player%_pos1, DynamicVariable.%player%_pos2);
------}
------If (Default.CommandEquals(Set1, set1, ...) {
------Default.PlayerEvent.SendMessage(TextVariable."&c[&fWorld Edit&c]&f You had set the blocks!");
------Default.GameEvent.SetBlocks/Region(Block, DynamicVariable.%player%_pos1, DynamicVariable.%player%_pos2)
------}
------If (Default.CommandEquals(Set2, set2, ...) {
------Default.PlayerEvent.SendMessage(TextVariable."&c[&fWorld Edit&c]&f You had set the blocks!");
------Default.GameEvent.SetBlocks/Region(Block, DynamicVariable.%player%_pos1, DynamicVariable.%player%_pos2)
------}
---}
}

PlayerEvent.LeftClick {

---If (Default.NameEquals(Names)) {
------If (Default.HoldingItemMain(WOODEN_AXE)) {
------Default.PlayerEvent.SendMessage(TextVariable."&c[&fWorld Edit&c]&e Pos 1 had been set!");
------Default.GameEvent.CancelAllEvents;
------Default.SetVariable.=(DynamicVariable.%player%_pos1, GameVariable.TargetBlockLocation);
------}
---}
}

PlayerEvent.RightClick {

---If (Default.NameEquals(Names)) {
------If (Default.HoldingItemMain(WOODEN_AXE)) {
------Default.PlayerEvent.SendMessage(TextVariable."&c[&fWorld Edit&c]&e Pos 2 had been set!");
------Default.GameEvent.CancelAllEvents;
------Default.SetVariable.=(DynamicVariable.%player%_pos2, GameVariable.TargetBlockLocation);
------}
---}
}
 
Last edited:
Top