mod doesn't work anymore

wcwyes
Member
 
Posts: 145
Joined: Wed Jul 31, 2013 22:42

mod doesn't work anymore

by wcwyes » Sat Feb 01, 2014 02:16

I was working on this mod in 0.4.7 but it doesn't seem to work anymore
Your phone or window isn't wide enough to display the code box. If it's a phone, try rotating it to landscape mode.
Code: Select all
minetest.register_chatcommand("spawn",
    {
        params = "",
        description = "respawn",
        func = function(name)
            local spawn_point = minetest.string_to_pos(minetest.setting_get("static_spawnpoint"))
            local player = minetest.get_player_by_name(name)
            player:setpos(spawn_point);
        end
})
 

User avatar
sfan5
Member
 
Posts: 3636
Joined: Wed Aug 24, 2011 09:44
GitHub: sfan5
IRC: sfan5

by sfan5 » Sat Feb 01, 2014 07:39

1) This is seriously annoying me, can't people read? This topic clearly belongs into Modding General, but no, you posted it in General Discussion as apparently nobody is able to read </rant> Topic moved to Modding General

2) By just saying 'Doesn't work' nobody will be able to help you
Mods: Mesecons | WorldEdit | Nuke
Minetest builds for Windows (32-bit & 64-bit)
 

User avatar
PilzAdam
Member
 
Posts: 4026
Joined: Fri Jul 20, 2012 16:19
GitHub: PilzAdam
IRC: PilzAdam

by PilzAdam » Sat Feb 01, 2014 10:45

wcwyes wrote:I was working on this mod in 0.4.7 but it doesn't seem to work anymore
Your phone or window isn't wide enough to display the code box. If it's a phone, try rotating it to landscape mode.
Code: Select all
minetest.register_chatcommand("spawn",
    {
        params = "",
        description = "respawn",
        func = function(name)
            local spawn_point = minetest.string_to_pos(minetest.setting_get("static_spawnpoint"))
            local player = minetest.get_player_by_name(name)
            player:setpos(spawn_point);
        end
})

This will only work if you have set static_spawnpoint in minetest.conf, which is not always the case.
 


Return to WIP Mods

Who is online

Users browsing this forum: No registered users and 7 guests

cron