Advertisement
Guest User

Untitled

a guest
Sep 13th, 2012
101
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.60 KB | None | 0 0
  1. -- uncomment this, it does not work
  2. -- local entity = minetest.registered_nodes["default:sapling"]
  3.  
  4.  
  5. -- uncomment this, it works fine
  6. --[[
  7. local entity = {
  8.     description = "Sapling",
  9.     drawtype = "plantlike",
  10.     visual_scale = 1.0,
  11.     tiles = {"default_sapling.png"},
  12.     inventory_image = "default_sapling.png",
  13.     wield_image = "default_sapling.png",
  14.     paramtype = "light",
  15.     walkable = false,
  16.     groups = {snappy=2,dig_immediate=3,flammable=2},
  17.     sounds = default.node_sound_defaults(),
  18. }
  19. ]]--
  20.  
  21. entity.after_place_node = function(pos) print("TESTING123") end
  22. minetest.register_node(":default:sapling", entity)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement