change drawtype of node to airlike, add wield_image to node, fill mod.conf with stuff and make getpos to get_pos

This commit is contained in:
DS-Minetest 2019-05-10 14:15:26 +02:00
parent 6eb9a1362d
commit dd477201da
2 changed files with 9 additions and 4 deletions

View File

@ -19,7 +19,7 @@ minetest.register_entity("colour_carrier:entity", {
collisionbox = {0,0,0,0,0,0},
physical = false,
on_activate = function(self, staticdata)
local pos = self.object:getpos()
local pos = self.object:get_pos()
if minetest.get_node(pos).name ~= "colour_carrier:node" then
self.object:remove()
return
@ -145,11 +145,13 @@ end
minetest.register_node("colour_carrier:node", {
description = "colour carrier",
tiles = {"blank.png"},
--~ tiles = {"blank.png"},
drawtype = "airlike",
sunlight_propagates = true,
paramtype = "light",
inventory_image = "colour_carrier.png",
groups = {cracky=3, stone=1},
wield_image = "colour_carrier.png",
groups = {cracky = 3, stone = 1},
sounds = default.node_sound_stone_defaults(),
on_construct = function(pos)
set_entity(pos)

View File

@ -1 +1,4 @@
name = colour_carrier
depends = default, digilines
optional_depends = mesecons_lightstone
description = This is a minetest mod that adds nodes which can have any color set via digiline.