mirror of
https://git.minetest.land/Mineclonia/Mineclonia.git
synced 2024-11-30 23:43:00 +00:00
Merge branch 'master' of https://git.minetest.land/Wuzzy/MineClone2
This commit is contained in:
commit
15dd969adf
1 changed files with 1 additions and 13 deletions
|
@ -34,15 +34,3 @@ end)
|
||||||
minetest.register_on_leaveplayer(function(player)
|
minetest.register_on_leaveplayer(function(player)
|
||||||
mcl_burning.set(player, "int", "hud_id")
|
mcl_burning.set(player, "int", "hud_id")
|
||||||
end)
|
end)
|
||||||
|
|
||||||
minetest.register_chatcommand("burn", {
|
|
||||||
func = function(name, param)
|
|
||||||
local player = minetest.get_player_by_name(name)
|
|
||||||
local sparam = param:split(" ")
|
|
||||||
local burn_time = tonumber(sparam[1]) or 5
|
|
||||||
local damage = tonumber(sparam[2]) or 0
|
|
||||||
if player then
|
|
||||||
mcl_burning.set_on_fire(player, burn_time, damage)
|
|
||||||
end
|
|
||||||
end
|
|
||||||
})
|
|
||||||
|
|
Loading…
Reference in a new issue