Is it possible to make empty hand place nodes?
-
- Member
- Posts: 29
- Joined: Sat Aug 08, 2020 21:35
Is it possible to make empty hand place nodes?
Is it possible to override the hand definition to allow it to place nodes? I tried messing w/ on_place but i'm not sure what to do with it or even if it's the right way to go about this. i.e. you have an empty hand and you right click and it will place node "default:stone", for example(?)
-
- Member
- Posts: 29
- Joined: Sat Aug 08, 2020 21:35
Re: Is it possible to make empty hand place nodes?
nvm, figured it out:
Code: Select all
minetest.override_item("", {
on_place = function(itemstack, placer, pointed_thing)
local ret = minetest.item_place(ItemStack("default:stone"), placer, pointed_thing)
return ItemStack("default:stone")
end,
...
Who is online
Users browsing this forum: No registered users and 11 guests