Compare commits
7 Commits
Author | SHA1 | Date | |
---|---|---|---|
87a1e37d34 | |||
6ad1d56b3d | |||
d3d3e76447 | |||
794c68b32b | |||
0722c8064b | |||
d98eab6a84 | |||
61a9bb2b47 |
@ -1,6 +1,7 @@
|
|||||||
-- minetest/creative/init.lua
|
-- minetest/creative/init.lua
|
||||||
|
|
||||||
local creative_inventory = {}
|
local creative_inventory = {}
|
||||||
|
creative_inventory.creative_inventory_size = 0
|
||||||
|
|
||||||
-- Create detached creative inventory after loading all mods
|
-- Create detached creative inventory after loading all mods
|
||||||
minetest.after(0, function()
|
minetest.after(0, function()
|
||||||
|
@ -61,4 +61,10 @@ Originating from G4JC's Almost MC Texture Pack:
|
|||||||
default_torch.png
|
default_torch.png
|
||||||
default_torch_on_ceiling.png
|
default_torch_on_ceiling.png
|
||||||
default_torch_on_floor.png
|
default_torch_on_floor.png
|
||||||
|
|
||||||
|
VanessaE's animated torches (WTFPL):
|
||||||
|
default_torch_animated.png
|
||||||
|
default_torch_on_ceiling_animated.png
|
||||||
|
default_torch_on_floor_animated.png
|
||||||
|
default_torch_on_floor.png
|
||||||
|
|
||||||
|
@ -1098,7 +1098,12 @@ minetest.register_node("default:lava_source", {
|
|||||||
minetest.register_node("default:torch", {
|
minetest.register_node("default:torch", {
|
||||||
description = "Torch",
|
description = "Torch",
|
||||||
drawtype = "torchlike",
|
drawtype = "torchlike",
|
||||||
tiles = {"default_torch_on_floor.png", "default_torch_on_ceiling.png", "default_torch.png"},
|
--tiles = {"default_torch_on_floor.png", "default_torch_on_ceiling.png", "default_torch.png"},
|
||||||
|
tiles = {
|
||||||
|
{name="default_torch_on_floor_animated.png", animation={type="vertical_frames", aspect_w=16, aspect_h=16, length=3.0}},
|
||||||
|
{name="default_torch_on_ceiling_animated.png", animation={type="vertical_frames", aspect_w=16, aspect_h=16, length=3.0}},
|
||||||
|
{name="default_torch_animated.png", animation={type="vertical_frames", aspect_w=16, aspect_h=16, length=3.0}}
|
||||||
|
},
|
||||||
inventory_image = "default_torch_on_floor.png",
|
inventory_image = "default_torch_on_floor.png",
|
||||||
wield_image = "default_torch_on_floor.png",
|
wield_image = "default_torch_on_floor.png",
|
||||||
paramtype = "light",
|
paramtype = "light",
|
||||||
@ -1127,7 +1132,6 @@ minetest.register_node("default:sign_wall", {
|
|||||||
paramtype2 = "wallmounted",
|
paramtype2 = "wallmounted",
|
||||||
sunlight_propagates = true,
|
sunlight_propagates = true,
|
||||||
walkable = false,
|
walkable = false,
|
||||||
metadata_name = "sign",
|
|
||||||
selection_box = {
|
selection_box = {
|
||||||
type = "wallmounted",
|
type = "wallmounted",
|
||||||
--wall_top = <default>
|
--wall_top = <default>
|
||||||
@ -1165,7 +1169,7 @@ minetest.register_node("default:chest", {
|
|||||||
on_construct = function(pos)
|
on_construct = function(pos)
|
||||||
local meta = minetest.env:get_meta(pos)
|
local meta = minetest.env:get_meta(pos)
|
||||||
meta:set_string("formspec",
|
meta:set_string("formspec",
|
||||||
"invsize[8,9;]"..
|
"size[8,9]"..
|
||||||
"list[current_name;main;0,0;8,4;]"..
|
"list[current_name;main;0,0;8,4;]"..
|
||||||
"list[current_player;main;0,5;8,4;]")
|
"list[current_player;main;0,5;8,4;]")
|
||||||
meta:set_string("infotext", "Chest")
|
meta:set_string("infotext", "Chest")
|
||||||
@ -1215,7 +1219,7 @@ minetest.register_node("default:chest_locked", {
|
|||||||
on_construct = function(pos)
|
on_construct = function(pos)
|
||||||
local meta = minetest.env:get_meta(pos)
|
local meta = minetest.env:get_meta(pos)
|
||||||
meta:set_string("formspec",
|
meta:set_string("formspec",
|
||||||
"invsize[8,9;]"..
|
"size[8,9]"..
|
||||||
"list[current_name;main;0,0;8,4;]"..
|
"list[current_name;main;0,0;8,4;]"..
|
||||||
"list[current_player;main;0,5;8,4;]")
|
"list[current_player;main;0,5;8,4;]")
|
||||||
meta:set_string("infotext", "Locked Chest")
|
meta:set_string("infotext", "Locked Chest")
|
||||||
@ -1276,7 +1280,7 @@ minetest.register_node("default:chest_locked", {
|
|||||||
})
|
})
|
||||||
|
|
||||||
default.furnace_inactive_formspec =
|
default.furnace_inactive_formspec =
|
||||||
"invsize[8,9;]"..
|
"size[8,9]"..
|
||||||
"image[2,2;1,1;default_furnace_fire_bg.png]"..
|
"image[2,2;1,1;default_furnace_fire_bg.png]"..
|
||||||
"list[current_name;fuel;2,3;1,1;]"..
|
"list[current_name;fuel;2,3;1,1;]"..
|
||||||
"list[current_name;src;2,1;1,1;]"..
|
"list[current_name;src;2,1;1,1;]"..
|
||||||
@ -1403,7 +1407,7 @@ minetest.register_abm({
|
|||||||
srcstack:take_item()
|
srcstack:take_item()
|
||||||
inv:set_stack("src", 1, srcstack)
|
inv:set_stack("src", 1, srcstack)
|
||||||
else
|
else
|
||||||
print("Could not insert '"..cooked.item.."'")
|
print("Could not insert '"..cooked.item:to_string().."'")
|
||||||
end
|
end
|
||||||
meta:set_string("src_time", 0)
|
meta:set_string("src_time", 0)
|
||||||
end
|
end
|
||||||
@ -1415,7 +1419,7 @@ minetest.register_abm({
|
|||||||
meta:set_string("infotext","Furnace active: "..percent.."%")
|
meta:set_string("infotext","Furnace active: "..percent.."%")
|
||||||
hacky_swap_node(pos,"default:furnace_active")
|
hacky_swap_node(pos,"default:furnace_active")
|
||||||
meta:set_string("formspec",
|
meta:set_string("formspec",
|
||||||
"invsize[8,9;]"..
|
"size[8,9]"..
|
||||||
"image[2,2;1,1;default_furnace_fire_bg.png^[lowpart:"..
|
"image[2,2;1,1;default_furnace_fire_bg.png^[lowpart:"..
|
||||||
(100-percent)..":default_furnace_fire_fg.png]"..
|
(100-percent)..":default_furnace_fire_fg.png]"..
|
||||||
"list[current_name;fuel;2,3;1,1;]"..
|
"list[current_name;fuel;2,3;1,1;]"..
|
||||||
|
BIN
mods/default/textures/default_torch_animated.png
Normal file
After Width: | Height: | Size: 1.4 KiB |
BIN
mods/default/textures/default_torch_on_ceiling_animated.png
Normal file
After Width: | Height: | Size: 1.3 KiB |
Before Width: | Height: | Size: 232 B After Width: | Height: | Size: 282 B |
BIN
mods/default/textures/default_torch_on_floor_animated.png
Normal file
After Width: | Height: | Size: 1.3 KiB |
@ -15,7 +15,7 @@ minetest.register_alias('door_wood', 'doors:door_wood')
|
|||||||
minetest.register_node( 'doors:door_wood', {
|
minetest.register_node( 'doors:door_wood', {
|
||||||
description = 'Wooden Door',
|
description = 'Wooden Door',
|
||||||
drawtype = 'signlike',
|
drawtype = 'signlike',
|
||||||
tile_images = { 'door_wood.png' },
|
tiles = { 'door_wood.png' },
|
||||||
inventory_image = 'door_wood.png',
|
inventory_image = 'door_wood.png',
|
||||||
wield_image = 'door_wood.png',
|
wield_image = 'door_wood.png',
|
||||||
paramtype2 = 'wallmounted',
|
paramtype2 = 'wallmounted',
|
||||||
@ -41,7 +41,7 @@ minetest.register_craft({
|
|||||||
minetest.register_node( 'doors:door_wood_a_c', {
|
minetest.register_node( 'doors:door_wood_a_c', {
|
||||||
Description = 'Top Closed Door',
|
Description = 'Top Closed Door',
|
||||||
drawtype = 'signlike',
|
drawtype = 'signlike',
|
||||||
tile_images = { 'door_wood_a.png' },
|
tiles = { 'door_wood_a.png' },
|
||||||
inventory_image = 'door_wood_a.png',
|
inventory_image = 'door_wood_a.png',
|
||||||
paramtype = 'light',
|
paramtype = 'light',
|
||||||
paramtype2 = 'wallmounted',
|
paramtype2 = 'wallmounted',
|
||||||
@ -55,7 +55,7 @@ minetest.register_node( 'doors:door_wood_a_c', {
|
|||||||
minetest.register_node( 'doors:door_wood_b_c', {
|
minetest.register_node( 'doors:door_wood_b_c', {
|
||||||
Description = 'Bottom Closed Door',
|
Description = 'Bottom Closed Door',
|
||||||
drawtype = 'signlike',
|
drawtype = 'signlike',
|
||||||
tile_images = { 'door_wood_b.png' },
|
tiles = { 'door_wood_b.png' },
|
||||||
inventory_image = 'door_wood_b.png',
|
inventory_image = 'door_wood_b.png',
|
||||||
paramtype = 'light',
|
paramtype = 'light',
|
||||||
paramtype2 = 'wallmounted',
|
paramtype2 = 'wallmounted',
|
||||||
@ -69,7 +69,7 @@ minetest.register_node( 'doors:door_wood_b_c', {
|
|||||||
minetest.register_node( 'doors:door_wood_a_o', {
|
minetest.register_node( 'doors:door_wood_a_o', {
|
||||||
Description = 'Top Open Door',
|
Description = 'Top Open Door',
|
||||||
drawtype = 'signlike',
|
drawtype = 'signlike',
|
||||||
tile_images = { 'door_wood_a_r.png' },
|
tiles = { 'door_wood_a_r.png' },
|
||||||
inventory_image = 'door_wood_a_r.png',
|
inventory_image = 'door_wood_a_r.png',
|
||||||
paramtype = 'light',
|
paramtype = 'light',
|
||||||
paramtype2 = 'wallmounted',
|
paramtype2 = 'wallmounted',
|
||||||
@ -83,7 +83,7 @@ minetest.register_node( 'doors:door_wood_a_o', {
|
|||||||
minetest.register_node( 'doors:door_wood_b_o', {
|
minetest.register_node( 'doors:door_wood_b_o', {
|
||||||
Description = 'Bottom Open Door',
|
Description = 'Bottom Open Door',
|
||||||
drawtype = 'signlike',
|
drawtype = 'signlike',
|
||||||
tile_images = { 'door_wood_b_r.png' },
|
tiles = { 'door_wood_b_r.png' },
|
||||||
inventory_image = 'door_wood_b_r.png',
|
inventory_image = 'door_wood_b_r.png',
|
||||||
paramtype = 'light',
|
paramtype = 'light',
|
||||||
paramtype2 = 'wallmounted',
|
paramtype2 = 'wallmounted',
|
||||||
|
@ -3,7 +3,7 @@
|
|||||||
minetest.register_node("fire:basic_flame", {
|
minetest.register_node("fire:basic_flame", {
|
||||||
description = "Fire",
|
description = "Fire",
|
||||||
drawtype = "glasslike",
|
drawtype = "glasslike",
|
||||||
tile_images = {"fire_basic_flame.png"},
|
tiles = {"fire_basic_flame.png"},
|
||||||
light_source = 14,
|
light_source = 14,
|
||||||
groups = {igniter=2,dig_immediate=3},
|
groups = {igniter=2,dig_immediate=3},
|
||||||
drop = '',
|
drop = '',
|
||||||
|
45
mods/vessels/README.txt
Normal file
@ -0,0 +1,45 @@
|
|||||||
|
Minetest 0.4 mod: vessels
|
||||||
|
==========================
|
||||||
|
|
||||||
|
Crafts
|
||||||
|
-------
|
||||||
|
Glass bottle (yields 10)
|
||||||
|
|
||||||
|
G - G
|
||||||
|
G - G
|
||||||
|
- G -
|
||||||
|
|
||||||
|
Drinking Glass (yields 14)
|
||||||
|
|
||||||
|
G - G
|
||||||
|
G - G
|
||||||
|
G G G
|
||||||
|
|
||||||
|
Heavy Steel Bottle (yields 5)
|
||||||
|
|
||||||
|
S - S
|
||||||
|
S - S
|
||||||
|
- S -
|
||||||
|
|
||||||
|
License of source code:
|
||||||
|
-----------------------
|
||||||
|
Copyright (C) 2012 Vanessa Ezekowitz
|
||||||
|
Version 2012-09-02
|
||||||
|
Modifications by Perttu Ahola <celeron55@gmail.com>
|
||||||
|
|
||||||
|
This program is free software; you can redistribute it and/or modify
|
||||||
|
it under the terms of the GNU Lesser General Public License as published by
|
||||||
|
the Free Software Foundation; either version 2.1 of the License, or
|
||||||
|
(at your option) any later version.
|
||||||
|
|
||||||
|
http://www.gnu.org/licenses/lgpl-2.1.html
|
||||||
|
|
||||||
|
License of media (textures and sounds)
|
||||||
|
--------------------------------------
|
||||||
|
WTFPL
|
||||||
|
|
||||||
|
Authors of media files
|
||||||
|
-----------------------
|
||||||
|
Unless specifically noted,
|
||||||
|
Copyright (C) 2012 Vanessa Ezekowitz
|
||||||
|
|
1
mods/vessels/depends.txt
Normal file
@ -0,0 +1 @@
|
|||||||
|
default
|
86
mods/vessels/init.lua
Normal file
@ -0,0 +1,86 @@
|
|||||||
|
-- Minetest 0.4 mod: vessels
|
||||||
|
-- See README.txt for licensing and other information.
|
||||||
|
|
||||||
|
minetest.register_craftitem("vessels:glass_bottle", {
|
||||||
|
description = "Glass Bottle (empty)",
|
||||||
|
inventory_image = "vessels_glass_bottle.png",
|
||||||
|
groups = {vessel=1},
|
||||||
|
})
|
||||||
|
|
||||||
|
minetest.register_craft( {
|
||||||
|
output = "vessels:glass_bottle 10",
|
||||||
|
recipe = {
|
||||||
|
{ "default:glass", "", "default:glass" },
|
||||||
|
{ "default:glass", "", "default:glass" },
|
||||||
|
{ "", "default:glass", "" }
|
||||||
|
}
|
||||||
|
})
|
||||||
|
|
||||||
|
minetest.register_craftitem("vessels:drinking_glass", {
|
||||||
|
description = "Drinking Glass (empty)",
|
||||||
|
inventory_image = "vessels_drinking_glass.png",
|
||||||
|
groups = {vessel=1},
|
||||||
|
})
|
||||||
|
|
||||||
|
minetest.register_craft( {
|
||||||
|
output = "vessels:drinking_glass 14",
|
||||||
|
recipe = {
|
||||||
|
{ "default:glass", "", "default:glass" },
|
||||||
|
{ "default:glass", "", "default:glass" },
|
||||||
|
{ "default:glass", "default:glass", "default:glass" }
|
||||||
|
}
|
||||||
|
})
|
||||||
|
|
||||||
|
minetest.register_craftitem("vessels:steel_bottle", {
|
||||||
|
description = "Heavy Steel Bottle (empty)",
|
||||||
|
inventory_image = "vessels_steel_bottle.png",
|
||||||
|
groups = {vessel=1},
|
||||||
|
})
|
||||||
|
|
||||||
|
minetest.register_craft( {
|
||||||
|
output = "vessels:steel_bottle 5",
|
||||||
|
recipe = {
|
||||||
|
{ "default:steel_ingot", "", "default:steel_ingot" },
|
||||||
|
{ "default:steel_ingot", "", "default:steel_ingot" },
|
||||||
|
{ "", "default:steel_ingot", "" }
|
||||||
|
}
|
||||||
|
})
|
||||||
|
|
||||||
|
|
||||||
|
-- Make sure we can recycle them
|
||||||
|
|
||||||
|
minetest.register_craftitem("vessels:glass_fragments", {
|
||||||
|
description = "Pile of Glass Fragments",
|
||||||
|
inventory_image = "vessels_glass_fragments.png",
|
||||||
|
})
|
||||||
|
|
||||||
|
minetest.register_craft( {
|
||||||
|
type = "shapeless",
|
||||||
|
output = "vessels:glass_fragments",
|
||||||
|
recipe = {
|
||||||
|
"vessels:glass_bottle",
|
||||||
|
"vessels:glass_bottle",
|
||||||
|
},
|
||||||
|
})
|
||||||
|
|
||||||
|
minetest.register_craft( {
|
||||||
|
type = "shapeless",
|
||||||
|
output = "vessels:glass_fragments",
|
||||||
|
recipe = {
|
||||||
|
"vessels:drinking_glass",
|
||||||
|
"vessels:drinking_glass",
|
||||||
|
},
|
||||||
|
})
|
||||||
|
|
||||||
|
minetest.register_craft({
|
||||||
|
type = "cooking",
|
||||||
|
output = "default:glass",
|
||||||
|
recipe = "vessels:glass_fragments",
|
||||||
|
})
|
||||||
|
|
||||||
|
minetest.register_craft( {
|
||||||
|
type = "cooking",
|
||||||
|
output = "default:steel_ingot",
|
||||||
|
recipe = "vessels:steel_bottle",
|
||||||
|
})
|
||||||
|
|
BIN
mods/vessels/textures/alternates/vessels_drinking_glass.png
Normal file
After Width: | Height: | Size: 253 B |
BIN
mods/vessels/textures/alternates/vessels_glass_bottle.png
Normal file
After Width: | Height: | Size: 242 B |
BIN
mods/vessels/textures/alternates/vessels_steel_bottle.png
Normal file
After Width: | Height: | Size: 345 B |
BIN
mods/vessels/textures/vessels_drinking_glass.png
Normal file
After Width: | Height: | Size: 338 B |
BIN
mods/vessels/textures/vessels_glass_bottle.png
Normal file
After Width: | Height: | Size: 405 B |
BIN
mods/vessels/textures/vessels_glass_fragments.png
Normal file
After Width: | Height: | Size: 425 B |
BIN
mods/vessels/textures/vessels_steel_bottle.png
Normal file
After Width: | Height: | Size: 342 B |
@ -33,7 +33,7 @@ for _, row in ipairs(wool.dyes) do
|
|||||||
-- Node Definition
|
-- Node Definition
|
||||||
minetest.register_node("wool:"..name, {
|
minetest.register_node("wool:"..name, {
|
||||||
description = desc.." Wool",
|
description = desc.." Wool",
|
||||||
tile_images = {"wool_"..name..".png"},
|
tiles = {"wool_"..name..".png"},
|
||||||
groups = {snappy=2,choppy=2,oddly_breakable_by_hand=3,flammable=3},
|
groups = {snappy=2,choppy=2,oddly_breakable_by_hand=3,flammable=3},
|
||||||
})
|
})
|
||||||
if craft_color_group then
|
if craft_color_group then
|
||||||
|