4aiman wrote:Sorry for making you wait...
Here, add this to the very bottom of nodes.luaYour 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_on_placenode(function (pos, newnode, placer, oldnode, itemstack)
-- minetest.chat_send_all(oldnode.name .. " was replaced with " .. newnode.name .. " at " .. minetest.serialize(pos))
pos.y = pos.y-1
local nodeunder = minetest.env:get_node(pos)
local name = nodeunder.name
-- minetest.chat_send_all("A node under that is at " .. minetest.serialize(pos) .. " and that is " .. name)
if name ~= "air" and newnode.name == "default:torch" then
pos.y = pos.y+1
minetest.env:remove_node(pos)
minetest.env:place_node(pos, {name="torches:torch_bottom"})
return
end
end
)
This piece of code replaces default:torch with torches:torch_bottom if a node under it isn't air.
Hereby I request an update! ;)
babe223 wrote:hm ... ok so I found interesting about that comment xD
you and very good with codes thanks for everything; D
babe223 wrote:@yves_de_beck Please update the pictures I know I could even atuliazar more I think it's cool to do direct download without even serves as a sort of download or something, another reason for me to update the textures and why I do not like minecraft mias season today days I comproeendo minetest descide then change the texture of the wood minecraft for minetest
pics...
Inocudom wrote:What you have circled in that image is what you would need to fix. The flames of the other torch models have proper texturing, so it should be possible with the lanterns.
Users browsing this forum: No registered users and 13 guests