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:
parent
6eb9a1362d
commit
dd477201da
8
init.lua
8
init.lua
@ -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)
|
||||
|
Loading…
x
Reference in New Issue
Block a user