treetap, rubber, caoutchouc added

This commit is contained in:
Maciej Kasatkin 2012-09-23 22:58:20 +02:00
parent d1715c47f8
commit 2dc24b2984
7 changed files with 6 additions and 6 deletions

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.6 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 458 B

After

Width:  |  Height:  |  Size: 381 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 205 B

After

Width:  |  Height:  |  Size: 286 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 536 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.9 KiB

BIN
textures/technic_rubber.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 587 B

@ -3,12 +3,12 @@
inventory_image = "technic_tree_tap.png", inventory_image = "technic_tree_tap.png",
on_use = function(itemstack,user,pointed_thing) on_use = function(itemstack,user,pointed_thing)
if pointed_thing.type~="node" then return end if pointed_thing.type~="node" then return end
if user:get_inventory():room_for_item("main",ItemStack("technic:raw_rubber")) then if user:get_inventory():room_for_item("main",ItemStack("technic:caouthouc")) then
local pos=minetest.get_pointed_thing_position(pointed_thing,above) local pos=minetest.get_pointed_thing_position(pointed_thing,above)
local node=minetest.env:get_node(pos) local node=minetest.env:get_node(pos)
local node_name=node.name local node_name=node.name
if node_name == "farming:rubber_tree_full" then if node_name == "farming:rubber_tree_full" then
user:get_inventory():add_item("main",ItemStack("technic:raw_rubber")) user:get_inventory():add_item("main",ItemStack("technic:caouthouc"))
minetest.env:set_node(pos,node) minetest.env:set_node(pos,node)
local item=itemstack:to_table() local item=itemstack:to_table()
local item_wear=tonumber((item["wear"])) local item_wear=tonumber((item["wear"]))
@ -32,15 +32,15 @@
}, },
}) })
minetest.register_craftitem("technic:raw_rubber", { minetest.register_craftitem("technic:caouthouc", {
description = "Raw Rubber", description = "Caouthouc",
inventory_image = "technic_raw_rubber.png", inventory_image = "technic_caouthouc.png",
}) })
minetest.register_craft({ minetest.register_craft({
type = "cooking", type = "cooking",
output = "technic:rubber", output = "technic:rubber",
recipe = "technic:raw_rubber", recipe = "technic:caouthouc",
}) })
minetest.register_craftitem("technic:rubber", { minetest.register_craftitem("technic:rubber", {