|
@ -0,0 +1 @@
|
|||
default
|
|
@ -0,0 +1,116 @@
|
|||
-- add_tool
|
||||
-- Make it easier to add a tool type (e.g. gold tools, silver tools, etc.)
|
||||
-- Copyright 2011 Mark Holmquist, licensed under GPLv3
|
||||
|
||||
-- syntax:
|
||||
-- register_tool_type(mod, type, crafttype, time, uses, extra_rules)
|
||||
-- mod = name of your mod
|
||||
-- type = type of tool
|
||||
-- crafttype = name of item used to craft the tool ('craft "default:cobble"' or similar)
|
||||
-- time = speed of the tool type (lower is faster)
|
||||
-- uses = durability
|
||||
-- extra_rules = a table with any extra rules. example:
|
||||
-- {shovel_durability = 40} -- increases the base durability of shovels by 40 uses
|
||||
-- {pick_speed = -0.2} -- decreases the amount of time taken per dig by 0.2 seconds for picks
|
||||
|
||||
-- Please note that, if you're adding your tools using this mod, it expects your texture to be of form
|
||||
-- [[modname]]_tool_[[type]]shovel.png
|
||||
-- For example:
|
||||
-- moreores_tool_goldpick.png
|
||||
|
||||
-- Updated by Calinou on 2011-01-23
|
||||
-- For More Ores mod
|
||||
|
||||
register_tool_type = function(modname, labelname, typename, crafttype, basetime, basedurability, extra_rules)
|
||||
minetest.register_craft({
|
||||
description = labelname,
|
||||
output = 'tool "'..modname..':'..typename..'_pick'..'"',
|
||||
recipe = {
|
||||
{ crafttype, crafttype, crafttype },
|
||||
{ '', 'craft "default:stick"', ''},
|
||||
{ '', 'craft "default:stick"', ''}
|
||||
}
|
||||
})
|
||||
|
||||
minetest.register_craft({
|
||||
description = labelname,
|
||||
output = 'tool "'..modname..':'..typename..'_shovel'..'"',
|
||||
recipe = {
|
||||
{ '', crafttype, '' },
|
||||
{ '', 'craft "default:stick"', ''},
|
||||
{ '', 'craft "default:stick"', ''}
|
||||
}
|
||||
})
|
||||
|
||||
minetest.register_craft({
|
||||
description = labelname,
|
||||
output = 'tool "'..modname..':'..typename..'_axe'..'"',
|
||||
recipe = {
|
||||
{ crafttype, crafttype },
|
||||
{ crafttype, 'craft "default:stick"' },
|
||||
{ '', 'craft "default:stick"'}
|
||||
}
|
||||
})
|
||||
|
||||
minetest.register_craft({
|
||||
description = labelname,
|
||||
output = 'tool "'..modname..':'..typename..'_sword'..'"',
|
||||
recipe = {
|
||||
{ crafttype },
|
||||
{ crafttype },
|
||||
{ 'craft "default:stick"' }
|
||||
}
|
||||
})
|
||||
|
||||
local ft = basetime + (extra_rules.pick_speed or 0)
|
||||
local fd = basedurability + (extra_rules.pick_durability or 0)
|
||||
minetest.register_tool(modname..":"..typename.."_pick", {
|
||||
inventory_image = modname.."_tool_"..typename.."pick.png",
|
||||
tool_capabilities = {
|
||||
max_drop_level=1,
|
||||
groupcaps={
|
||||
cracky={times={[1]=0.5, [2]=0.3, [3]=0.2}, maxwear=0.05, maxlevel=3},
|
||||
crumbly={times={[1]=1.0, [2]=0.7, [3]=0.5}, maxwear=0.05, maxlevel=3},
|
||||
snappy={times={[1]=1.0, [2]=0.7, [3]=0.4}, maxwear=0.05, maxlevel=3}
|
||||
}
|
||||
},
|
||||
})
|
||||
|
||||
ft = basetime + (extra_rules.shovel_speed or 0)
|
||||
fd = basedurability + (extra_rules.shovel_durability or 0)
|
||||
minetest.register_tool(modname..":"..typename.."_shovel", {
|
||||
inventory_image = modname.."_tool_"..typename.."shovel.png",
|
||||
tool_capabilities = {
|
||||
max_drop_level=1,
|
||||
groupcaps={
|
||||
crumbly={times={[1]=0.40, [2]=0.30, [3]=0.15}, maxwear=0.1, maxlevel=2}
|
||||
}
|
||||
},
|
||||
})
|
||||
|
||||
ft = basetime + (extra_rules.axe_speed or 0)
|
||||
fd = basedurability + (extra_rules.axe_durability or 0)
|
||||
minetest.register_tool(modname..":"..typename.."_axe", {
|
||||
inventory_image = modname.."_tool_"..typename.."axe.png", tool_capabilities = {
|
||||
full_punch_interval = 1.0,
|
||||
max_drop_level=1,
|
||||
groupcaps={
|
||||
fleshy={times={[1]=0.70, [2]=0.20, [3]=0.10}, maxwear=0.1, maxlevel=2},
|
||||
snappy={times={[2]=0.70, [3]=0.30}, maxwear=0.03, maxlevel=1},
|
||||
choppy={times={[3]=0.70}, maxwear=0.03, maxlevel=0}
|
||||
}
|
||||
}
|
||||
})
|
||||
|
||||
ft = basetime + (extra_rules.sword_speed or 0)
|
||||
fd = basedurability + (extra_rules.sword_durability or 0)
|
||||
minetest.register_tool(modname..":"..typename.."_sword", {
|
||||
inventory_image = modname.."_tool_"..typename.."sword.png",
|
||||
tool_capabilities = {
|
||||
max_drop_level=1,
|
||||
groupcaps={
|
||||
crumbly={times={[1]=0.30, [2]=0.15, [3]=0.10}, maxwear=0.1, maxlevel=2}
|
||||
}
|
||||
},
|
||||
})
|
||||
end
|
|
@ -0,0 +1,2 @@
|
|||
default
|
||||
|
|
@ -0,0 +1,95 @@
|
|||
-- bucket (Minetest 0.4 mod)
|
||||
-- A bucket, which can pick up water and lava
|
||||
|
||||
minetest.register_alias("bucket", "bucket:bucket_empty")
|
||||
minetest.register_alias("bucket_water", "bucket:bucket_water")
|
||||
minetest.register_alias("bucket_lava", "bucket:bucket_lava")
|
||||
|
||||
minetest.register_craft({
|
||||
output = 'bucket:bucket_empty 1',
|
||||
recipe = {
|
||||
{'default:steel_ingot', '', 'default:steel_ingot'},
|
||||
{'', 'default:steel_ingot', ''},
|
||||
}
|
||||
})
|
||||
|
||||
bucket = {}
|
||||
bucket.liquids = {}
|
||||
|
||||
-- Register a new liquid
|
||||
-- source = name of the source node
|
||||
-- flowing = name of the flowing node
|
||||
-- itemname = name of the new bucket item (or nil if liquid is not takeable)
|
||||
-- inventory_image = texture of the new bucket item (ignored if itemname == nil)
|
||||
-- This function can be called from any mod (that depends on bucket).
|
||||
function bucket.register_liquid(source, flowing, itemname, inventory_image)
|
||||
bucket.liquids[source] = {
|
||||
source = source,
|
||||
flowing = flowing,
|
||||
itemname = itemname,
|
||||
}
|
||||
bucket.liquids[flowing] = bucket.liquids[source]
|
||||
|
||||
if itemname ~= nil then
|
||||
minetest.register_craftitem(itemname, {
|
||||
inventory_image = inventory_image,
|
||||
stack_max = 1,
|
||||
liquids_pointable = true,
|
||||
on_use = function(itemstack, user, pointed_thing)
|
||||
-- Must be pointing to node
|
||||
if pointed_thing.type ~= "node" then
|
||||
return
|
||||
end
|
||||
-- Check if pointing to a liquid
|
||||
n = minetest.env:get_node(pointed_thing.under)
|
||||
if bucket.liquids[n.name] == nil then
|
||||
-- Not a liquid
|
||||
minetest.env:add_node(pointed_thing.above, {name=source})
|
||||
elseif n.name ~= source then
|
||||
-- It's a liquid
|
||||
minetest.env:add_node(pointed_thing.under, {name=source})
|
||||
end
|
||||
return {name="bucket:bucket_empty"}
|
||||
end
|
||||
})
|
||||
end
|
||||
end
|
||||
|
||||
minetest.register_craftitem("bucket:bucket_empty", {
|
||||
inventory_image = "bucket.png",
|
||||
stack_max = 1,
|
||||
liquids_pointable = true,
|
||||
on_use = function(itemstack, user, pointed_thing)
|
||||
-- Must be pointing to node
|
||||
if pointed_thing.type ~= "node" then
|
||||
return
|
||||
end
|
||||
-- Check if pointing to a liquid source
|
||||
n = minetest.env:get_node(pointed_thing.under)
|
||||
liquiddef = bucket.liquids[n.name]
|
||||
if liquiddef ~= nil and liquiddef.source == n.name and liquiddef.itemname ~= nil then
|
||||
minetest.env:add_node(pointed_thing.under, {name="air"})
|
||||
return {name=liquiddef.itemname}
|
||||
end
|
||||
end,
|
||||
})
|
||||
|
||||
bucket.register_liquid(
|
||||
"default:water_source",
|
||||
"default:water_flowing",
|
||||
"bucket:bucket_water",
|
||||
"bucket_water.png"
|
||||
)
|
||||
|
||||
bucket.register_liquid(
|
||||
"default:lava_source",
|
||||
"default:lava_flowing",
|
||||
"bucket:bucket_lava",
|
||||
"bucket_lava.png"
|
||||
)
|
||||
|
||||
minetest.register_craft({
|
||||
type = "fuel",
|
||||
recipe = "default:bucket_lava",
|
||||
burntime = 60,
|
||||
})
|
After Width: | Height: | Size: 329 B |
After Width: | Height: | Size: 363 B |
After Width: | Height: | Size: 369 B |
After Width: | Height: | Size: 1.1 KiB |
After Width: | Height: | Size: 203 B |
After Width: | Height: | Size: 292 B |
After Width: | Height: | Size: 597 B |
After Width: | Height: | Size: 604 B |
After Width: | Height: | Size: 279 B |
After Width: | Height: | Size: 236 B |
After Width: | Height: | Size: 167 B |
After Width: | Height: | Size: 224 B |
After Width: | Height: | Size: 151 B |
After Width: | Height: | Size: 142 B |
After Width: | Height: | Size: 613 B |
After Width: | Height: | Size: 249 B |
After Width: | Height: | Size: 210 B |
After Width: | Height: | Size: 118 B |
After Width: | Height: | Size: 933 B |
After Width: | Height: | Size: 830 B |
After Width: | Height: | Size: 1.5 KiB |
After Width: | Height: | Size: 539 B |
After Width: | Height: | Size: 246 B |
After Width: | Height: | Size: 236 B |
After Width: | Height: | Size: 978 B |
After Width: | Height: | Size: 874 B |
After Width: | Height: | Size: 856 B |
After Width: | Height: | Size: 878 B |
After Width: | Height: | Size: 591 B |
After Width: | Height: | Size: 936 B |
After Width: | Height: | Size: 672 B |
After Width: | Height: | Size: 502 B |
After Width: | Height: | Size: 507 B |
After Width: | Height: | Size: 395 B |
After Width: | Height: | Size: 357 B |
After Width: | Height: | Size: 1.6 KiB |
After Width: | Height: | Size: 203 B |
After Width: | Height: | Size: 952 B |
After Width: | Height: | Size: 1.6 KiB |
After Width: | Height: | Size: 965 B |
After Width: | Height: | Size: 303 B |
After Width: | Height: | Size: 410 B |
After Width: | Height: | Size: 203 B |
After Width: | Height: | Size: 260 B |
After Width: | Height: | Size: 242 B |
After Width: | Height: | Size: 366 B |
After Width: | Height: | Size: 507 B |
After Width: | Height: | Size: 555 B |
After Width: | Height: | Size: 545 B |
After Width: | Height: | Size: 542 B |
After Width: | Height: | Size: 1.3 KiB |
After Width: | Height: | Size: 772 B |
After Width: | Height: | Size: 502 B |
After Width: | Height: | Size: 233 B |
After Width: | Height: | Size: 489 B |
After Width: | Height: | Size: 219 B |
After Width: | Height: | Size: 207 B |
After Width: | Height: | Size: 182 B |
After Width: | Height: | Size: 806 B |
After Width: | Height: | Size: 161 B |
After Width: | Height: | Size: 186 B |
After Width: | Height: | Size: 264 B |
After Width: | Height: | Size: 252 B |
After Width: | Height: | Size: 927 B |
After Width: | Height: | Size: 271 B |
After Width: | Height: | Size: 216 B |
After Width: | Height: | Size: 291 B |
After Width: | Height: | Size: 931 B |
After Width: | Height: | Size: 262 B |
After Width: | Height: | Size: 203 B |
After Width: | Height: | Size: 301 B |
After Width: | Height: | Size: 927 B |
After Width: | Height: | Size: 245 B |
After Width: | Height: | Size: 203 B |
After Width: | Height: | Size: 255 B |
After Width: | Height: | Size: 925 B |
After Width: | Height: | Size: 913 B |
After Width: | Height: | Size: 917 B |
After Width: | Height: | Size: 1.4 KiB |
After Width: | Height: | Size: 1.0 KiB |
After Width: | Height: | Size: 518 B |
After Width: | Height: | Size: 1.4 KiB |
After Width: | Height: | Size: 308 B |
After Width: | Height: | Size: 212 B |
After Width: | Height: | Size: 201 B |
After Width: | Height: | Size: 1.0 KiB |
After Width: | Height: | Size: 384 B |
|
@ -0,0 +1,97 @@
|
|||
minetest.timers_to_add = {}
|
||||
minetest.timers = {}
|
||||
minetest.register_globalstep(function(dtime)
|
||||
for indes, timer in ipairs(minetest.timers_to_add) do
|
||||
table.insert(minetest.timers, timer)
|
||||
end
|
||||
minetest.timers_to_add = {}
|
||||
for index, timer in ipairs(minetest.timers) do
|
||||
timer.time = timer.time - dtime
|
||||
if timer.time <= 0 then
|
||||
timer.func(timer.params)
|
||||
minetest.timers[index] = nil
|
||||
end
|
||||
end
|
||||
end)
|
||||
|
||||
|
||||
function minetest.after(time, func, params)
|
||||
table.insert(minetest.timers_to_add, {time=time, func=func, params=params})
|
||||
end
|
||||
|
||||
local activateautoquarrydigging = function(node)
|
||||
if node.name ~= 'electricforge:autoquarry' then return end
|
||||
local digs=1
|
||||
while(minetest.env:get_node({x=pos.x,y=pos.y-digs,z=pos.z}).name=='electricforge:quarrydiggerpole') do
|
||||
print(digs)
|
||||
digs=digs+1
|
||||
end
|
||||
quarrypos = { x = pos.x, y = pos.y+1, z = pos.z }
|
||||
quarrypos2 = { x = pos.x, y = pos.y - digs, z = pos.z }
|
||||
nodepos = { x = pos.x, y = pos.y - digs, z = pos.z }
|
||||
nodepos2 = { x = pos.x - 1, y = pos.y - digs, z = pos.z }
|
||||
nodepos3 = { x = pos.x, y = pos.y - digs, z = pos.z - 1 }
|
||||
nodepos4 = { x = pos.x + 1, y = pos.y - digs, z = pos.z }
|
||||
nodepos5 = { x = pos.x, y = pos.y - digs, z = pos.z + 1 }
|
||||
nodepos6 = { x = pos.x + 1, y = pos.y - digs, z = pos.z + 1}
|
||||
nodepos7 = { x = pos.x - 1, y = pos.y - digs, z = pos.z - 1}
|
||||
nodepos8 = { x = pos.x + 1, y = pos.y - digs, z = pos.z - 1}
|
||||
nodepos9 = { x = pos.x - 1, y = pos.y - digs, z = pos.z + 1}
|
||||
--GETTING NODE AND GIVING
|
||||
local drop1 = minetest.env:get_node( nodepos )
|
||||
local drop2 = minetest.env:get_node( nodepos2 )
|
||||
local drop3 = minetest.env:get_node( nodepos3 )
|
||||
local drop4 = minetest.env:get_node( nodepos4 )
|
||||
local drop5 = minetest.env:get_node( nodepos5 )
|
||||
local drop6 = minetest.env:get_node( nodepos6 )
|
||||
local drop7 = minetest.env:get_node( nodepos7 )
|
||||
local drop8 = minetest.env:get_node( nodepos8 )
|
||||
local drop9 = minetest.env:get_node( nodepos9 )
|
||||
--DIGGING
|
||||
if drop1.name ~= 'air' then
|
||||
minetest.env:add_item(quarrypos, drop1)
|
||||
end
|
||||
if drop2.name ~= 'air' then
|
||||
minetest.env:add_item(quarrypos, drop2)
|
||||
end
|
||||
if drop3.name ~= 'air' then
|
||||
minetest.env:add_item(quarrypos, drop3)
|
||||
end
|
||||
if drop4.name ~= 'air' then
|
||||
minetest.env:add_item(quarrypos, drop4)
|
||||
end
|
||||
if drop5.name ~= 'air' then
|
||||
minetest.env:add_item(quarrypos, drop5)
|
||||
end
|
||||
if drop6.name ~= 'air' then
|
||||
minetest.env:add_item(quarrypos, drop6)
|
||||
end
|
||||
if drop7.name ~= 'air' then
|
||||
minetest.env:add_item(quarrypos, drop7)
|
||||
end
|
||||
if drop8.name ~= 'air' then
|
||||
minetest.env:add_item(quarrypos, drop8)
|
||||
end
|
||||
if drop9.name ~= 'air' then
|
||||
minetest.env:add_item(quarrypos, drop9)
|
||||
end
|
||||
--minetest.env:remove_node( quarrypos )
|
||||
minetest.env:remove_node( nodepos )
|
||||
minetest.env:remove_node( nodepos2 )
|
||||
minetest.env:remove_node( nodepos3 )
|
||||
minetest.env:remove_node( nodepos4 )
|
||||
minetest.env:remove_node( nodepos5 )
|
||||
minetest.env:remove_node( nodepos6 )
|
||||
minetest.env:remove_node( nodepos7 )
|
||||
minetest.env:remove_node( nodepos8 )
|
||||
minetest.env:remove_node( nodepos9 )
|
||||
minetest.env:add_node( quarrypos2, { name='electricforge:quarrydiggerpole' } )
|
||||
end
|
||||
|
||||
|
||||
local activateautoquarry = function( pos, node )
|
||||
minetest.after(1, activateautoquarrydigging,{pos, node})
|
||||
end
|
||||
|
||||
|
||||
minetest.register_on_punchnode( activateautoquarry )
|
|
@ -0,0 +1,38 @@
|
|||
-- _______ _ _______
|
||||
-- (_______) | | (_______) _
|
||||
-- _____ ___ ____| | _ _____ ___ ____ ____ ____ ____ ____| |_
|
||||
-- | ___) _ \ / ___) | / ) ___) _ \ / ___) _ |/ _ ) | _ \ / _ ) _)
|
||||
-- | | | |_| | | | |< (| | | |_| | | ( ( | ( (/ / _| | | ( (/ /| |__
|
||||
-- |_| \___/|_| |_| \_)_| \___/|_| \_|| |\____|_)_| |_|\____)\___)
|
||||
-- (_____|
|
||||
--
|
||||
-- ######################################################################
|
||||
-- BLOCKFORGE
|
||||
-- ######################################################################
|
||||
--
|
||||
-- ~ Project's Site: http://blockforge.forkforge.net
|
||||
-- ~ Main Site: http://forkforge.net
|
||||
--
|
||||
-- This program is free software; you can redistribute it and/or modify
|
||||
-- it under the terms of the GNU General Public License as published by
|
||||
-- the Free Software Foundation; either version 2 of the License, or
|
||||
-- (at your option) any later version.
|
||||
--
|
||||
-- This program is distributed in the hope that it will be useful,
|
||||
-- but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
-- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
-- GNU General Public License for more details.
|
||||
--
|
||||
-- You should have received a copy of the GNU General Public License along
|
||||
-- with this program; if not, write to the Free Software Foundation, Inc.,
|
||||
-- 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
|
||||
--
|
||||
|
||||
|
||||
minetest.register_craftitem("electricforge:intbattery", {
|
||||
image = "if_intbat.png",
|
||||
on_place_on_ground = minetest.craftitem_place_item,
|
||||
description = "Internal Battery"
|
||||
})
|
||||
|
||||
|
|
@ -0,0 +1,7 @@
|
|||
minetest.register_craftitem("electricforge:intbattery", {
|
||||
image = "if_intbat.png",
|
||||
on_place_on_ground = minetest.craftitem_place_item,
|
||||
description = "Internal Battery"
|
||||
})
|
||||
|
||||
|
|
@ -0,0 +1,40 @@
|
|||
-- _______ _ _______
|
||||
-- (_______) | | (_______) _
|
||||
-- _____ ___ ____| | _ _____ ___ ____ ____ ____ ____ ____| |_
|
||||
-- | ___) _ \ / ___) | / ) ___) _ \ / ___) _ |/ _ ) | _ \ / _ ) _)
|
||||
-- | | | |_| | | | |< (| | | |_| | | ( ( | ( (/ / _| | | ( (/ /| |__
|
||||
-- |_| \___/|_| |_| \_)_| \___/|_| \_|| |\____|_)_| |_|\____)\___)
|
||||
-- (_____|
|
||||
--
|
||||
-- ######################################################################
|
||||
-- BLOCKFORGE
|
||||
-- ######################################################################
|
||||
--
|
||||
-- ~ Project's Site: http://blockforge.forkforge.net
|
||||
-- ~ Main Site: http://forkforge.net
|
||||
--
|
||||
-- This program is free software; you can redistribute it and/or modify
|
||||
-- it under the terms of the GNU General Public License as published by
|
||||
-- the Free Software Foundation; either version 2 of the License, or
|
||||
-- (at your option) any later version.
|
||||
--
|
||||
-- This program is distributed in the hope that it will be useful,
|
||||
-- but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
-- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
-- GNU General Public License for more details.
|
||||
--
|
||||
-- You should have received a copy of the GNU General Public License along
|
||||
-- with this program; if not, write to the Free Software Foundation, Inc.,
|
||||
-- 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
|
||||
--
|
||||
|
||||
|
||||
|
||||
minetest.register_node("electricforge:electroblock", {
|
||||
tile_images = {"if_electroblock.png","if_electroblock.png",
|
||||
"if_electroblock.png","if_electroblock.png",
|
||||
"if_electroblock.png","if_electroblock.png"},
|
||||
inventory_image = "if_electroblock.png",
|
||||
groups = {crumbly=1},
|
||||
})
|
||||
|
|
@ -0,0 +1,9 @@
|
|||
|
||||
minetest.register_node("electricforge:electroblock", {
|
||||
tile_images = {"if_electroblock.png","if_electroblock.png",
|
||||
"if_electroblock.png","if_electroblock.png",
|
||||
"if_electroblock.png","if_electroblock.png"},
|
||||
inventory_image = "if_electroblock.png",
|
||||
groups = {crumbly=1},
|
||||
})
|
||||
|
|
@ -0,0 +1,13 @@
|
|||
minetest.register_tool("electricforge:reader", {
|
||||
description = "EReader",
|
||||
tile_images = {"ereader.png"},
|
||||
on_use = function(item, player, pointed_thing)
|
||||
if pointed_thing.type == "node" then
|
||||
local pnode = minetest.env:get_node(pointed_thing)
|
||||
print(minetest.env:get_e_level(pnode))
|
||||
print(pnode.name)
|
||||
end
|
||||
end
|
||||
});
|
||||
|
||||
|
|
@ -0,0 +1,26 @@
|
|||
|
||||
minetest.register_node("electricforge:electroblock", {
|
||||
tile_images = {"if_electroblock.png","if_electroblock.png",
|
||||
"if_electroblock.png","if_electroblock.png",
|
||||
"if_electroblock.png","if_electroblock.png"},
|
||||
inventory_image = "if_electroblock.png",
|
||||
groups = {crumbly=1},
|
||||
})
|
||||
|
||||
minetest.register_craftitem("electricforge:controlpanel", {
|
||||
image = "if_controlpanel.png",
|
||||
on_place_on_ground = minetest.craftitem_place_item,
|
||||
description = "Control Panel"
|
||||
})
|
||||
|
||||
minetest.register_craftitem("electricforge:industrial_iron", {
|
||||
image = "industrial_iron.png",
|
||||
on_place_on_ground = minetest.craftitem_place_item,
|
||||
description = "Industrial Iron ingot"
|
||||
})
|
||||
|
||||
minetest.register_craftitem("electricforge:oilplate", {
|
||||
image = "if_oilplate.png",
|
||||
on_place_on_ground = minetest.craftitem_place_item,
|
||||
description = "Oil Plate"
|
||||
})
|
|
@ -0,0 +1,6 @@
|
|||
minetest.register_on_placenode( placelamp )
|
||||
minetest.register_on_punchnode( activatequarry )
|
||||
minetest.register_on_punchnode( activateraffinery )
|
||||
minetest.register_on_punchnode( activatemacerator )
|
||||
|
||||
|