removed some mods
This commit is contained in:
parent
4868c112ea
commit
6d881bdedc
@ -1,16 +0,0 @@
|
||||
License for Code
|
||||
----------------
|
||||
|
||||
Copyright (C) 2016 cd2 (cdqwertz) <cdqwertz@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 for Media
|
||||
-----------------
|
||||
|
||||
CC-BY-SA 3.0 UNPORTED. Created by cd2 (cdqwertz)
|
@ -1,22 +0,0 @@
|
||||
building = {}
|
||||
function building.register_schematic(name, f)
|
||||
minetest.register_craftitem("building:".. name, {
|
||||
description = "Schematic : " .. name,
|
||||
inventory_image = "building_stick.png",
|
||||
on_place = function(itemstack, placer, pointed_thing)
|
||||
if f and pointed_thing.above then
|
||||
minetest.place_schematic(pointed_thing.above, minetest.get_modpath("building").."/schematics/"..name..".mts", "0", {}, true)
|
||||
elseif pointed_thing.under then
|
||||
minetest.place_schematic(pointed_thing.under, minetest.get_modpath("building").."/schematics/"..name..".mts", "0", {}, true)
|
||||
end
|
||||
return itemstack
|
||||
end,
|
||||
})
|
||||
end
|
||||
|
||||
building.register_schematic("house", true)
|
||||
building.register_schematic("house_with_garden", true)
|
||||
building.register_schematic("farm", true)
|
||||
building.register_schematic("latern", true)
|
||||
building.register_schematic("tower", false)
|
||||
building.register_schematic("road", false)
|
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Before Width: | Height: | Size: 267 B |
@ -1,16 +0,0 @@
|
||||
License for Code
|
||||
----------------
|
||||
|
||||
Copyright (C) 2015 cd2 (cdqwertz) <cdqwertz@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 for Media
|
||||
-----------------
|
||||
|
||||
CC-BY-SA 3.0 UNPORTED. Created by cd2 (cdqwertz)
|
@ -1,3 +0,0 @@
|
||||
default
|
||||
legendary_items
|
||||
mobs
|
@ -1,26 +0,0 @@
|
||||
minetest.register_node("decoration:stalagmite", {
|
||||
description = "Stalagmite",
|
||||
tiles = {"decoration_stalagmite.png"},
|
||||
drawtype = "plantlike",
|
||||
paramtype = "light",
|
||||
inventory_image = "decoration_stalagmite.png",
|
||||
buildable_to = true,
|
||||
walkable = false,
|
||||
groups = {crumbly = 3},
|
||||
drop = "default:stone_item",
|
||||
})
|
||||
|
||||
minetest.register_node("decoration:pick", {
|
||||
description = "Decorative Pick",
|
||||
tiles = {"decoration_pick.png"},
|
||||
drawtype = "signlike",
|
||||
paramtype = "light",
|
||||
paramtype2 = "wallmounted",
|
||||
selection_box = {
|
||||
type = "wallmounted",
|
||||
},
|
||||
inventory_image = "decoration_pick.png",
|
||||
wield_image = "decoration_pick.png",
|
||||
walkable = false,
|
||||
groups = {crumbly = 3},
|
||||
})
|
Binary file not shown.
Before Width: | Height: | Size: 736 B |
Binary file not shown.
Before Width: | Height: | Size: 279 B |
@ -1,16 +0,0 @@
|
||||
License for Code
|
||||
----------------
|
||||
|
||||
Copyright (C) 2016 cd2 (cdqwertz) <cdqwertz@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 for Media
|
||||
-----------------
|
||||
|
||||
CC-BY-SA 3.0 UNPORTED. Created by cd2 (cdqwertz)
|
@ -1 +0,0 @@
|
||||
default
|
@ -1,59 +0,0 @@
|
||||
filter = {}
|
||||
filter.materials = {}
|
||||
|
||||
local filter_form = "size[8,6]"
|
||||
local filter_form = filter_form..default.gui_colors
|
||||
local filter_form = filter_form..default.gui_bg
|
||||
local filter_form = filter_form.."list[current_name;main;3.5,0.3;1,1;]"
|
||||
local filter_form = filter_form..default.itemslot_bg(3.5,0.3,1,1)
|
||||
local filter_form = filter_form.."list[current_player;main;0,1.85;8,1;]"
|
||||
local filter_form = filter_form..default.itemslot_bg(0,1.85,8,1)
|
||||
local filter_form = filter_form.."list[current_player;main;0,3.08;8,3;8]"
|
||||
local filter_form = filter_form..default.itemslot_bg(0,3.08,8,3)
|
||||
|
||||
function filter.register_material(name, drops)
|
||||
filter.materials[name] = drops
|
||||
end
|
||||
|
||||
filter.register_material("default:sand", {"default:stone_item", "default:stick", "default:sandstone"})
|
||||
filter.register_material("default:dirt", {"default:stone_item", "default:stick", "default:twig", "default:flint"})
|
||||
filter.register_material("default:gravel", {"default:diamond", "default:ruby", "default:twig", "default:stone_item", "default:flint", "default:flint", "default:flint"})
|
||||
|
||||
minetest.register_node("filter:filter", {
|
||||
description = "Filter",
|
||||
tiles = {"filter_filter_top.png", "filter_filter.png"},
|
||||
groups = {crumbly=3},
|
||||
on_punch = function(pos, node, player, pointed_thing)
|
||||
local meta = minetest.get_meta(pos)
|
||||
local inv = meta:get_inventory()
|
||||
local item = inv:get_stack("main", 1)
|
||||
print("[filter] item : " .. item:to_string())
|
||||
if item:get_count() == 1 then
|
||||
if filter.materials[item:get_name()] then
|
||||
local mat = filter.materials[item:get_name()]
|
||||
inv:set_stack("main", 1, {name = mat[math.random(1, #mat)]})
|
||||
else
|
||||
meta:set_string("infotext", "[filter] This wont work...")
|
||||
end
|
||||
else
|
||||
meta:set_string("infotext", "[filter] Put only one item in the filter!")
|
||||
end
|
||||
end,
|
||||
|
||||
on_construct = function(pos)
|
||||
local meta = minetest.get_meta(pos)
|
||||
meta:set_string("formspec", filter_form)
|
||||
meta:set_string("infotext", "Filter")
|
||||
local inv = meta:get_inventory()
|
||||
inv:set_size("main", 1)
|
||||
end,
|
||||
})
|
||||
|
||||
minetest.register_craft({
|
||||
output = "filter:filter",
|
||||
recipe = {
|
||||
{"default:string_strong", "default:string_strong", "default:string_strong"},
|
||||
{"default:string_strong", "default:string_strong", "default:string_strong"},
|
||||
{"furnace:iron_rod", "furnace:iron_plate", "furnace:iron_rod"},
|
||||
}
|
||||
})
|
Binary file not shown.
Before Width: | Height: | Size: 215 B |
Binary file not shown.
Before Width: | Height: | Size: 292 B |
Loading…
x
Reference in New Issue
Block a user