smart_villages/api.MD

14 lines
434 B
Plaintext
Raw Permalink Normal View History

I started using the maidroid api, but by now it's a lot different.
2018-04-29 00:48:42 -07:00
for specific documentation look for the comments in the (api.lua)
2017-06-02 07:20:34 -07:00
To register a new job you use:
2018-04-29 00:48:42 -07:00
```
2017-06-02 07:20:34 -07:00
2020-04-23 06:47:24 -07:00
smart_villages.register_job("[itemstring for the job item]", {
2017-06-02 07:20:34 -07:00
description = "[description for the job item]",
inventory_image = "[texture for the job item]",
2018-05-19 08:53:40 -07:00
jobfunc = "[coroutine that is called every step]",
2017-06-02 07:20:34 -07:00
})
2018-04-29 00:48:42 -07:00
```
2017-06-02 07:20:34 -07:00
2018-05-19 08:53:40 -07:00
for examples look at the testing jobs