node_box = {
type = "fixed",
fixed = {0.05,-0.45,0.45, 0.05,-0.35,0.5}
fixed = {
{0.05, -0.45, 0.45, 0.05, -0.35, 0.5},
{0.1, -0.35, 0.1, 0.05, 0, 0.5},
}
4aiman wrote:Sorry for making you wait...
Here, add this to the very bottom of nodes.lua
- 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...
Users browsing this forum: No registered users and 2 guests