Builder/Builder and Denizen: Difference between revisions
From Citizens Wiki
< Builder
No edit summary |
|||
Line 6: | Line 6: | ||
<pre> | <pre> | ||
---- script.yml ---- | ---- script.yml ---- | ||
Rebuild: | |||
Type: Task | Type: Task | ||
Script: | Script: | ||
- execute | - execute as_npc "builder <npc.id> build excavate oncomplete:Rebuild" | ||
</pre> | </pre> | ||
Now create | Now create a builder, load the desired schematic, set an origin, and call ''/builder build oncomplete:Rebuild'' | ||
The builder will | The builder will build the schematic, and then run the task, which will build it again with the ''excavate'' option that will tear it down first, and the cycle will continue forever. | ||
You can use this script for as many builders/schematics you want without having to change anything. |
Revision as of 02:10, 9 August 2013
Continuous Rebuilding
If you want a builder to look busy and continuously rebuild and destroy a schematic, you would use a setup like this.
Create a Task script in any yml file the denizen scripts folder like the following.
---- script.yml ---- Rebuild: Type: Task Script: - execute as_npc "builder <npc.id> build excavate oncomplete:Rebuild"
Now create a builder, load the desired schematic, set an origin, and call /builder build oncomplete:Rebuild
The builder will build the schematic, and then run the task, which will build it again with the excavate option that will tear it down first, and the cycle will continue forever.
You can use this script for as many builders/schematics you want without having to change anything.