diff options
author | Fernando Carmona Varo <ferkiwi@gmail.com> | 2015-10-24 17:13:09 +0200 |
---|---|---|
committer | Fernando Carmona Varo <ferkiwi@gmail.com> | 2015-10-24 17:21:41 +0200 |
commit | 3a59f18eb196a3fddb8c67d5e5143a6e3ab0e11b (patch) | |
tree | 1b9b0f5d6b55fdb6e7cacaf4fc1d5cd50b23ff4e /pacmine/craftitems.lua | |
parent | a538d073951f06bf52f7e9f7cc8afe76efffb343 (diff) | |
parent | 683316f94c578ec030dc762eb256fd96c4dd978e (diff) |
Merge branch 'master' into arcade
Conflicts:
pacmine/init.lua
pacmine/portals.lua
Diffstat (limited to 'pacmine/craftitems.lua')
-rw-r--r-- | pacmine/craftitems.lua | 97 |
1 files changed, 0 insertions, 97 deletions
diff --git a/pacmine/craftitems.lua b/pacmine/craftitems.lua deleted file mode 100644 index cab05f0..0000000 --- a/pacmine/craftitems.lua +++ /dev/null @@ -1,97 +0,0 @@ -local cherry_box = { - type = "fixed", - fixed = { - {0, -0.375, -0.0625, 0.25, 0, 0.0625}, - {-0.0625, -0.3125, -0.0625, 0.3125, -0.0625, 0.0625}, - {-0.3125, -0.25, -0.0625, -0.125, 0.125, 0.0625}, - {-0.375, -0.1875, -0.0625, -0.125, 0.0625, 0.0625}, - {-0.125, -0.0625, -0.0625, -0.0625, 0.125, 0.0625}, - {-0.0625, 0, -0.0625, 0, 0.0625, 0.0625}, - {-0.0625, 0.125, -0.0625, 0, 0.1875, 0.0625}, - {0, 0.1875, -0.0625, 0.125, 0.25, 0.0625}, - {0.125, 0.25, -0.0625, 0.375, 0.3125, 0.0625}, - {0.25, 0.3125, -0.0625, 0.375, 0.375, 0.0625}, - {0.1875, 0.125, -0.0625, 0.25, 0.25, 0.0625}, - {0.125, 0.0625, -0.0625, 0.1875, 0.125, 0.0625}, - {0.0625, 0, -0.0625, 0.125, 0.0625, 0.0625}, - } - } -local strawberry_box = { - type = "fixed", - fixed = { - {-0.0625, 0.3125, -0.0625, 0, 0.375, 0.0625}, - {-0.25, 0.25, -0.0625, 0.1875, 0.3125, 0.0625}, - {-0.3125, 0.1875, -0.0625, 0.25, 0.25, 0.0625}, - {-0.375, -0.0625, -0.0625, 0.3125, 0.1875, 0.0625}, - {-0.3125, -0.1875, -0.0625, 0.25, -0.0625, 0.0625}, - {-0.25, -0.25, -0.0625, 0.1875, -0.1875, 0.0625}, - {-0.1875, -0.3125, -0.0625, 0.125, -0.25, 0.0625}, - {-0.0625, -0.375, -0.0625, 0, -0.3125, 0.0625}, - } - } -local apple_box = { - type = "fixed", - fixed = { - {-0.3125, -0.125, -0.0625, 0.375, 0.25, 0.0625}, - {-0.375, -0.125, -0.0625, -0.3125, 0.1875, 0.0625}, - {-0.3125, -0.25, -0.0625, 0.3125, -0.125, 0.0625}, - {-0.25, -0.3125, -0.0625, 0.25, -0.25, 0.0625}, - {0.0625, -0.375, -0.0625, 0.1875, -0.3125, 0.0625}, - {-0.1875, -0.375, -0.0625, 0, -0.3125, 0.0625}, - {0.125, 0.25, -0.0625, 0.3125, 0.3125, 0.0625}, - {0, 0.25, -0.0625, 0.0625, 0.3125, 0.0625}, - {-0.25, 0.25, -0.0625, -0.0625, 0.3125, 0.0625}, - {-0.0625, 0.3125, -0.0625, 0, 0.375, 0.0625}, - } - } -local orange_box = { - type = "fixed", - fixed = { - {-0.375, -0.125, -0.0625, 0.375, 0.125, 0.0625}, - {-0.3125, -0.25, -0.0625, 0.3125, 0.1875, 0.0625}, - {-0.25, -0.3125, -0.0625, 0.25, 0.25, 0.0625}, - {0.0625, -0.375, -0.0625, 0.1875, -0.3125, 0.0625}, - {-0.1875, -0.375, -0.0625, 0, -0.3125, 0.0625}, - {0, 0.25, -0.0625, 0.0625, 0.375, 0.0625}, - {-0.25, 0.3125, -0.0625, 0.0625, 0.375, 0.0625}, - {-0.1875, 0.25, -0.0625, -0.0625, 0.4375, 0.0625}, - {-0.25, 0.25, -0.0625, -0.1875, 0.3125, 0.0625}, - } - } - -local pelletitems = { - {"cherrys", "Cherrys","2",cherry_box}, - {"apple", "Apple","3",apple_box}, - {"orange", "Orange","4",orange_box}, - {"strawberry", "Strawberry","2",strawberry_box}, - } -for i in ipairs (pelletitems) do - local itm = pelletitems[i][1] - local desc = pelletitems[i][2] - local hlth = pelletitems[i][3] - local cbox = pelletitems[i][4] - -minetest.register_node("pacmine:"..itm,{ - description = desc, - inventory_image = "pacmine_"..itm..".png", - tiles = { - "pacmine_"..itm..".png", - "pacmine_"..itm..".png", - "pacmine_"..itm..".png", - "pacmine_"..itm..".png", - "pacmine_"..itm..".png", - "pacmine_"..itm..".png^[transformFX", - }, - drawtype = "nodebox", - paramtype = "light", - paramtype2 = "facedir", - walkable = false, - light_source = 14, - groups = {cracky=3,not_in_creative_inventory = 0}, - node_box = cbox, - collision_box = cbox, - after_destruct = function(pos, oldnode) - pacmine.on_player_got_fruit() - end, -}) -end |