ac-minetest / basic_robot

Write mods without server restart while playing. Create custom machines that can build, dig, produce... Create your own games like minesweeper, sokoban,ctf, hide and seek...
26 stars 21 forks source link

Power generation and max operations #38

Open mmance opened 2 years ago

mmance commented 2 years ago

So these two things are very confusing. There is little to no documentation and without understanding them, it make writing code impossible.

I think I finally figured out the machine.generate_power(ITEMNAME, inventory, amount) from your source code. where else instead of inventory could you even get something? another inventory like a chest? would you use forward up down for a chest?

for the operations, I can't even automate a compost bin cause its too complicated. I think I would need like a 20, but the default is 10. I don't see how to slow my program down either? I looked for sleep() or wait() to no avail.

I am unsure how I could do anything of value in 10.

mmance commented 2 years ago

I take that back, I found quite a few things to do in 10.