Add grass path and farmland to creative inventory
This commit is contained in:
parent
8826cafa7c
commit
f5de6db4aa
4 changed files with 7 additions and 5 deletions
|
@ -713,7 +713,8 @@ minetest.register_abm({
|
|||
|
||||
-- Turn Grass Path and similar nodes to Dirt if a solid node is placed above it
|
||||
minetest.register_on_placenode(function(pos, newnode, placer, oldnode, itemstack, pointed_thing)
|
||||
if minetest.get_item_group(newnode.name, "solid") ~= 0 then
|
||||
if minetest.get_item_group(newnode.name, "solid") ~= 0 or
|
||||
minetest.get_item_group(newnode.name, "dirtifier") ~= 0 then
|
||||
local below = {x=pos.x, y=pos.y-1, z=pos.z}
|
||||
local belownode = minetest.get_node(below)
|
||||
if minetest.get_item_group(belownode.name, "dirtifies_below_solid") == 1 then
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue