Search found 3 matches

Return to advanced search

Re: this should make it move upwards

minetest.register_abm({ nodenames = {"tutorial:decowood"}, interval = 10, chance = 1, action = function(pos, node) pos.y = pos.y + 1 if minetest.get_node(pos).name == "air" then minetest.set_node(pos, node) pos.y = pos.y - 1 minetest.remove_node(pos) end end, }) It does, but in ...
by bidaian
Sat May 14, 2016 14:00
 
Forum: Modding Discussion
Topic: Post your modding questions here
Replies: 3735
Views: 973974

Re: Post your modding questions here

bidaian, "pos" table in function is just a copy of an information about actual node position. Changing it will do nothing. You need to delete node on a old position and add on a new. Check how to do it here: http://dev.minetest.net/Category:Methods Thanks. I wanted to do something that mo...
by bidaian
Sat May 14, 2016 13:57
 
Forum: Modding Discussion
Topic: Post your modding questions here
Replies: 3735
Views: 973974

Re: Post your modding questions here

Topic: How do I move a node? After creating tutorial:decowood and reading about growing default:junglegrass I wanted to move decowood with this code. But nothing happens. What do I need to move a node? minetest.register_abm({ nodenames = {"tutorial:decowood"}, interval = 10, chance = 1, ac...
by bidaian
Sat May 14, 2016 03:44
 
Forum: Modding Discussion
Topic: Post your modding questions here
Replies: 3735
Views: 973974

Return to advanced search

cron