Search found 4 matches

Return to advanced search

could someone give me an example of how I can run the loop within the minetest.register_abm function. minetest.register_abm({ nodenames = {"yourmod:yournode"}, interval=1.0, -- in seconds chance=1, action = function(pos, node, ...) for x=-1,1 do for y=-1,1 do for z=-1,1 do minetest.remove_node({x=p...
by CODE_MACHINE
Wed Jul 03, 2013 21:16
 
Forum: WIP Mods
Topic: Simple Auto-Mining Block?
Replies: 2
Views: 1000

Issue sorted now. Made a few little errors that escaped my notice ;)
by CODE_MACHINE
Sat Jun 29, 2013 16:11
 
Forum: WIP Mods
Topic: While and For Loops within Minetest.
Replies: 3
Views: 605

While and For Loops within Minetest.

Hi there everyone, My name is CODE_MACHINE and I have a lot of programming experience in variable different languages BUT despite that I use regular lua a fair bit I am struggling to implement For and While loops within a minetest.register_abm function. Your help would be gratefully accepted! Thanks.
by CODE_MACHINE
Sat Jun 29, 2013 11:40
 
Forum: WIP Mods
Topic: While and For Loops within Minetest.
Replies: 3
Views: 605

Guys let's not get in an argument over this. It's obviously for a bit of fun. Nice work Jordach.
by CODE_MACHINE
Sat Jun 29, 2013 10:31
 
Forum: Minetest-related projects
Topic: Minetest Periodic Table
Replies: 20
Views: 4940

Return to advanced search