diff options
author | Kahrl <kahrl@gmx.net> | 2012-01-22 15:57:49 +0100 |
---|---|---|
committer | Perttu Ahola <celeron55@gmail.com> | 2012-01-22 17:31:20 +0200 |
commit | 0a426f359205c1a25f400b2079e374be40724d6a (patch) | |
tree | cce30d50ce4baab244d5c304595589ea8db34355 /data/mods | |
parent | 00bc9a8678e8ddbe305f0f2d8dc36334b6733ef7 (diff) | |
download | minetest-0a426f359205c1a25f400b2079e374be40724d6a.tar.gz minetest-0a426f359205c1a25f400b2079e374be40724d6a.tar.bz2 minetest-0a426f359205c1a25f400b2079e374be40724d6a.zip |
Fix give_initial_stuff mod; experimental mod: dug_item -> drop; scriptapi.cpp: drops -> drop
Diffstat (limited to 'data/mods')
-rw-r--r-- | data/mods/experimental/init.lua | 2 | ||||
-rw-r--r-- | data/mods/give_initial_stuff/init.lua | 10 |
2 files changed, 6 insertions, 6 deletions
diff --git a/data/mods/experimental/init.lua b/data/mods/experimental/init.lua index a58d8f08d..368295ea7 100644 --- a/data/mods/experimental/init.lua +++ b/data/mods/experimental/init.lua @@ -271,7 +271,7 @@ minetest.register_node("experimental:tnt", { "default_tnt_side.png", "default_tnt_side.png"}, inventory_image = minetest.inventorycube("default_tnt_top.png", "default_tnt_side.png", "default_tnt_side.png"), - dug_item = '', -- Get nothing + drop = '', -- Get nothing material = { diggability = "not", }, diff --git a/data/mods/give_initial_stuff/init.lua b/data/mods/give_initial_stuff/init.lua index e52784d64..9cf6b51b5 100644 --- a/data/mods/give_initial_stuff/init.lua +++ b/data/mods/give_initial_stuff/init.lua @@ -2,11 +2,11 @@ minetest.register_on_newplayer(function(player) print("on_newplayer") if minetest.setting_getbool("give_initial_stuff") then print("giving give_initial_stuff to player") - player:add_to_inventory('tool "SteelPick" 0') - player:add_to_inventory('node "torch" 99') - player:add_to_inventory('tool "SteelAxe" 0') - player:add_to_inventory('tool "SteelShovel" 0') - player:add_to_inventory('node "cobble" 99') + player:get_inventory():add_item('main', 'default:pick_steel') + player:get_inventory():add_item('main', 'default:torch 99') + player:get_inventory():add_item('main', 'default:axe_steel') + player:get_inventory():add_item('main', 'default:shovel_steel') + player:get_inventory():add_item('main', 'default:cobble 99') end end) |