New blocks and non-MC things removed
|
@ -23,6 +23,16 @@ end
|
||||||
_G.table.copy = table.copy
|
_G.table.copy = table.copy
|
||||||
_G.table.merge = table.merge
|
_G.table.merge = table.merge
|
||||||
|
|
||||||
|
function voxelibre.load_mod_files()
|
||||||
|
local mod_path = minetest.get_modpath(minetest.get_current_modname())
|
||||||
|
|
||||||
|
for _, file in pairs(minetest.get_dir_list(mod_path, false)) do
|
||||||
|
if file:sub(-4) == ".lua" and file ~= "init.lua" then
|
||||||
|
dofile(mod_path.."/"..file)
|
||||||
|
end
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
function voxelibre.description_from_identifier(identifier)
|
function voxelibre.description_from_identifier(identifier)
|
||||||
local description = ""
|
local description = ""
|
||||||
local words = {}
|
local words = {}
|
||||||
|
@ -74,18 +84,6 @@ local function set_tiles(mod_name, identifier, definitions)
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
function voxelibre.load_mod_files(mod_path)
|
|
||||||
if not mod_path then
|
|
||||||
return
|
|
||||||
end
|
|
||||||
|
|
||||||
for _, file in pairs(minetest.get_dir_list(mod_path, false)) do
|
|
||||||
if file:sub(-4) == ".lua" and file ~= "init.lua" then
|
|
||||||
dofile(mod_path.."/"..file)
|
|
||||||
end
|
|
||||||
end
|
|
||||||
end
|
|
||||||
|
|
||||||
function voxelibre.register_block(identifier, definitions)
|
function voxelibre.register_block(identifier, definitions)
|
||||||
local mod_name = minetest.get_current_modname()
|
local mod_name = minetest.get_current_modname()
|
||||||
|
|
||||||
|
|
|
@ -1,5 +0,0 @@
|
||||||
local modname = minetest.get_current_modname()
|
|
||||||
local modpath = minetest.get_modpath(modname)
|
|
||||||
|
|
||||||
dofile(modpath.."/nodes.lua")
|
|
||||||
dofile(modpath.."/recipes.lua")
|
|
|
@ -1,3 +0,0 @@
|
||||||
name = mcl_compressed_blocks
|
|
||||||
depends = mcl_core
|
|
||||||
description = adds compressed blocks to voxelibre
|
|
|
@ -1,121 +0,0 @@
|
||||||
--Compressed Cobblestone
|
|
||||||
minetest.register_node("mcl_compressed_blocks:compressed_cobblestone", {
|
|
||||||
description = "Compressed Cobblestone",
|
|
||||||
_doc_items_longdesc = ("Compressed Cobblestone is a decorative block made from 9 Cobblestone. It is useful for saving space in your inventories."),
|
|
||||||
_doc_items_hidden = false,
|
|
||||||
tiles = {"mcl_compressed_blocks_compressed_cobblestone.png"},
|
|
||||||
is_ground_content = true,
|
|
||||||
stack_max = 64,
|
|
||||||
groups = {pickaxey=1, stone=1, building_block=1},
|
|
||||||
sounds = mcl_sounds.node_sound_stone_defaults(),
|
|
||||||
_mcl_blast_resistance = 11,
|
|
||||||
_mcl_hardness = 3,
|
|
||||||
})
|
|
||||||
|
|
||||||
--Double Compressed Cobble
|
|
||||||
minetest.register_node("mcl_compressed_blocks:double_compressed_cobblestone", {
|
|
||||||
description = "Double Compressed Cobblestone",
|
|
||||||
_doc_items_longdesc = ("Double Compressed Cobblestone is a decorative block made from 9 Compressed Cobblestone. It is useful for saving space in your inventories."),
|
|
||||||
_doc_items_hidden = false,
|
|
||||||
tiles = {"mcl_compressed_blocks_double_compressed_cobblestone.png"},
|
|
||||||
is_ground_content = true,
|
|
||||||
stack_max = 64,
|
|
||||||
groups = {pickaxey=1, stone=1, building_block=1},
|
|
||||||
sounds = mcl_sounds.node_sound_stone_defaults(),
|
|
||||||
_mcl_blast_resistance = 19,
|
|
||||||
_mcl_hardness = 4,
|
|
||||||
})
|
|
||||||
|
|
||||||
--Triple Compressed Cobble
|
|
||||||
minetest.register_node("mcl_compressed_blocks:triple_compressed_cobblestone", {
|
|
||||||
description = "Triple Compressed Cobblestone",
|
|
||||||
_doc_items_longdesc = ("Triple Compressed Cobblestone is a decorative block made from 9 Double Compressed Cobblestone. It is useful for saving space in your inventories."),
|
|
||||||
_doc_items_hidden = false,
|
|
||||||
tiles = {"mcl_compressed_blocks_triple_compressed_cobblestone.png"},
|
|
||||||
is_ground_content = true,
|
|
||||||
stack_max = 64,
|
|
||||||
groups = {pickaxey=1, stone=1, building_block=1},
|
|
||||||
sounds = mcl_sounds.node_sound_stone_defaults(),
|
|
||||||
_mcl_blast_resistance = 33,
|
|
||||||
_mcl_hardness = 5,
|
|
||||||
})
|
|
||||||
|
|
||||||
--Quadruple Compressed Cobble
|
|
||||||
minetest.register_node("mcl_compressed_blocks:quadruple_compressed_cobblestone", {
|
|
||||||
description = "Quadruple Compressed Cobblestone",
|
|
||||||
_doc_items_longdesc = ("Quadruple Compressed Cobblestone is a decorative block made from 9 Triple Compressed Cobblestone. It is useful for saving space in your inventories."),
|
|
||||||
_doc_items_hidden = false,
|
|
||||||
tiles = {"mcl_compressed_blocks_quadruple_compressed_cobblestone.png"},
|
|
||||||
is_ground_content = true,
|
|
||||||
stack_max = 64,
|
|
||||||
groups = {pickaxey=1, stone=1, building_block=1},
|
|
||||||
sounds = mcl_sounds.node_sound_stone_defaults(),
|
|
||||||
_mcl_blast_resistance = 58,
|
|
||||||
_mcl_hardness = 7,
|
|
||||||
})
|
|
||||||
|
|
||||||
--Quintuple Compressed Cobble
|
|
||||||
minetest.register_node("mcl_compressed_blocks:quintuple_compressed_cobblestone", {
|
|
||||||
description = "Quintuple Compressed Cobblestone",
|
|
||||||
_doc_items_longdesc = ("Quintuple Compressed Cobblestone is a decorative block made from 9 Quadruple Compressed Cobblestone. It is useful for saving space in your inventories."),
|
|
||||||
_doc_items_hidden = false,
|
|
||||||
tiles = {"mcl_compressed_blocks_quintuple_compressed_cobblestone.png"},
|
|
||||||
is_ground_content = true,
|
|
||||||
stack_max = 64,
|
|
||||||
groups = {pickaxey=1, stone=1, building_block=1},
|
|
||||||
sounds = mcl_sounds.node_sound_stone_defaults(),
|
|
||||||
_mcl_blast_resistance = 102,
|
|
||||||
_mcl_hardness = 9,
|
|
||||||
})
|
|
||||||
|
|
||||||
--Sextuple Compressed Cobble
|
|
||||||
minetest.register_node("mcl_compressed_blocks:sextuple_compressed_cobblestone", {
|
|
||||||
description = "Sextuple Compressed Cobblestone",
|
|
||||||
_doc_items_longdesc = ("Sextuple Compressed Cobblestone is a decorative block made from 9 Quintuple Compressed Cobblestone. It is useful for saving space in your inventories."),
|
|
||||||
_doc_items_hidden = false,
|
|
||||||
tiles = {"mcl_compressed_blocks_sextuple_compressed_cobblestone.png"},
|
|
||||||
is_ground_content = true,
|
|
||||||
stack_max = 64,
|
|
||||||
groups = {pickaxey=1, stone=1, building_block=1},
|
|
||||||
sounds = mcl_sounds.node_sound_stone_defaults(),
|
|
||||||
_mcl_blast_resistance = 179,
|
|
||||||
_mcl_hardness = 12,
|
|
||||||
})
|
|
||||||
|
|
||||||
--Septuple Compressed Cobble
|
|
||||||
minetest.register_node("mcl_compressed_blocks:septuple_compressed_cobblestone", {
|
|
||||||
description = "Septuple Compressed Cobblestone",
|
|
||||||
_doc_items_longdesc = ("Septuple Compressed Cobblestone is a decorative block made from 9 Sextuple Compressed Cobblestone. It is useful for saving space in your inventories."),
|
|
||||||
_doc_items_hidden = false,
|
|
||||||
tiles = {"mcl_compressed_blocks_septuple_compressed_cobblestone.png"},
|
|
||||||
is_ground_content = true,
|
|
||||||
stack_max = 64,
|
|
||||||
groups = {pickaxey=1, stone=1, building_block=1},
|
|
||||||
sounds = mcl_sounds.node_sound_stone_defaults(),
|
|
||||||
_mcl_blast_resistance = 313,
|
|
||||||
_mcl_hardness = 16,
|
|
||||||
})
|
|
||||||
|
|
||||||
--Ocutple Compressed Cobble
|
|
||||||
minetest.register_node("mcl_compressed_blocks:octuple_compressed_cobblestone", {
|
|
||||||
description = "Octuple Compressed Cobblestone",
|
|
||||||
_doc_items_longdesc = ("Octuple Compressed Cobblestone is a decorative block made from 9 Septuple Compressed Cobblestone. It is useful for saving space in your inventories."),
|
|
||||||
_doc_items_hidden = false,
|
|
||||||
tiles = {"mcl_compressed_blocks_octuple_compressed_cobblestone.png"},
|
|
||||||
is_ground_content = true,
|
|
||||||
stack_max = 64,
|
|
||||||
groups = {pickaxey=1, stone=1, building_block=1},
|
|
||||||
drop = {
|
|
||||||
|
|
||||||
max_items = 2,
|
|
||||||
items = {
|
|
||||||
{items = {"mcl_core:diamond 9"}},
|
|
||||||
{items = {"mcl_nether:netherite_scrap 18"}},
|
|
||||||
},
|
|
||||||
},
|
|
||||||
|
|
||||||
sounds = mcl_sounds.node_sound_stone_defaults(),
|
|
||||||
_mcl_blast_resistance = 548,
|
|
||||||
_mcl_hardness = 21,
|
|
||||||
_mcl_silk_touch_drop = true,
|
|
||||||
})
|
|
|
@ -1,127 +0,0 @@
|
||||||
minetest.register_craft({
|
|
||||||
output = "mcl_compressed_blocks:compressed_cobblestone",
|
|
||||||
recipe = {
|
|
||||||
{ "mcl_core:cobble", "mcl_core:cobble", "mcl_core:cobble" },
|
|
||||||
{ "mcl_core:cobble", "mcl_core:cobble", "mcl_core:cobble" },
|
|
||||||
{ "mcl_core:cobble", "mcl_core:cobble", "mcl_core:cobble" },
|
|
||||||
},
|
|
||||||
})
|
|
||||||
|
|
||||||
minetest.register_craft({
|
|
||||||
output = "mcl_core:cobble 9",
|
|
||||||
recipe = {
|
|
||||||
{ "mcl_compressed_blocks:compressed_cobblestone" },
|
|
||||||
},
|
|
||||||
})
|
|
||||||
|
|
||||||
minetest.register_craft({
|
|
||||||
output = "mcl_compressed_blocks:double_compressed_cobblestone",
|
|
||||||
recipe = {
|
|
||||||
{ "mcl_compressed_blocks:compressed_cobblestone", "mcl_compressed_blocks:compressed_cobblestone", "mcl_compressed_blocks:compressed_cobblestone" },
|
|
||||||
{ "mcl_compressed_blocks:compressed_cobblestone", "mcl_compressed_blocks:compressed_cobblestone", "mcl_compressed_blocks:compressed_cobblestone" },
|
|
||||||
{ "mcl_compressed_blocks:compressed_cobblestone", "mcl_compressed_blocks:compressed_cobblestone", "mcl_compressed_blocks:compressed_cobblestone" },
|
|
||||||
},
|
|
||||||
})
|
|
||||||
|
|
||||||
minetest.register_craft({
|
|
||||||
output = "mcl_compressed_blocks:compressed_cobblestone 9",
|
|
||||||
recipe = {
|
|
||||||
{ "mcl_compressed_blocks:double_compressed_cobblestone" },
|
|
||||||
},
|
|
||||||
})
|
|
||||||
|
|
||||||
minetest.register_craft({
|
|
||||||
output = "mcl_compressed_blocks:triple_compressed_cobblestone",
|
|
||||||
recipe = {
|
|
||||||
{ "mcl_compressed_blocks:double_compressed_cobblestone", "mcl_compressed_blocks:double_compressed_cobblestone", "mcl_compressed_blocks:double_compressed_cobblestone" },
|
|
||||||
{ "mcl_compressed_blocks:double_compressed_cobblestone", "mcl_compressed_blocks:double_compressed_cobblestone", "mcl_compressed_blocks:double_compressed_cobblestone" },
|
|
||||||
{ "mcl_compressed_blocks:double_compressed_cobblestone", "mcl_compressed_blocks:double_compressed_cobblestone", "mcl_compressed_blocks:double_compressed_cobblestone" },
|
|
||||||
},
|
|
||||||
})
|
|
||||||
|
|
||||||
minetest.register_craft({
|
|
||||||
output = "mcl_compressed_blocks:double_compressed_cobblestone 9",
|
|
||||||
recipe = {
|
|
||||||
{ "mcl_compressed_blocks:triple_compressed_cobblestone" },
|
|
||||||
},
|
|
||||||
})
|
|
||||||
|
|
||||||
minetest.register_craft({
|
|
||||||
output = "mcl_compressed_blocks:quadruple_compressed_cobblestone",
|
|
||||||
recipe = {
|
|
||||||
{ "mcl_compressed_blocks:triple_compressed_cobblestone", "mcl_compressed_blocks:triple_compressed_cobblestone", "mcl_compressed_blocks:triple_compressed_cobblestone" },
|
|
||||||
{ "mcl_compressed_blocks:triple_compressed_cobblestone", "mcl_compressed_blocks:triple_compressed_cobblestone", "mcl_compressed_blocks:triple_compressed_cobblestone" },
|
|
||||||
{ "mcl_compressed_blocks:triple_compressed_cobblestone", "mcl_compressed_blocks:triple_compressed_cobblestone", "mcl_compressed_blocks:triple_compressed_cobblestone" },
|
|
||||||
},
|
|
||||||
})
|
|
||||||
|
|
||||||
minetest.register_craft({
|
|
||||||
output = "mcl_compressed_blocks:triple_compressed_cobblestone 9",
|
|
||||||
recipe = {
|
|
||||||
{ "mcl_compressed_blocks:quadruple_compressed_cobblestone" },
|
|
||||||
},
|
|
||||||
})
|
|
||||||
|
|
||||||
minetest.register_craft({
|
|
||||||
output = "mcl_compressed_blocks:quintuple_compressed_cobblestone",
|
|
||||||
recipe = {
|
|
||||||
{ "mcl_compressed_blocks:quadruple_compressed_cobblestone", "mcl_compressed_blocks:quadruple_compressed_cobblestone", "mcl_compressed_blocks:quadruple_compressed_cobblestone" },
|
|
||||||
{ "mcl_compressed_blocks:quadruple_compressed_cobblestone", "mcl_compressed_blocks:quadruple_compressed_cobblestone", "mcl_compressed_blocks:quadruple_compressed_cobblestone" },
|
|
||||||
{ "mcl_compressed_blocks:quadruple_compressed_cobblestone", "mcl_compressed_blocks:quadruple_compressed_cobblestone", "mcl_compressed_blocks:quadruple_compressed_cobblestone" },
|
|
||||||
},
|
|
||||||
})
|
|
||||||
|
|
||||||
minetest.register_craft({
|
|
||||||
output = "mcl_compressed_blocks:quadruple_compressed_cobblestone 9",
|
|
||||||
recipe = {
|
|
||||||
{ "mcl_compressed_blocks:quintuple_compressed_cobblestone" },
|
|
||||||
},
|
|
||||||
})
|
|
||||||
|
|
||||||
minetest.register_craft({
|
|
||||||
output = "mcl_compressed_blocks:sextuple_compressed_cobblestone",
|
|
||||||
recipe = {
|
|
||||||
{ "mcl_compressed_blocks:quintuple_compressed_cobblestone", "mcl_compressed_blocks:quintuple_compressed_cobblestone", "mcl_compressed_blocks:quintuple_compressed_cobblestone" },
|
|
||||||
{ "mcl_compressed_blocks:quintuple_compressed_cobblestone", "mcl_compressed_blocks:quintuple_compressed_cobblestone", "mcl_compressed_blocks:quintuple_compressed_cobblestone" },
|
|
||||||
{ "mcl_compressed_blocks:quintuple_compressed_cobblestone", "mcl_compressed_blocks:quintuple_compressed_cobblestone", "mcl_compressed_blocks:quintuple_compressed_cobblestone" },
|
|
||||||
},
|
|
||||||
})
|
|
||||||
|
|
||||||
minetest.register_craft({
|
|
||||||
output = "mcl_compressed_blocks:quintuple_compressed_cobblestone 9",
|
|
||||||
recipe = {
|
|
||||||
{ "mcl_compressed_blocks:sextuple_compressed_cobblestone" },
|
|
||||||
},
|
|
||||||
})
|
|
||||||
|
|
||||||
minetest.register_craft({
|
|
||||||
output = "mcl_compressed_blocks:septuple_compressed_cobblestone",
|
|
||||||
recipe = {
|
|
||||||
{ "mcl_compressed_blocks:sextuple_compressed_cobblestone", "mcl_compressed_blocks:sextuple_compressed_cobblestone", "mcl_compressed_blocks:sextuple_compressed_cobblestone" },
|
|
||||||
{ "mcl_compressed_blocks:sextuple_compressed_cobblestone", "mcl_compressed_blocks:sextuple_compressed_cobblestone", "mcl_compressed_blocks:sextuple_compressed_cobblestone" },
|
|
||||||
{ "mcl_compressed_blocks:sextuple_compressed_cobblestone", "mcl_compressed_blocks:sextuple_compressed_cobblestone", "mcl_compressed_blocks:sextuple_compressed_cobblestone" },
|
|
||||||
},
|
|
||||||
})
|
|
||||||
|
|
||||||
minetest.register_craft({
|
|
||||||
output = "mcl_compressed_blocks:sextuple_compressed_cobblestone 9",
|
|
||||||
recipe = {
|
|
||||||
{ "mcl_compressed_blocks:septuple_compressed_cobblestone" },
|
|
||||||
},
|
|
||||||
})
|
|
||||||
|
|
||||||
minetest.register_craft({
|
|
||||||
output = "mcl_compressed_blocks:octuple_compressed_cobblestone",
|
|
||||||
recipe = {
|
|
||||||
{ "mcl_compressed_blocks:septuple_compressed_cobblestone", "mcl_compressed_blocks:septuple_compressed_cobblestone", "mcl_compressed_blocks:septuple_compressed_cobblestone" },
|
|
||||||
{ "mcl_compressed_blocks:septuple_compressed_cobblestone", "mcl_compressed_blocks:septuple_compressed_cobblestone", "mcl_compressed_blocks:septuple_compressed_cobblestone" },
|
|
||||||
{ "mcl_compressed_blocks:septuple_compressed_cobblestone", "mcl_compressed_blocks:septuple_compressed_cobblestone", "mcl_compressed_blocks:septuple_compressed_cobblestone" },
|
|
||||||
},
|
|
||||||
})
|
|
||||||
|
|
||||||
minetest.register_craft({
|
|
||||||
output = "mcl_compressed_blocks:septuple_compressed_cobblestone 9",
|
|
||||||
recipe = {
|
|
||||||
{ "mcl_compressed_blocks:octuple_compressed_cobblestone" },
|
|
||||||
},
|
|
||||||
})
|
|
Before Width: | Height: | Size: 217 B |
Before Width: | Height: | Size: 206 B |
Before Width: | Height: | Size: 173 B |
Before Width: | Height: | Size: 250 B |
Before Width: | Height: | Size: 296 B |
Before Width: | Height: | Size: 244 B |
Before Width: | Height: | Size: 296 B |
Before Width: | Height: | Size: 277 B |
|
@ -1,150 +0,0 @@
|
||||||
---
|
|
||||||
--- Generated by EmmyLua(https://github.com/EmmyLua)
|
|
||||||
--- Created by michieal.
|
|
||||||
--- DateTime: 11/19/22 7:13 AM
|
|
||||||
---
|
|
||||||
|
|
||||||
---
|
|
||||||
--- Generated by EmmyLua(https://github.com/EmmyLua)
|
|
||||||
--- Created by michieal.
|
|
||||||
--- DateTime: 10/23/22 4:50 AM
|
|
||||||
---
|
|
||||||
-- LOCALIZATION
|
|
||||||
|
|
||||||
local S = minetest.get_translator("mcl_hamburger")
|
|
||||||
|
|
||||||
local modname = minetest.get_current_modname()
|
|
||||||
local modpath = minetest.get_modpath(modname)
|
|
||||||
|
|
||||||
local table = table
|
|
||||||
local DEBUG = false
|
|
||||||
|
|
||||||
local enable_burger = minetest.settings:get_bool("mcl_enable_hamburger",true)
|
|
||||||
local use_alt = minetest.settings:get_bool("mcl_hamburger_alt_texture",false)
|
|
||||||
|
|
||||||
local HAMBURGER_NAME = "mcl_hamburger:hamburger"
|
|
||||||
|
|
||||||
mcl_hamburger = {}
|
|
||||||
|
|
||||||
if DEBUG then
|
|
||||||
minetest.log("MCL_Hamburger::START.")
|
|
||||||
end
|
|
||||||
|
|
||||||
-- call to register your hamburger.
|
|
||||||
function mcl_hamburger.register_burger_craft(cooked_meat)
|
|
||||||
minetest.register_craft({
|
|
||||||
type = "fuel",
|
|
||||||
recipe = HAMBURGER_NAME,
|
|
||||||
burntime = 2,
|
|
||||||
})
|
|
||||||
|
|
||||||
minetest.register_craft({
|
|
||||||
output = HAMBURGER_NAME,
|
|
||||||
recipe = {
|
|
||||||
{ "mcl_farming:bread"},
|
|
||||||
{ cooked_meat }, -- "mcl_mobitems:cooked_beef" for a reg hamburger. Grind up clowns for a Big Mac.
|
|
||||||
{ "mcl_farming:bread" },
|
|
||||||
},
|
|
||||||
})
|
|
||||||
minetest.register_craft({
|
|
||||||
output = HAMBURGER_NAME,
|
|
||||||
recipe = {
|
|
||||||
-- "mcl_mobitems:cooked_beef" for a reg hamburger. Grind up clowns for a Big Mac.
|
|
||||||
{ "mcl_farming:bread", cooked_meat, "mcl_farming:bread"},
|
|
||||||
},
|
|
||||||
})
|
|
||||||
|
|
||||||
end
|
|
||||||
|
|
||||||
local hamburger_def = {
|
|
||||||
description = S("A Hamburger"),
|
|
||||||
_doc_items_longdesc = S("A tasty hamburger that is sure to lure villagers around like a lead. Can be eaten."),
|
|
||||||
_doc_items_usagehelp = S("Wield this item to pull villagers to you."),
|
|
||||||
_tt_help = S("A tasty hamburger that is sure to lure villagers. 'I'll gladly pay you Tuesday, for a hamburger today.' - Wimpy."),
|
|
||||||
inventory_image = "mcl_hamburger.png",
|
|
||||||
wield_image = "mcl_hamburger.png",
|
|
||||||
on_place = minetest.item_eat(8),
|
|
||||||
on_secondary_use = minetest.item_eat(8),
|
|
||||||
groups = { food = 2, eatable = 8 },
|
|
||||||
_mcl_saturation = 13.8,
|
|
||||||
}
|
|
||||||
|
|
||||||
if not enable_burger then
|
|
||||||
hamburger_def.groups.not_in_creative_inventory = 1
|
|
||||||
end
|
|
||||||
|
|
||||||
if use_alt == false then
|
|
||||||
minetest.register_craftitem(HAMBURGER_NAME, hamburger_def)
|
|
||||||
else
|
|
||||||
local hamburger_alt = table.copy(hamburger_def)
|
|
||||||
hamburger_alt.inventory_image = "mcl_hamburger_alt.png"
|
|
||||||
hamburger_alt.wield_image = "mcl_hamburger_alt.png"
|
|
||||||
minetest.register_craftitem(HAMBURGER_NAME, hamburger_alt)
|
|
||||||
end
|
|
||||||
|
|
||||||
local function register_achievements()
|
|
||||||
|
|
||||||
awards.register_achievement(HAMBURGER_NAME, {
|
|
||||||
title = S("Burger Time!"),
|
|
||||||
description = S("Craft a Hamburger."),
|
|
||||||
icon = "mcl_hamburger_alt.png",
|
|
||||||
trigger = {
|
|
||||||
type = "craft",
|
|
||||||
item = HAMBURGER_NAME,
|
|
||||||
target = 1
|
|
||||||
},
|
|
||||||
type = "Advancement",
|
|
||||||
group = "Overworld",
|
|
||||||
})
|
|
||||||
|
|
||||||
end
|
|
||||||
|
|
||||||
local function register_doc_entry()
|
|
||||||
|
|
||||||
-- register Doc entry
|
|
||||||
if minetest.get_modpath("doc") then
|
|
||||||
doc.add_entry_alias("craftitems", HAMBURGER_NAME, "craftitems", HAMBURGER_NAME)
|
|
||||||
end
|
|
||||||
|
|
||||||
end
|
|
||||||
|
|
||||||
if enable_burger then
|
|
||||||
-- make the villagers follow the item
|
|
||||||
local villager = minetest.registered_entities["mobs_mc:villager"]
|
|
||||||
|
|
||||||
table.insert(villager.follow, HAMBURGER_NAME)
|
|
||||||
|
|
||||||
local original_rightclick = villager.on_rightclick
|
|
||||||
|
|
||||||
local new_on_rightclick = function(self, clicker)
|
|
||||||
--minetest.log("In wrapper function")
|
|
||||||
|
|
||||||
local item = clicker:get_wielded_item()
|
|
||||||
if item:get_name() == HAMBURGER_NAME then
|
|
||||||
if self.nofollow == true then
|
|
||||||
--minetest.log("Turn off nofollow")
|
|
||||||
self.nofollow = false
|
|
||||||
elseif self.nofollow == false then
|
|
||||||
--minetest.log("Turn on nofollow")
|
|
||||||
self.nofollow = true
|
|
||||||
end
|
|
||||||
else
|
|
||||||
--minetest.log("Not holding burger")
|
|
||||||
if self.nofollow == false then
|
|
||||||
--minetest.log("Turn on nofollow")
|
|
||||||
self.nofollow = true
|
|
||||||
end
|
|
||||||
original_rightclick(self, clicker)
|
|
||||||
end
|
|
||||||
--minetest.log("Finishing wrapper")
|
|
||||||
end
|
|
||||||
|
|
||||||
villager.on_rightclick = new_on_rightclick
|
|
||||||
|
|
||||||
mcl_hamburger.register_burger_craft("mcl_mobitems:cooked_beef")
|
|
||||||
minetest.register_alias("hamburger", HAMBURGER_NAME)
|
|
||||||
|
|
||||||
register_achievements()
|
|
||||||
register_doc_entry()
|
|
||||||
end
|
|
||||||
|
|
|
@ -1,10 +0,0 @@
|
||||||
# textdomain: mcl_hamburger
|
|
||||||
A Hamburger=Ein Hamburger
|
|
||||||
|
|
||||||
A tasty hamburger that is sure to lure villagers around like a lead. Can be eaten.=Ein leckerer Hamburger, der die Dorfbewohner sicher wie eine Leine anlocken wird. Kann gegessen werden.
|
|
||||||
|
|
||||||
A tasty hamburger that is sure to lure villagers. 'I'll gladly pay you Tuesday, for a hamburger today.' - Wimpy.=Ein leckerer Hamburger, der die Dorfbewohner anlocken wird. "Ich bezahle dir gerne den Dienstag, für heute einen Hamburger." - Wimpy.
|
|
||||||
|
|
||||||
Burger Time!=Burgerzeit!
|
|
||||||
Craft a Hamburger.=Stelle einen Hamburger her.
|
|
||||||
Wield this item to pull villagers to you.=Benutze diesen Gegenstand, um Dorfbewohner zu dir zu ziehen.
|
|
|
@ -1,10 +0,0 @@
|
||||||
# textdomain: mcl_hamburger
|
|
||||||
A Hamburger=Una hamburguesa
|
|
||||||
|
|
||||||
A tasty hamburger that is sure to lure villagers around like a lead. Can be eaten.=Una sabrosa hamburguesa que seguramente atraerá a los aldeanos como una pista. Se puede comer.
|
|
||||||
|
|
||||||
A tasty hamburger that is sure to lure villagers. 'I'll gladly pay you Tuesday, for a hamburger today.' - Wimpy.=Una sabrosa hamburguesa que seguramente atraerá a los aldeanos. 'Con gusto te pago el martes, por una hamburguesa hoy.' - Wimpy.
|
|
||||||
|
|
||||||
Burger Time!=¡Tiempo de hamburguesas!
|
|
||||||
Craft a Hamburger.=Elabora una hamburguesa.
|
|
||||||
Wield this item to pull villagers to you.=Utiliza este objeto para atraer a los aldeanos hacia ti.
|
|
|
@ -1,10 +0,0 @@
|
||||||
# textdomain: mcl_hamburger
|
|
||||||
A Hamburger=Un hamburger
|
|
||||||
|
|
||||||
A tasty hamburger that is sure to lure villagers around like a lead. Can be eaten.=Un hamburger savoureux qui ne manquera pas d'attirer les villageois comme une piste. Peut être mangé.
|
|
||||||
|
|
||||||
A tasty hamburger that is sure to lure villagers. 'I'll gladly pay you Tuesday, for a hamburger today.' - Wimpy.=Un hamburger savoureux qui ne manquera pas d'attirer les villageois. «Je vous paierai volontiers mardi, pour un hamburger aujourd'hui.» - Wimpy.
|
|
||||||
|
|
||||||
Burger Time!=L'heure des burgers!
|
|
||||||
Craft a Hamburger.=Fabriquez un hamburger.
|
|
||||||
Wield this item to pull villagers to you.=Maniez cet objet pour attirer les villageois vers vous.
|
|
|
@ -1,10 +0,0 @@
|
||||||
# textdomain: mcl_hamburger
|
|
||||||
A Hamburger=ハンバーガー
|
|
||||||
|
|
||||||
A tasty hamburger that is sure to lure villagers around like a lead. Can be eaten.=リードでも付けたかのように村人を引き寄せる、美味しいハンバーガーです。食べられます。
|
|
||||||
|
|
||||||
A tasty hamburger that is sure to lure villagers. 'I'll gladly pay you Tuesday, for a hamburger today.' - Wimpy.=村人たちを魅了する美味しいハンバーガーです。「今日のハンバーガー代、喜んで払いますよ、火曜日に」。- へたれ(WIMPY)。
|
|
||||||
|
|
||||||
Burger Time!=バーガータイム!
|
|
||||||
Craft a Hamburger.=ハンバーガーをクラフトします。
|
|
||||||
Wield this item to pull villagers to you.=このアイテムを手に持つと、村人を引き寄せられます。
|
|
|
@ -1,10 +0,0 @@
|
||||||
# textdomain: mcl_hamburger
|
|
||||||
A Hamburger=Hamburger
|
|
||||||
|
|
||||||
A tasty hamburger that is sure to lure villagers around like a lead. Can be eaten.=Smaczny hamburger, który zwabi wieśniaków jak trop. Można jeść.
|
|
||||||
|
|
||||||
A tasty hamburger that is sure to lure villagers. 'I'll gladly pay you Tuesday, for a hamburger today.' - Wimpy.=Smaczny hamburger, który z pewnością zwabi wieśniaków. - Chętnie zapłacę we wtorek za hamburgera dzisiaj. - Mięczak (Wimpy).
|
|
||||||
|
|
||||||
Burger Time!=Czas na burgery!
|
|
||||||
Craft a Hamburger.=Stwórz hamburgera.
|
|
||||||
Wield this item to pull villagers to you.=Chwyć ten przedmiot, aby przyciągnąć wieśniaków do siebie.
|
|
|
@ -1,10 +0,0 @@
|
||||||
# textdomain: mcl_hamburger
|
|
||||||
A Hamburger=Hambúrguer
|
|
||||||
|
|
||||||
A tasty hamburger that is sure to lure villagers around like a lead. Can be eaten.=Um hambúrguer saboroso certamente atrairá os aldeões como um laço. Pode ser comido.
|
|
||||||
|
|
||||||
A tasty hamburger that is sure to lure villagers. 'I'll gladly pay you Tuesday, for a hamburger today.' - Wimpy.=Um hambúrguer saboroso certamente atrairá os aldeões.'Pagarei com prazer na terça-feira, por um hambúrguer hoje.' - Wimpy.
|
|
||||||
|
|
||||||
Burger Time!=Hora do Hambúrguer!
|
|
||||||
Craft a Hamburger.=Fabrique um hambúrguer.
|
|
||||||
Wield this item to pull villagers to you.=Segure esse item para atrair aldeões até você.
|
|
|
@ -1,10 +0,0 @@
|
||||||
# textdomain: mcl_hamburger
|
|
||||||
A Hamburger=Гамбургер
|
|
||||||
|
|
||||||
A tasty hamburger that is sure to lure villagers around like a lead. Can be eaten.=Вкусный гамбургер, который привлечет жителей деревни как наживка. Можно съесть.
|
|
||||||
|
|
||||||
A tasty hamburger that is sure to lure villagers. 'I'll gladly pay you Tuesday, for a hamburger today.' - Wimpy.=Вкусный гамбургер, который привлечет жителей деревни.
|
|
||||||
|
|
||||||
Burger Time!=Время бургеров!
|
|
||||||
Craft a Hamburger.=Приготовьте гамбургер.
|
|
||||||
Wield this item to pull villagers to you.=Возьмите этот предмет, чтобы приманивать к себе деревенских жителей
|
|
|
@ -1,16 +0,0 @@
|
||||||
# textdomain: mcl_hamburger
|
|
||||||
A Hamburger=一個漢堡
|
|
||||||
A tasty hamburger that is sure to lure villagers around like a lead. Can be eaten.=一個美味的漢堡包,肯定會像鉛一樣吸引村民。 可以吃
|
|
||||||
A tasty hamburger that is sure to lure villagers. 'I'll gladly pay you Tuesday, for a hamburger today.' - Wimpy.=一個美味的漢堡包,一定會吸引村民。 “我很樂意在星期二付錢給你,今天就買一個漢堡包。” - 懦弱。
|
|
||||||
Burger Time!=漢堡時間!
|
|
||||||
Craft a Hamburger.=製作一個漢堡包。
|
|
||||||
Wield this item to pull villagers to you.=使用此物品將村民拉到你身邊。
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -1,10 +0,0 @@
|
||||||
# textdomain: mcl_hamburger
|
|
||||||
A Hamburger=
|
|
||||||
|
|
||||||
A tasty hamburger that is sure to lure villagers around like a lead. Can be eaten.=
|
|
||||||
|
|
||||||
A tasty hamburger that is sure to lure villagers. 'I'll gladly pay you Tuesday, for a hamburger today.' - Wimpy.=
|
|
||||||
|
|
||||||
Burger Time!=
|
|
||||||
Craft a Hamburger.=
|
|
||||||
Wield this item to pull villagers to you.=
|
|
|
@ -1,5 +0,0 @@
|
||||||
name = mcl_hamburger
|
|
||||||
author = Michieal
|
|
||||||
description = A cute (and easy to use) replacement for not having leashes in MC2
|
|
||||||
depends = mcl_core, mcl_sounds, mobs_mc, mcl_mobitems, awards
|
|
||||||
optional_depends = doc
|
|
|
@ -1,43 +0,0 @@
|
||||||
Tags: Hamburger
|
|
||||||
Icon set: Fugue 16px Additional Icons
|
|
||||||
Author: Yusuke Kamiyamane
|
|
||||||
License: CC Attribution 3.0 Unported
|
|
||||||
Readme file
|
|
||||||
Commercial usage: Allowed
|
|
||||||
Posted: November 22, 2011
|
|
||||||
Icon Readme file:
|
|
||||||
|
|
||||||
Fugue Icons
|
|
||||||
|
|
||||||
(C) 2011 Yusuke Kamiyamane. All rights reserved.
|
|
||||||
These icons are licensed under a Creative Commons
|
|
||||||
Attribution 3.0 License.
|
|
||||||
<http://creativecommons.org/licenses/by/3.0/>
|
|
||||||
|
|
||||||
If you can't or don't want to provide attribution, please
|
|
||||||
purchase a royalty-free license.
|
|
||||||
<http://p.yusukekamiyamane.com/>
|
|
||||||
|
|
||||||
I'm unavailable for custom icon design work. But your
|
|
||||||
suggestions are always welcome!
|
|
||||||
<mailto:p@yusukekamiyamane.com>
|
|
||||||
|
|
||||||
------------------------------------------------------------
|
|
||||||
|
|
||||||
The images contained within have been altered to be more legible within the game and not rendered with weird
|
|
||||||
antialiasing by Michieal. All extraneous information in the images have been removed to decrease file size.
|
|
||||||
|
|
||||||
This mod is licensed under CC-BY-SA 3, with the intent of it being used by the VoxeLibre game for Minetest.
|
|
||||||
This code was written by Michieal, with additions included by Cora.
|
|
||||||
|
|
||||||
The achievement "Burger Time!" is an homage to the classic coin-op arcade game BurgerTime, by Data East (1982) and
|
|
||||||
Bally Midway.
|
|
||||||
|
|
||||||
Information about the BurgerTime Arcade Game:
|
|
||||||
|
|
||||||
From https://thepinballgameroom.com/product/burgertime-arcade-machine/ on the original game:
|
|
||||||
BurgerTime Arcade Machine, originally released as Hamburger in Japan, is a 1982 arcade game developed by Data East
|
|
||||||
initially for its DECO Cassette System. In the United States, Data East USA licensed BurgerTime Arcade Machine for
|
|
||||||
distribution by Bally Midway as a standard dedicated arcade game. Data East also released its own version of BurgerTime
|
|
||||||
in the United States through its DECO Cassette System. The Data East and Midway versions are distinguished by the
|
|
||||||
manufacturer’s name on the title screen and by the marquee and cabinet artworks, as the game itself is identical.
|
|
|
@ -1,91 +0,0 @@
|
||||||
local modname = minetest.get_current_modname()
|
|
||||||
local modpath = minetest.get_modpath(modname)
|
|
||||||
local S = minetest.get_translator(modname)
|
|
||||||
|
|
||||||
|
|
||||||
minetest.register_tool("mcl_shepherd:shepherd_staff", {
|
|
||||||
description = S("Shepherd Staff"),
|
|
||||||
_doc_items_longdesc = S(""),
|
|
||||||
_doc_items_usagehelp = S(""),
|
|
||||||
inventory_image = "mcl_tool_shepherd_staff.png",
|
|
||||||
wield_scale = 1.3*mcl_vars.tool_wield_scale,
|
|
||||||
stack_max = 1,
|
|
||||||
groups = { weapon=1, tool=1, staff=1, enchantability=-1 },
|
|
||||||
tool_capabilities = {
|
|
||||||
full_punch_interval = 1,
|
|
||||||
max_drop_level=1,
|
|
||||||
damage_groups = {fleshy=2},
|
|
||||||
punch_attack_uses = 45,
|
|
||||||
},
|
|
||||||
sound = { breaks = "default_tool_breaks" },
|
|
||||||
_mcl_toollike_wield = true,
|
|
||||||
_mcl_diggroups = {
|
|
||||||
swordy = { speed = 1, level = 1, uses = 60 },
|
|
||||||
swordy_cobweb = { speed = 1, level = 1, uses = 60 }
|
|
||||||
},
|
|
||||||
_mcl_not_consumable = true,
|
|
||||||
})
|
|
||||||
|
|
||||||
if mcl_util.is_it_christmas() then
|
|
||||||
minetest.register_globalstep(function(dtime)
|
|
||||||
local time = minetest.get_timeofday()
|
|
||||||
if time < 0.005 or time > 0.995 then
|
|
||||||
for _, player in pairs(minetest.get_connected_players()) do
|
|
||||||
local meta = player:get_meta()
|
|
||||||
local sp = meta:get_int("mcl_shepherd:special")
|
|
||||||
if sp == 0 and player:get_wielded_item():get_definition().groups.staff then
|
|
||||||
local has_sheep = false
|
|
||||||
for _, obj in pairs(minetest.get_objects_inside_radius(player:get_pos(), 3)) do
|
|
||||||
local ent = obj:get_luaentity()
|
|
||||||
if ent and ent.name == "mobs_mc:sheep" then
|
|
||||||
has_sheep = true
|
|
||||||
break
|
|
||||||
end
|
|
||||||
end
|
|
||||||
if has_sheep then
|
|
||||||
minetest.sound_play(
|
|
||||||
{name="shepherd-midnight", gain=3, pitch=1.0},
|
|
||||||
{to_player=player:get_player_name(), gain=1.0, fade=0.0, pitch=1.0},
|
|
||||||
false
|
|
||||||
)
|
|
||||||
meta:set_int("mcl_shepherd:special", 1)
|
|
||||||
mcl_weather.skycolor.update_sky_color({player})
|
|
||||||
minetest.after(45, function(name)
|
|
||||||
local player = minetest.get_player_by_name(name)
|
|
||||||
if not player then return end
|
|
||||||
local meta = player:get_meta()
|
|
||||||
meta:set_int("mcl_shepherd:special", 0)
|
|
||||||
mcl_weather.skycolor.update_sky_color({player})
|
|
||||||
end, player:get_player_name())
|
|
||||||
end
|
|
||||||
end
|
|
||||||
end
|
|
||||||
end
|
|
||||||
end)
|
|
||||||
minetest.register_on_joinplayer(function(player)
|
|
||||||
local meta = player:get_meta()
|
|
||||||
meta:set_int("mcl_shepherd:special", 0)
|
|
||||||
end)
|
|
||||||
end
|
|
||||||
|
|
||||||
minetest.register_craft({
|
|
||||||
output = "mcl_shepherd:shepherd_staff",
|
|
||||||
recipe = {
|
|
||||||
{"","","mcl_core:stick"},
|
|
||||||
{"","mcl_core:stick",""},
|
|
||||||
{"mcl_core:stick","",""},
|
|
||||||
}
|
|
||||||
})
|
|
||||||
minetest.register_craft({
|
|
||||||
output = "mcl_shepherd:shepherd_staff",
|
|
||||||
recipe = {
|
|
||||||
{"mcl_core:stick", "", ""},
|
|
||||||
{"", "mcl_core:stick", ""},
|
|
||||||
{"","","mcl_core:stick"},
|
|
||||||
}
|
|
||||||
})
|
|
||||||
minetest.register_craft({
|
|
||||||
type = "fuel",
|
|
||||||
recipe = "mcl_shepherd:shepherd_staff",
|
|
||||||
burntime = 15,
|
|
||||||
})
|
|
|
@ -1,4 +0,0 @@
|
||||||
name = mcl_shepherd
|
|
||||||
author = Herowl
|
|
||||||
depends = mcl_core, mobs_mc, mcl_util
|
|
||||||
optional_depends = doc
|
|
|
@ -1,28 +0,0 @@
|
||||||
# ```vl_hollow_logs```
|
|
||||||
|
|
||||||
This mod registers hollow logs derived from normal logs.
|
|
||||||
Hollow logs mostly have a decorative function, but some of them can be used in recipes. Changes may appear soon.
|
|
||||||
|
|
||||||
## Functions:
|
|
||||||
### ```vl_hollow_logs.register_hollow_log(defs)```
|
|
||||||
This is the function that registers the hollow trunk.
|
|
||||||
For a hollow log to be registered, the <span style="color:firebrick"> defs </span> parameter must be a table that contains up to 5 values, which are, in this order, the <span style="color:firebrick"> itemstring </span> of the hollow log, the <span style="color:firebrick"> itemstring </span> of the stripped hollow log, the <span style="color:firebrick"> description </span> of the hollow log, the <span style="color:firebrick"> description </span> of the stripped hollow log and, optionally, a <span style="color:turquoise"> boolean </span> to inform whether this trunk is NOT flammable. If the hollow log is defined as flammable, it becomes part of the <span style="color:springgreen"> hollow_log_flammable </span> group, which allows the log to be used as fuel for furnaces and also allows it to be an ingredient for chacoal.
|
|
||||||
|
|
||||||
Examples:
|
|
||||||
```lua
|
|
||||||
-- Flammable
|
|
||||||
{"tree", "stripped_oak", "Hollow Oak Log", "Stripped Hollow Oak Log"}
|
|
||||||
|
|
||||||
-- Not flammable
|
|
||||||
{"crimson_hyphae", "stripped_crimson_hyphae", "Hollow Crimson Stem", "Stripped Hollow Crimson Stem", true}
|
|
||||||
```
|
|
||||||
### ```vl_hollow_logs.register_craft(material, result)```
|
|
||||||
|
|
||||||
This function records the crafting recipe for a hollow log based on its non-hollow variant.
|
|
||||||
This function also defines a recipe for the stonecutter. The <span style="color:firebrick"> material </span> and <span style="color:firebrick"> result </span> parameters must be, respectively, the <span style="color:firebrick"> complete itemstring </span> of the source material and the (partial) <span style="color:firebrick"> itemstring </span> of the result. See the following examples:
|
|
||||||
|
|
||||||
```lua
|
|
||||||
vl_hollow_logs.register_craft("mcl_core:tree", "tree")
|
|
||||||
|
|
||||||
vl_hollow_logs.register_craft("mcl_crimson:stripped_crimson_hyphae", "stripped_crimson_hyphae")
|
|
||||||
```
|
|
|
@ -1,112 +0,0 @@
|
||||||
local modpath = minetest.get_modpath(minetest.get_current_modname())
|
|
||||||
local S = minetest.get_translator(minetest.get_current_modname())
|
|
||||||
|
|
||||||
vl_hollow_logs = {}
|
|
||||||
--- Function to register a hollow log. See API.md to learn how to use this function.
|
|
||||||
---@param defs table {name:string, stripped_name>string, desc:string, stripped_desc:string, not_flammable:boolean|nil}
|
|
||||||
function vl_hollow_logs.register_hollow_log(defs)
|
|
||||||
if not defs or #defs < 4 then
|
|
||||||
error("Incomplete definition provided")
|
|
||||||
end
|
|
||||||
|
|
||||||
for i = 1, 4 do
|
|
||||||
if type(defs[i]) ~= "string" then
|
|
||||||
error("defs["..i.."] must be a string")
|
|
||||||
end
|
|
||||||
end
|
|
||||||
if defs[5] and type(defs[5]) ~= "boolean" then
|
|
||||||
error("defs[5] must be a boolean if present")
|
|
||||||
end
|
|
||||||
|
|
||||||
local modname = minetest.get_current_modname()
|
|
||||||
|
|
||||||
if #defs > 5 then
|
|
||||||
minetest.log("warning", "[vl_hollow_logs] unused vars passed, dumping the table")
|
|
||||||
minetest.log("warning", "from mod " .. modname .. ": " .. dump(defs))
|
|
||||||
end
|
|
||||||
|
|
||||||
local name = defs[1]
|
|
||||||
local stripped_name = defs[2]
|
|
||||||
local desc = defs[3]
|
|
||||||
local stripped_desc = defs[4]
|
|
||||||
|
|
||||||
local collisionbox = {
|
|
||||||
type = "fixed",
|
|
||||||
fixed = {
|
|
||||||
{-0.5, -0.5, -0.5, 0.5, 0.5, -0.375},
|
|
||||||
{-0.5, -0.5, -0.5, -0.375, 0.5, 0.5},
|
|
||||||
{0.375, -0.5, -0.5, 0.5, 0.5, 0.5},
|
|
||||||
{-0.5, -0.5, 0.375, 0.5, 0.5, 0.5},
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
local groups = {axey = 1, building_block = 1, handy = 1, hollow_log = 1}
|
|
||||||
|
|
||||||
if not defs[5] then
|
|
||||||
groups = table.insert(groups, {fire_encouragement = 5, fire_flammability = 5, flammable = 2, hollow_log_burnable = 1})
|
|
||||||
end
|
|
||||||
|
|
||||||
minetest.register_node(modname .. ":"..name.."_hollow", {
|
|
||||||
collision_box = collisionbox,
|
|
||||||
description = S(desc),
|
|
||||||
drawtype = "mesh",
|
|
||||||
groups = groups,
|
|
||||||
mesh = "vl_hollow_logs_log.obj",
|
|
||||||
on_place = mcl_util.rotate_axis,
|
|
||||||
paramtype = "light",
|
|
||||||
paramtype2 = "facedir",
|
|
||||||
use_texture_alpha = "clip",
|
|
||||||
sounds = mcl_sounds.node_sound_wood_defaults(),
|
|
||||||
sunlight_propagates = true,
|
|
||||||
tiles = {modname .. "_"..name..".png"},
|
|
||||||
_mcl_blast_resistance = 2,
|
|
||||||
_mcl_hardness = 2,
|
|
||||||
_mcl_stripped_variant = modname .. ":stripped_"..name.."_hollow"
|
|
||||||
})
|
|
||||||
|
|
||||||
minetest.register_node(modname .. ":"..stripped_name.."_hollow", {
|
|
||||||
collision_box = collisionbox,
|
|
||||||
description = S(stripped_desc),
|
|
||||||
drawtype = "mesh",
|
|
||||||
groups = groups,
|
|
||||||
mesh = "vl_hollow_logs_log.obj",
|
|
||||||
on_place = mcl_util.rotate_axis,
|
|
||||||
paramtype = "light",
|
|
||||||
paramtype2 = "facedir",
|
|
||||||
use_texture_alpha = "clip",
|
|
||||||
sounds = mcl_sounds.node_sound_wood_defaults(),
|
|
||||||
sunlight_propagates = true,
|
|
||||||
tiles = {modname .. "_stripped_"..name..".png"},
|
|
||||||
_mcl_blast_resistance = 2,
|
|
||||||
_mcl_hardness = 2
|
|
||||||
})
|
|
||||||
end
|
|
||||||
|
|
||||||
vl_hollow_logs.logs = {
|
|
||||||
{"acaciatree", "stripped_acacia", "Hollow Acacia Log", "Stripped Hollow Acacia Log"},
|
|
||||||
{"birchtree", "stripped_birch", "Hollow Birch Log", "Stripped Hollow Birch Log"},
|
|
||||||
{"darktree", "stripped_dark_oak", "Hollow Dark Oak Log", "Stripped Hollow Dark Oak Log"},
|
|
||||||
{"jungletree", "stripped_jungle", "Hollow Jungle Log", "Stripped Hollow Jungle Log"},
|
|
||||||
{"sprucetree", "stripped_spruce", "Hollow Spruce Log", "Stripped Hollow Spruce Log"},
|
|
||||||
{"tree", "stripped_oak", "Hollow Oak Log", "Stripped Hollow Oak Log"}
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
if minetest.get_modpath("mcl_cherry_blossom") then
|
|
||||||
table.insert(vl_hollow_logs.logs, {"cherrytree", "stripped_cherrytree", "Hollow Cherry Log", "Stripped Hollow Cherry Log"})
|
|
||||||
end
|
|
||||||
|
|
||||||
if minetest.get_modpath("mcl_mangrove") then
|
|
||||||
table.insert(vl_hollow_logs.logs, {"mangrove_tree", "mangrove_stripped", "Hollow Mangrove Log", "Stripped Hollow Mangrove Log"})
|
|
||||||
end
|
|
||||||
|
|
||||||
if minetest.get_modpath("mcl_crimson") then
|
|
||||||
table.insert(vl_hollow_logs.logs, {"crimson_hyphae", "stripped_crimson_hyphae", "Hollow Crimson Stem", "Stripped Hollow Crimson Stem", true})
|
|
||||||
table.insert(vl_hollow_logs.logs, {"warped_hyphae", "stripped_warped_hyphae", "Hollow Warped Stem", "Stripped Hollow Warped Stem", true})
|
|
||||||
end
|
|
||||||
|
|
||||||
for _, defs in pairs(vl_hollow_logs.logs) do
|
|
||||||
vl_hollow_logs.register_hollow_log(defs)
|
|
||||||
end
|
|
||||||
|
|
||||||
dofile(modpath.."/recipes.lua")
|
|
|
@ -1,21 +0,0 @@
|
||||||
# textdomain: mcl_hollow_logs
|
|
||||||
Hollow Acacia Log=
|
|
||||||
Hollow Birch Log=
|
|
||||||
Hollow Cherry Log=
|
|
||||||
Hollow Dark Oak Log=
|
|
||||||
Hollow Jungle Log=
|
|
||||||
Hollow Mangrove Log=
|
|
||||||
Hollow Oak Log=
|
|
||||||
Hollow Spruce Log=
|
|
||||||
Hollow Crimson Stem=
|
|
||||||
Hollow Warped Stem=
|
|
||||||
Stripped Hollow Acacia Log=
|
|
||||||
Stripped Hollow Birch Log=
|
|
||||||
Stripped Hollow Cherry Log=
|
|
||||||
Stripped Hollow Dark Oak Log=
|
|
||||||
Stripped Hollow Jungle Log=
|
|
||||||
Stripped Hollow Mangrove Log=
|
|
||||||
Stripped Hollow Oak Log=
|
|
||||||
Stripped Hollow Spruce Log=
|
|
||||||
Stripped Hollow Crimson Stem=
|
|
||||||
Stripped Hollow Warped Stem=
|
|
|
@ -1,21 +0,0 @@
|
||||||
# textdomain: mcl_hollow_logs
|
|
||||||
Hollow Acacia Log=Tronco Oco de Acácia
|
|
||||||
Hollow Birch Log=Tronco Oco de Bétula
|
|
||||||
Hollow Cherry Log=Tronco Oco de Cerejeira
|
|
||||||
Hollow Dark Oak Log=Tronco Oco de Carvalho Escuro
|
|
||||||
Hollow Jungle Log=Tronco Oco da Selva
|
|
||||||
Hollow Mangrove Log=Tronco Oco de Mangue
|
|
||||||
Hollow Oak Log=Tronco Oco de Carvalho
|
|
||||||
Hollow Spruce Log=Tronco Oco de Pinheiro
|
|
||||||
Hollow Crimson Stem=Caule Oco Carmesim
|
|
||||||
Hollow Warped Stem=Caule Oco Distorcido
|
|
||||||
Stripped Hollow Acacia Log=Tronco Oco Descascado de Acácia
|
|
||||||
Stripped Hollow Birch Log=Tronco Oco Descascado de Bétula
|
|
||||||
Stripped Hollow Cherry Log=Tronco Oco Descascado de Cerejeira
|
|
||||||
Stripped Hollow Dark Oak Log=Tronco Oco Descascado de Carvalho Escuro
|
|
||||||
Stripped Hollow Jungle Log=Tronco Oco Descascado da Selva
|
|
||||||
Stripped Hollow Mangrove Log=Tronco Oco Descascado de Mangue
|
|
||||||
Stripped Hollow Oak Log=Tronco Oco Descascado de Carvalho
|
|
||||||
Stripped Hollow Spruce Log=Tronco Oco Descascado de Pinheiro
|
|
||||||
Stripped Hollow Crimson Stem=Caule Oco Descascado Carmesim
|
|
||||||
Stripped Hollow Warped Stem=Caule Oco Descascado Distorcido
|
|
|
@ -1,4 +0,0 @@
|
||||||
name = vl_hollow_logs
|
|
||||||
depends = mcl_core, mcl_sounds, mcl_util
|
|
||||||
optional_depends = mcl_cherry_blossom, mcl_crimson, mcl_mangrove
|
|
||||||
author = JoseDouglas26
|
|
|
@ -1,54 +0,0 @@
|
||||||
# Blender 3.6.7
|
|
||||||
# www.blender.org
|
|
||||||
o hollow_log
|
|
||||||
v -0.312500 -0.500000 0.312500
|
|
||||||
v -0.312500 0.500000 0.312500
|
|
||||||
v -0.312500 -0.500000 -0.312500
|
|
||||||
v -0.312500 0.500000 -0.312500
|
|
||||||
v 0.312500 -0.500000 0.312500
|
|
||||||
v 0.312500 0.500000 0.312500
|
|
||||||
v 0.312500 -0.500000 -0.312500
|
|
||||||
v 0.312500 0.500000 -0.312500
|
|
||||||
v -0.500000 -0.500000 -0.500000
|
|
||||||
v -0.500000 -0.500000 0.500000
|
|
||||||
v -0.500000 0.500000 0.500000
|
|
||||||
v -0.500000 0.500000 -0.500000
|
|
||||||
v 0.500000 -0.500000 -0.500000
|
|
||||||
v 0.500000 0.500000 -0.500000
|
|
||||||
v 0.500000 -0.500000 0.500000
|
|
||||||
v 0.500000 0.500000 0.500000
|
|
||||||
vn -1.0000 -0.0000 -0.0000
|
|
||||||
vn -0.0000 -0.0000 -1.0000
|
|
||||||
vn 1.0000 -0.0000 -0.0000
|
|
||||||
vn -0.0000 -0.0000 1.0000
|
|
||||||
vn -0.0000 -1.0000 -0.0000
|
|
||||||
vn -0.0000 1.0000 -0.0000
|
|
||||||
vt 0.380952 0.000000
|
|
||||||
vt 0.380952 1.000000
|
|
||||||
vt 0.000000 1.000000
|
|
||||||
vt 0.000000 0.000000
|
|
||||||
vt 0.619048 0.000000
|
|
||||||
vt 0.619048 1.000000
|
|
||||||
vt 0.928571 0.187500
|
|
||||||
vt 0.928571 0.812500
|
|
||||||
vt 1.000000 1.000000
|
|
||||||
vt 1.000000 -0.000000
|
|
||||||
vt 0.690476 0.187500
|
|
||||||
vt 0.690476 0.812500
|
|
||||||
s 0
|
|
||||||
f 10/1/1 11/2/1 12/3/1 9/4/1
|
|
||||||
f 9/1/2 12/2/2 14/3/2 13/4/2
|
|
||||||
f 13/1/3 14/2/3 16/3/3 15/4/3
|
|
||||||
f 15/1/4 16/2/4 11/3/4 10/4/4
|
|
||||||
f 7/5/4 8/6/4 4/2/4 3/1/4
|
|
||||||
f 5/5/1 6/6/1 8/2/1 7/1/1
|
|
||||||
f 3/7/5 1/8/5 10/9/5 9/10/5
|
|
||||||
f 2/8/6 4/7/6 12/10/6 11/9/6
|
|
||||||
f 7/11/5 3/7/5 9/10/5 13/5/5
|
|
||||||
f 4/7/6 8/11/6 14/5/6 12/10/6
|
|
||||||
f 5/12/5 7/11/5 13/5/5 15/6/5
|
|
||||||
f 8/11/6 6/12/6 16/6/6 14/5/6
|
|
||||||
f 1/8/5 5/12/5 15/6/5 10/9/5
|
|
||||||
f 6/12/6 2/8/6 11/9/6 16/6/6
|
|
||||||
f 3/5/3 4/6/3 2/2/3 1/1/3
|
|
||||||
f 1/5/2 2/6/2 6/2/2 5/1/2
|
|
|
@ -1,48 +0,0 @@
|
||||||
function vl_hollow_logs.register_craft(material, result)
|
|
||||||
minetest.register_craft({
|
|
||||||
output = "vl_hollow_logs:"..result.."_hollow 4",
|
|
||||||
recipe = {
|
|
||||||
{"", material, ""},
|
|
||||||
{material, "", material},
|
|
||||||
{"", material, ""}
|
|
||||||
},
|
|
||||||
type = "shaped"
|
|
||||||
})
|
|
||||||
|
|
||||||
mcl_stonecutter.register_recipe(material, "vl_hollow_logs:"..result.."_hollow", 1)
|
|
||||||
end
|
|
||||||
|
|
||||||
for _, defs in pairs(vl_hollow_logs.logs) do
|
|
||||||
local mod, material, stripped_material
|
|
||||||
local name = defs[1]
|
|
||||||
local stripped_name = defs[2]
|
|
||||||
|
|
||||||
if name:find("cherry") then
|
|
||||||
mod = "mcl_cherry_blossom:"
|
|
||||||
elseif name:find("mangrove") then
|
|
||||||
mod = "mcl_mangrove:"
|
|
||||||
elseif name:find("hyphae") then
|
|
||||||
mod = "mcl_crimson:"
|
|
||||||
else
|
|
||||||
mod = "mcl_core:"
|
|
||||||
end
|
|
||||||
|
|
||||||
material = mod..name
|
|
||||||
stripped_material = mod..stripped_name
|
|
||||||
|
|
||||||
vl_hollow_logs.register_craft(material, name)
|
|
||||||
vl_hollow_logs.register_craft(stripped_material, stripped_name)
|
|
||||||
end
|
|
||||||
|
|
||||||
minetest.register_craft({
|
|
||||||
burntime = 10,
|
|
||||||
recipe = "group:hollow_log_burnable",
|
|
||||||
type = "fuel",
|
|
||||||
})
|
|
||||||
|
|
||||||
minetest.register_craft({
|
|
||||||
cooktime = 5,
|
|
||||||
output = "mcl_core:charcoal_lump",
|
|
||||||
recipe = "group:hollow_log_burnable",
|
|
||||||
type = "cooking"
|
|
||||||
})
|
|
|
@ -1,7 +1,3 @@
|
||||||
local modname = minetest.get_current_modname()
|
|
||||||
local modpath = minetest.get_modpath(modname)
|
|
||||||
|
|
||||||
building = {}
|
building = {}
|
||||||
building.translator = minetest.get_translator(modname)
|
|
||||||
|
|
||||||
voxelibre.load_mod_files(modpath)
|
voxelibre.load_mod_files()
|
||||||
|
|
|
@ -1,5 +1,3 @@
|
||||||
local S = building.translator
|
|
||||||
|
|
||||||
local commondefs = {
|
local commondefs = {
|
||||||
concrete = {
|
concrete = {
|
||||||
_mcl_blast_resistance = 1.8,
|
_mcl_blast_resistance = 1.8,
|
||||||
|
@ -49,3 +47,58 @@ end
|
||||||
for identifier, definitions in pairs(planks) do
|
for identifier, definitions in pairs(planks) do
|
||||||
voxelibre.register_block(identifier.."_planks", table.merge(commondefs.planks, definitions))
|
voxelibre.register_block(identifier.."_planks", table.merge(commondefs.planks, definitions))
|
||||||
end
|
end
|
||||||
|
|
||||||
|
local blocks = {
|
||||||
|
["bricks"] = {
|
||||||
|
_mcl_blast_resistance = 6,
|
||||||
|
_mcl_hardness = 2,
|
||||||
|
groups = {building_blocks = 1, pickaxey = 1, stonecuttable = 1},
|
||||||
|
sounds = mcl_sounds.node_sound_stone_defaults()
|
||||||
|
},
|
||||||
|
["chiseled_stone_bricks"] = {
|
||||||
|
_mcl_blast_resistance = 6,
|
||||||
|
_mcl_hardness = 1.5,
|
||||||
|
groups = {building_blocks = 1, pickaxey = 1},
|
||||||
|
sounds = mcl_sounds.node_sound_stone_defaults()
|
||||||
|
},
|
||||||
|
["cracked_deepslate_bricks"] = {
|
||||||
|
_mcl_blast_resistance = 6,
|
||||||
|
_mcl_hardness = 3.5,
|
||||||
|
groups = {building_blocks = 1, pickaxey = 1},
|
||||||
|
sounds = mcl_sounds.node_sound_stone_defaults()
|
||||||
|
},
|
||||||
|
["cracked_stone_bricks"] = {
|
||||||
|
_mcl_blast_resistance = 6,
|
||||||
|
_mcl_hardness = 1.5,
|
||||||
|
groups = {building_blocks = 1, pickaxey = 1},
|
||||||
|
sounds = mcl_sounds.node_sound_stone_defaults()
|
||||||
|
},
|
||||||
|
["deepslate_bricks"] = {
|
||||||
|
_mcl_blast_resistance = 6,
|
||||||
|
_mcl_hardness = 3.5,
|
||||||
|
groups = {building_blocks = 1, pickaxey = 1, stonecuttable = 1},
|
||||||
|
sounds = mcl_sounds.node_sound_stone_defaults()
|
||||||
|
},
|
||||||
|
["mossy_stone_bricks"] = {
|
||||||
|
_mcl_blast_resistance = 6,
|
||||||
|
_mcl_hardness = 1.5,
|
||||||
|
groups = {building_blocks = 1, pickaxey = 1, stonecuttable = 1},
|
||||||
|
sounds = mcl_sounds.node_sound_stone_defaults()
|
||||||
|
},
|
||||||
|
["stone_bricks"] = {
|
||||||
|
_mcl_blast_resistance = 6,
|
||||||
|
_mcl_hardness = 1.5,
|
||||||
|
groups = {building_blocks = 1, pickaxey = 1, stonecuttable = 1},
|
||||||
|
sounds = mcl_sounds.node_sound_stone_defaults()
|
||||||
|
},
|
||||||
|
["tuff_bricks"] = {
|
||||||
|
_mcl_blast_resistance = 6,
|
||||||
|
_mcl_hardness = 1.5,
|
||||||
|
groups = {building_blocks = 1, pickaxey = 1, stonecuttable = 1},
|
||||||
|
sounds = mcl_sounds.node_sound_stone_defaults()
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
for identifier, definitions in pairs(blocks) do
|
||||||
|
voxelibre.register_block(identifier, definitions)
|
||||||
|
end
|
||||||
|
|
After Width: | Height: | Size: 333 B |
After Width: | Height: | Size: 6.3 KiB |
After Width: | Height: | Size: 6.3 KiB |
After Width: | Height: | Size: 8.1 KiB |
After Width: | Height: | Size: 6.6 KiB |
After Width: | Height: | Size: 2.6 KiB |
After Width: | Height: | Size: 7.9 KiB |
After Width: | Height: | Size: 256 B |
After Width: | Height: | Size: 6.1 KiB |
After Width: | Height: | Size: 6.1 KiB |
After Width: | Height: | Size: 6.7 KiB |
|
@ -0,0 +1,18 @@
|
||||||
|
[LocalizedFileNames]
|
||||||
|
red_nether_bricks.png=@red_nether_bricks,0
|
||||||
|
end_stone_bricks.png=@end_stone_bricks,0
|
||||||
|
prismarine_bricks.png=@prismarine_bricks,0
|
||||||
|
mossy_stone_bricks.png=@mossy_stone_bricks,0
|
||||||
|
stone_bricks.png=@stone_bricks,0
|
||||||
|
cracked_stone_bricks.png=@cracked_stone_bricks,0
|
||||||
|
chiseled_stone_bricks.png=@chiseled_stone_bricks,0
|
||||||
|
mud_bricks.png=@mud_bricks,0
|
||||||
|
cracked_deepslate_bricks.png=@cracked_deepslate_bricks,0
|
||||||
|
deepslate_bricks.png=@deepslate_bricks,0
|
||||||
|
cracked_polished_blackstone_bricks.png=@cracked_polished_blackstone_bricks,0
|
||||||
|
polished_blackstone_bricks.png=@polished_blackstone_bricks,0
|
||||||
|
bricks.png=@bricks,0
|
||||||
|
chiseled_nether_bricks.png=@chiseled_nether_bricks,0
|
||||||
|
cracked_nether_bricks.png=@cracked_nether_bricks,0
|
||||||
|
nether_bricks.png=@nether_bricks,0
|
||||||
|
quartz_bricks.png=@quartz_bricks,0
|
After Width: | Height: | Size: 6.1 KiB |
After Width: | Height: | Size: 7.0 KiB |
After Width: | Height: | Size: 6.0 KiB |
After Width: | Height: | Size: 6.4 KiB |
After Width: | Height: | Size: 6.8 KiB |
After Width: | Height: | Size: 470 B |
After Width: | Height: | Size: 400 B |