mcl_archaeology
3
.gitignore
vendored
|
@ -6,3 +6,6 @@
|
|||
/.idea/
|
||||
*.xcf
|
||||
.Rproj.user
|
||||
|
||||
# Windows Thumbnail Cache
|
||||
Thumbs.db
|
||||
|
|
|
@ -187,6 +187,15 @@ function mcl_sounds.node_sound_lava_defaults(table)
|
|||
return table
|
||||
end
|
||||
|
||||
function mcl_sounds.node_sound_decorated_pot_defaults(table)
|
||||
table = table or {}
|
||||
-- TODO: Footstep and dug sounds
|
||||
table.place = table.place or
|
||||
{name = "archaeology_decorated_pot_place", gain = 1.0}
|
||||
mcl_sounds.node_sound_defaults(table)
|
||||
return table
|
||||
end
|
||||
|
||||
-- Player death sound
|
||||
minetest.register_on_dieplayer(function(player)
|
||||
-- TODO: Add separate death sound
|
||||
|
|
BIN
mods/CORE/mcl_sounds/sounds/archaeology_decorated_pot_place.1.ogg
Executable file
BIN
mods/CORE/mcl_sounds/sounds/archaeology_decorated_pot_place.2.ogg
Executable file
BIN
mods/CORE/mcl_sounds/sounds/archaeology_decorated_pot_place.3.ogg
Executable file
11
mods/ITEMS/mcl_archaeology/README.md
Normal file
|
@ -0,0 +1,11 @@
|
|||
# MineClone2 Archaeology [mcl_archaeology]
|
||||
|
||||
Adds 1.20 archaeology mechanic(s) (brush, suspicious blocks, pottery sherds, decorated pots, trail ruins)
|
||||
|
||||
## Credits
|
||||
|
||||
* rudzik8 (all code and textures except for what is mentioned below)
|
||||
* XSSheep (for the textures I've used as a base for my own ones)
|
||||
* Ex (advice, also `mcl_archaeology_decorated_pot_base.png`, `mcl_archaeology_decorated_pot_side.png` and derevatives)
|
||||
* chmodsayshello (advice, consultation and some MC showcase)
|
||||
* Nicu (advice)
|
31
mods/ITEMS/mcl_archaeology/init.lua
Normal file
|
@ -0,0 +1,31 @@
|
|||
local mp = minetest.get_modpath(minetest.get_current_modname())
|
||||
|
||||
local S = minetest.get_translator(mp)
|
||||
|
||||
mcl_archaeology = {}
|
||||
mcl_archaeology.pottery_sherds = {
|
||||
-- name, description
|
||||
{"angler", S("Angler Pottery Sherd")},
|
||||
{"archer", S("Archer Pottery Sherd")},
|
||||
{"arms_up", S("Arms Up Pottery Sherd")},
|
||||
{"blade", S("Blade Pottery Sherd")},
|
||||
{"brewer", S("Brewer Pottery Sherd")},
|
||||
{"burn", S("Burn Pottery Sherd")},
|
||||
{"danger", S("Danger Pottery Sherd")},
|
||||
{"explorer", S("Explorer Pottery Sherd")},
|
||||
{"friend", S("Friend Pottery Sherd")},
|
||||
{"heart", S("Heart Pottery Sherd")},
|
||||
{"heartbreak", S("Heartbreak Pottery Sherd")},
|
||||
{"howl", S("Howl Pottery Sherd")},
|
||||
{"miner", S("Miner Pottery Sherd")},
|
||||
{"mourner", S("Mourner Pottery Sherd")},
|
||||
{"plenty", S("Plenty Pottery Sherd")},
|
||||
{"prize", S("Prize Pottery Sherd")},
|
||||
{"sheaf", S("Sheaf Pottery Sherd")},
|
||||
{"shelter", S("Shelter Pottery Sherd")},
|
||||
{"skull", S("Skull Pottery Sherd")},
|
||||
{"snort", S("Snort Pottery Sherd")}
|
||||
}
|
||||
|
||||
dofile(mp.."/items.lua")
|
||||
dofile(mp.."/nodes.lua")
|
33
mods/ITEMS/mcl_archaeology/items.lua
Normal file
|
@ -0,0 +1,33 @@
|
|||
local S = minetest.get_translator(minetest.get_current_modname())
|
||||
|
||||
for _, row in ipairs(mcl_archaeology.pottery_sherds) do
|
||||
-- assign variable = row[x]
|
||||
local name = row[1]
|
||||
local desc = row[2] -- short for "description"
|
||||
|
||||
-- register
|
||||
minetest.register_craftitem("mcl_archaeology:"..name.."_pottery_sherd", {
|
||||
description = desc,
|
||||
_doc_items_longdesc = S("A pottery sherd is used to craft Decorated Pots."),
|
||||
inventory_image = "mcl_archaeology_pottery_sherd_"..name..".png",
|
||||
groups = { craftitem = 1, pottery_sherd = 1, pottery = 1 }
|
||||
})
|
||||
end
|
||||
|
||||
minetest.register_craftitem("mcl_archaeology:brush", {
|
||||
description = S("Brush"),
|
||||
_doc_items_longdesc = S("A brush can be used to excavate suspicious blocks."),
|
||||
_tt_help = S("Excavates suspicious blocks"),
|
||||
inventory_image = "mcl_archaeology_brush.png",
|
||||
stack_max = 1,
|
||||
groups = {tool=1},
|
||||
})
|
||||
|
||||
minetest.register_craft({
|
||||
output = "mcl_archaeology:brush",
|
||||
recipe = {
|
||||
{"mcl_mobitems:feather"},
|
||||
{"mcl_copper:copper_ingot"},
|
||||
{"mcl_core:stick"}
|
||||
}
|
||||
})
|
4
mods/ITEMS/mcl_archaeology/mod.conf
Normal file
|
@ -0,0 +1,4 @@
|
|||
name = mcl_archaeology
|
||||
title = MineClone2 Archaeology
|
||||
description = Adds 1.20 archaeology mechanic(s) (brush, suspicious blocks, pottery sherds, decorated pots, trail ruins) into the MineClone 2 game
|
||||
depends = mcl_core
|
56
mods/ITEMS/mcl_archaeology/nodes.lua
Normal file
|
@ -0,0 +1,56 @@
|
|||
local S = minetest.get_translator(minetest.get_current_modname())
|
||||
|
||||
minetest.register_node("mcl_archaeology:suspicious_sand", {
|
||||
description = S("Suspicious Sand"),
|
||||
tiles = {"mcl_archaeology_suspicious_sand.png"},
|
||||
groups = { handy = 1, shovely = 1, falling_node = 1,
|
||||
dig_by_piston = 1, dig_immediate_piston = 1 },
|
||||
sounds = mcl_sounds.node_sound_sand_defaults(),
|
||||
_mcl_blast_resistance = 0.5,
|
||||
_mcl_hardness = 0.5,
|
||||
})
|
||||
|
||||
minetest.register_node("mcl_archaeology:suspicious_gravel", {
|
||||
description = S("Suspicious Gravel"),
|
||||
tiles = {"mcl_archaeology_suspicious_gravel.png"},
|
||||
groups = { handy = 1, shovely = 1, falling_node = 1,
|
||||
dig_by_piston = 1, dig_immediate_piston = 1 },
|
||||
sounds = mcl_sounds.node_sound_gravel_defaults(),
|
||||
_mcl_blast_resistance = 0.6,
|
||||
_mcl_hardness = 0.6,
|
||||
})
|
||||
|
||||
minetest.register_node("mcl_archaeology:decorated_pot", {
|
||||
description = S("Decorated Pot"),
|
||||
tiles = {
|
||||
"mcl_archaeology_decorated_pot_top.png",
|
||||
"mcl_archaeology_decorated_pot_bottom.png",
|
||||
"mcl_archaeology_decorated_pot_side.png",
|
||||
"mcl_archaeology_decorated_pot_side.png",
|
||||
"mcl_archaeology_decorated_pot_side.png",
|
||||
"mcl_archaeology_decorated_pot_side.png"
|
||||
},
|
||||
drawtype = "nodebox",
|
||||
paramtype = "light",
|
||||
node_box = {
|
||||
type = "fixed",
|
||||
fixed = {
|
||||
{-0.4375, -0.5, -0.4375, 0.4375, 0.5, 0.4375}, -- base
|
||||
{-0.1875, 0.5, -0.1875, 0.1875, 0.5625, 0.1875}, -- neck (bottom part)
|
||||
{-0.25, 0.5625, -0.25, 0.25, 0.6875, 0.25}, -- neck (top part)
|
||||
}
|
||||
},
|
||||
--drops = {},
|
||||
groups = { handy = 1 },
|
||||
_mcl_silk_touch_drop = true -- TODO: different sound when breaking with silk touch
|
||||
})
|
||||
|
||||
-- normal, non-pattern recipe
|
||||
minetest.register_craft({
|
||||
output = "mcl_archaeology:decorated_pot",
|
||||
recipe = {
|
||||
{"", "group:pottery", ""},
|
||||
{"group:pottery", "", "group:pottery"},
|
||||
{"", "group:pottery", ""},
|
||||
}
|
||||
})
|
|
@ -114,7 +114,7 @@ minetest.register_craftitem("mcl_core:brick", {
|
|||
_doc_items_longdesc = S("Bricks are used to craft brick blocks."),
|
||||
inventory_image = "default_clay_brick.png",
|
||||
stack_max = 64,
|
||||
groups = { craftitem=1 },
|
||||
groups = { craftitem=1, pottery=1 },
|
||||
})
|
||||
|
||||
minetest.register_craftitem("mcl_core:flint", {
|
||||
|
|
BIN
textures/mcl_archaeology_brush.png
Normal file
After Width: | Height: | Size: 227 B |
BIN
textures/mcl_archaeology_decorated_pot_base.png
Normal file
After Width: | Height: | Size: 1.3 KiB |
BIN
textures/mcl_archaeology_decorated_pot_bottom.png
Normal file
After Width: | Height: | Size: 114 B |
BIN
textures/mcl_archaeology_decorated_pot_side.png
Normal file
After Width: | Height: | Size: 437 B |
BIN
textures/mcl_archaeology_decorated_pot_top.png
Normal file
After Width: | Height: | Size: 142 B |
BIN
textures/mcl_archaeology_pottery_sherd_angler.png
Executable file
After Width: | Height: | Size: 200 B |
BIN
textures/mcl_archaeology_pottery_sherd_archer.png
Executable file
After Width: | Height: | Size: 201 B |
BIN
textures/mcl_archaeology_pottery_sherd_arms_up.png
Executable file
After Width: | Height: | Size: 199 B |
BIN
textures/mcl_archaeology_pottery_sherd_blade.png
Executable file
After Width: | Height: | Size: 194 B |
BIN
textures/mcl_archaeology_pottery_sherd_brewer.png
Executable file
After Width: | Height: | Size: 195 B |
BIN
textures/mcl_archaeology_pottery_sherd_burn.png
Executable file
After Width: | Height: | Size: 198 B |
BIN
textures/mcl_archaeology_pottery_sherd_danger.png
Executable file
After Width: | Height: | Size: 193 B |
BIN
textures/mcl_archaeology_pottery_sherd_explorer.png
Executable file
After Width: | Height: | Size: 193 B |
BIN
textures/mcl_archaeology_pottery_sherd_friend.png
Executable file
After Width: | Height: | Size: 184 B |
BIN
textures/mcl_archaeology_pottery_sherd_heart.png
Executable file
After Width: | Height: | Size: 190 B |
BIN
textures/mcl_archaeology_pottery_sherd_heartbreak.png
Executable file
After Width: | Height: | Size: 196 B |
BIN
textures/mcl_archaeology_pottery_sherd_howl.png
Executable file
After Width: | Height: | Size: 195 B |
BIN
textures/mcl_archaeology_pottery_sherd_miner.png
Executable file
After Width: | Height: | Size: 197 B |
BIN
textures/mcl_archaeology_pottery_sherd_mourner.png
Executable file
After Width: | Height: | Size: 196 B |
BIN
textures/mcl_archaeology_pottery_sherd_plenty.png
Executable file
After Width: | Height: | Size: 195 B |
BIN
textures/mcl_archaeology_pottery_sherd_prize.png
Executable file
After Width: | Height: | Size: 197 B |
BIN
textures/mcl_archaeology_pottery_sherd_sheaf.png
Executable file
After Width: | Height: | Size: 199 B |
BIN
textures/mcl_archaeology_pottery_sherd_shelter.png
Executable file
After Width: | Height: | Size: 198 B |
BIN
textures/mcl_archaeology_pottery_sherd_skull.png
Executable file
After Width: | Height: | Size: 195 B |
BIN
textures/mcl_archaeology_pottery_sherd_snort.png
Executable file
After Width: | Height: | Size: 190 B |
BIN
textures/mcl_archaeology_suspicious_gravel.png
Normal file
After Width: | Height: | Size: 246 B |
BIN
textures/mcl_archaeology_suspicious_sand.png
Normal file
After Width: | Height: | Size: 184 B |