git remote add <repository name> <repository url>
git push <repository name> master
minetest.register_craftitem("home_mod:rose_can", {
image = "rose_can.png",
on_place_on_ground = minetest.craftitem_place_item,
on_use = function(item, player, pointed_thing)
if pointed_thing.type == "node" then
n = minetest.env:get_node(pointed_thing.under)
if string.match(n.name, "home_mod:%a-_wallpaper") ~= nil then
minetest.env:remove_node(pointed_thing)
minetest.env:add_node(pointed_thing.under, {name="home_mod:red_wallpaper", param2=n.param2})
player:add_to_inventory_later('craft "home_mod:can" 1')
return true
end
end
return false
end,
})
Users browsing this forum: No registered users and 1 guest