Mineclone Update

master
Nathaniel Freeman 2021-07-07 23:15:28 +02:00
parent 4a372fc953
commit 8b35d91897
13 changed files with 428 additions and 204 deletions

View File

@ -1,16 +0,0 @@
# Minetest Mod "UwU"
By: PsycoJaker
![uwu](uwu.png)
## Descripción
Este mod añade un bloque adorable que puedes cuidar como una preciosa mascota: el "bloque UwU", crafteable con extrañas menas de Cristalcitos uwus que se encuentran en las profundidades, tambien puedes crear herramientas UwU con preciosos colores.
## Reporte de bugs y sugerencias:
Puedes reportar bug y sugerencias en [Issues](https://notabug.org/PsycoJaker/uwu/issues)
## Links
* [uwu Git Repo](https://notabug.org/PsycoJaker/UwU.git)

41
README.org Normal file
View File

@ -0,0 +1,41 @@
* UwU Mod (MineClone2)
Original by PsycoJaker
Maintained by Nathaniel Freeman
[[file:uwu.png]]
** Description
UwU mod is for [[https://content.minetest.net/packages/Wuzzy/mineclone2/][MineClone2]] Game, dont work with MTG
This mod add:
- uwu ore.
- uwu tools.
- uwu deco crystal.
- uwu pet block, eat food and give love.
** Copying
Copyright (C) 2020, 2021 PsycoJaker
UwU mod is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
any later version.
UwU mod is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with UwU mod. If not, see <https://www.gnu.org/licenses/>.
** Bug repport / Suggestions
[[https://notabug.org/PsycoJaker/uwu/issues][Issues]]

View File

@ -1,5 +1,25 @@
-- Copyright (C) 2020 2021 PsycoJaker
-- This file is part of UwU Mod Minetest Mod.
-- UwU Mod is free software: you can redistribute it and/or modify
-- it under the terms of the GNU General Public License as published by
-- the Free Software Foundation, either version 3 of the License, or
-- any later version.
-- UwU Mod is distributed in the hope that it will be useful,
-- but WITHOUT ANY WARRANTY; without even the implied warranty of
-- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-- GNU General Public License for more details.
-- You should have received a copy of the GNU General Public License
-- along with UwU Mod. If not, see <https://www.gnu.org/licenses/>.
-- Cristalcitos uwus hacen algo más uwu... el bloque uwu :D!

56
gen.lua Normal file
View File

@ -0,0 +1,56 @@
-- Copyright (C) 2020 2021 PsycoJaker
-- This file is part of UwU Mod Minetest Mod.
-- UwU Mod is free software: you can redistribute it and/or modify
-- it under the terms of the GNU General Public License as published by
-- the Free Software Foundation, either version 3 of the License, or
-- any later version.
-- UwU Mod is distributed in the hope that it will be useful,
-- but WITHOUT ANY WARRANTY; without even the implied warranty of
-- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-- GNU General Public License for more details.
-- You should have received a copy of the GNU General Public License
-- along with UwU Mod. If not, see <https://www.gnu.org/licenses/>.
-- UwU Gen
minetest.register_ore({
ore_type = "scatter",
ore = "uwu:stone_with_uwu",
wherein = "mcl_core:stone",
clust_scarcity = 16 * 16 * 16,
clust_num_ores = 3,
clust_size = 3,
y_max = 31000,
y_min = 1025,
})
minetest.register_ore({
ore_type = "scatter",
ore = "uwu:stone_with_uwu",
wherein = "mcl_core:stone",
clust_scarcity = 17 * 17 * 17,
clust_num_ores = 3,
clust_size = 4,
y_max = -1000,
y_min = -2500,
})
minetest.register_ore({
ore_type = "scatter",
ore = "uwu:stone_with_uwu",
wherein = "mcl_core:stone",
clust_scarcity = 15 * 15 * 15,
clust_num_ores = 5,
clust_size = 2,
y_max = -2500,
y_min = -5000,
})

View File

@ -1,35 +0,0 @@
-- UwU Generacioncita
minetest.register_ore({
ore_type = "scatter",
ore = "uwu:stone_with_uwu",
wherein = "default:stone",
clust_scarcity = 16 * 16 * 16,
clust_num_ores = 3,
clust_size = 3,
y_max = 31000,
y_min = 1025,
})
minetest.register_ore({
ore_type = "scatter",
ore = "uwu:stone_with_uwu",
wherein = "default:stone",
clust_scarcity = 17 * 17 * 17,
clust_num_ores = 3,
clust_size = 4,
y_max = -1000,
y_min = -2500,
})
minetest.register_ore({
ore_type = "scatter",
ore = "uwu:stone_with_uwu",
wherein = "default:stone",
clust_scarcity = 15 * 15 * 15,
clust_num_ores = 5,
clust_size = 2,
y_max = -2500,
y_min = -5000,
})

View File

@ -1,66 +0,0 @@
local S = minetest.get_translator(minetest.get_current_modname())
-- Herramientitas uwu
minetest.register_tool("uwu:espadita_uwu", {
description = S("Espadita UwU"),
inventory_image = "uwu_espadita.png",
tool_capabilities = {
full_punch_interval = 0.7,
max_drop_level=1,
groupcaps={
snappy={times={[1]=2.0, [2]=1.00, [3]=0.35}, uses=30, maxlevel=3},
},
damage_groups = {fleshy=7},
},
sound = {breaks = "default_tool_breaks"},
groups = {sword = 1}
})
minetest.register_tool("uwu:piquito_uwu", {
description = S("Piquito UwU"),
inventory_image = "uwu_piquito.png",
tool_capabilities = {
full_punch_interval = 1.0,
max_drop_level=2,
groupcaps={
cracky={times={[1]=4.00, [2]=1.60, [3]=0.80}, uses=29, maxlevel=3},
},
damage_groups = {fleshy=4},
},
sound = {breaks = "default_tool_breaks"},
groups = {pickaxe = 1}
})
minetest.register_tool("uwu:hachita_uwu", {
description = S("Hachita UwU"),
inventory_image = "uwu_hachita.png",
tool_capabilities = {
full_punch_interval = 1.2,
max_drop_level=2,
groupcaps={
choppy={times={[1]=2.50, [2]=1.40, [3]=1.00}, uses=25, maxlevel=3},
},
damage_groups = {fleshy=6},
},
sound = {breaks = "default_tool_breaks"},
groups = {axe = 1}
})
minetest.register_tool("uwu:palita_uwu", {
description = S("Palita UwU"),
inventory_image = "uwu_palita.png",
wield_image = "uwu_palita.png^[transformR90",
tool_capabilities = {
full_punch_interval = 1.1,
max_drop_level=2,
groupcaps={
crumbly={times={[1]=1.40, [2]=0.50, [3]=0.30}, uses=30, maxlevel=3},
},
damage_groups = {fleshy=3},
},
sound = {breaks = "default_tool_breaks"},
groups = {shovel = 1}
})

View File

@ -1,19 +1,31 @@
-- Copyright (C) 2020 2021 PsycoJaker
-- This file is part of UwU Mod Minetest Mod.
-- UwU Mod is free software: you can redistribute it and/or modify
-- it under the terms of the GNU General Public License as published by
-- the Free Software Foundation, either version 3 of the License, or
-- any later version.
-- UwU Mod is distributed in the hope that it will be useful,
-- but WITHOUT ANY WARRANTY; without even the implied warranty of
-- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-- GNU General Public License for more details.
-- You should have received a copy of the GNU General Public License
-- along with UwU Mod. If not, see <https://www.gnu.org/licenses/>.
-----------------UWU-----------------
local modpath = minetest.get_modpath(minetest.get_current_modname())
dofile(modpath .. "/herramientitas.lua")
dofile(modpath .. "/generacioncita.lua")
dofile(modpath .. "/crafteitos.lua")
dofile(modpath .. "/noditos.lua")
dofile(modpath .. "/tools.lua")
dofile(modpath .. "/gen.lua")
dofile(modpath .. "/crafts.lua")
dofile(modpath .. "/nodes.lua")
minetest.log("[MOD] UwU")

View File

@ -1,4 +1,4 @@
name = uwu
description = Este mod añade menas de Cristalcitos uwus y bloques MAS uwu.
depends = default
depends = mcl_core, mcl_sounds, mcl_init

109
nodes.lua Normal file
View File

@ -0,0 +1,109 @@
-- Copyright (C) 2020 2021 PsycoJaker
-- This file is part of UwU Mod Minetest Mod.
-- UwU Mod is free software: you can redistribute it and/or modify
-- it under the terms of the GNU General Public License as published by
-- the Free Software Foundation, either version 3 of the License, or
-- any later version.
-- UwU Mod is distributed in the hope that it will be useful,
-- but WITHOUT ANY WARRANTY; without even the implied warranty of
-- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-- GNU General Public License for more details.
-- You should have received a copy of the GNU General Public License
-- along with UwU Mod. If not, see <https://www.gnu.org/licenses/>.
local S = minetest.get_translator(minetest.get_current_modname())
-- UwU Bloque
minetest.register_node("uwu:bloque_uwu", {
description = S("Bloque UwU"),
tiles = {"uwu_bloque.png"},
is_ground_content = false,
sunlight_propagates = true,
stack_max = 64,
groups = {handy=1, uwu=1, building_block=1},
sounds = mcl_sounds.node_sound_glass_defaults(),
_mcl_blast_resistance = 1,
_mcl_hardness = 0.3,
on_rightclick = function(pos, node, clicker, itemstack)
local item_manito = clicker:get_wielded_item()
local item_name = item_manito:get_name()
local es_comida = minetest.get_item_group(item_name, "food")
if es_comida == 2 then
itemstack:take_item()
minetest.sound_play("burp", {
pos = pos,
gain = 22,
max_hear_distance = 20,
pitch = math.random(70,110)/100
})
else
minetest.sound_play("uwu", {
pos = pos,
--gain = 17,
max_hear_distance = 20,
--pitch = math.random(70,110)/100
})
end
end
})
-- UwU Mena
minetest.register_node("uwu:stone_with_uwu", {
description = S("Mena UwU"),
tiles = {"default_stone.png^uwu_mena.png"},
is_ground_content = true,
light_source = 3,
drop = {
max_items = 3,
items = {
{items = {'uwu:cristalcito_uwu'}},
{items = {'uwu:cristalcito_uwu'}, rarity = 40},
{items = {'uwu:cristalcito_uwu'}, rarity = 65},
}
},
stack_max = 64,
groups = {pickaxey=1, building_block=1, material_stone=1, xp=4},
sounds = mcl_sounds.node_sound_stone_defaults(),
_mcl_blast_resistance = 3,
_mcl_hardness = 3,
_mcl_silk_touch_drop = true,
_mcl_fortune_drop = mcl_core.fortune_drop_ore,
})
-- UwU Cristalcito
minetest.register_node("uwu:cristalcito_uwu", {
description = S("Cristalcito UwU"),
drawtype = "plantlike",
light_source = 4,
tiles = {"uwu_cristalcitos.png"},
inventory_image = "uwu_cristalcitos.png",
wield_image = "uwu_cristalcitos.png",
sunlight_propagates = true,
paramtype = "light",
walkable = false,
selection_box = {
type = "fixed",
fixed = {-4/16, -8/16, -4/16, 4/16, 5/16, 4/16},
},
is_ground_content = false,
sunlight_propagates = true,
stack_max = 64,
groups = {handy=1, uwu=1, building_block=1},
sounds = mcl_sounds.node_sound_glass_defaults(),
_mcl_blast_resistance = 2,
_mcl_hardness = 0.3,
})

View File

@ -1,74 +0,0 @@
local S = minetest.get_translator(minetest.get_current_modname())
-- UwU Bloque
minetest.register_node("uwu:bloque_uwu", {
description = S("Bloque UwU"),
tiles = {"uwu_bloque.png"},
is_ground_content = false,
groups = {cracky = 3, oddly_breakable_by_hand = 2},
sounds = default.node_sound_glass_defaults(),
on_rightclick = function(pos, node, clicker, itemstack)
local item_manito = clicker:get_wielded_item()
local item_name = item_manito:get_name()
local es_pan = minetest.get_item_group(item_name, "food_bread")
if es_pan == 1 then
itemstack:take_item()
else
minetest.sound_play("decir_uwu", {
pos = pos,
max_hear_distance = 20,
})
end
end
})
-- UwU Mena
minetest.register_node("uwu:stone_with_uwu", {
description = S("Mena UwU"),
tiles = {"default_stone.png^uwu_mena.png"},
is_ground_content = true,
light_source = 2,
groups = {cracky = 1, level = 1},
drop = {
max_items = 3,
items = {
{
items = {'uwu:cristalcito_uwu'},
},
{
items = {'uwu:cristalcito_uwu'},
rarity = 40,
},
{
items = {'uwu:cristalcito_uwu'},
rarity = 65,
},
}
},
sounds = default.node_sound_glass_defaults()
})
-- UwU Cristalcito
minetest.register_node("uwu:cristalcito_uwu", {
description = S("Cristalcito UwU"),
drawtype = "plantlike",
light_source = 3,
tiles = {"uwu_cristalcitos.png"},
inventory_image = "uwu_cristalcitos.png",
wield_image = "uwu_cristalcitos.png",
sunlight_propagates = true,
paramtype = "light",
walkable = false,
groups = {cracky = 3, attached_node = 1},
sounds = default.node_sound_glass_defaults(),
selection_box = {
type = "fixed",
fixed = {-4/16, -8/16, -4/16, 4/16, 5/16, 4/16},
}
})

BIN
sounds/burp.ogg Executable file

Binary file not shown.

177
tools.lua Normal file
View File

@ -0,0 +1,177 @@
-- Copyright (C) 2020 2021 PsycoJaker
-- This file is part of UwU Mod Minetest Mod.
-- UwU Mod is free software: you can redistribute it and/or modify
-- it under the terms of the GNU General Public License as published by
-- the Free Software Foundation, either version 3 of the License, or
-- any later version.
-- UwU Mod is distributed in the hope that it will be useful,
-- but WITHOUT ANY WARRANTY; without even the implied warranty of
-- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-- GNU General Public License for more details.
-- You should have received a copy of the GNU General Public License
-- along with UwU Mod. If not, see <https://www.gnu.org/licenses/>.
local modname = minetest.get_current_modname()
local modpath = minetest.get_modpath(modname)
local S = minetest.get_translator(modname)
local wield_scale = mcl_vars.tool_wield_scale
local function make_grass_path(itemstack, placer, pointed_thing)
-- Use pointed node's on_rightclick function first, if present
local node = minetest.get_node(pointed_thing.under)
if placer and not placer:get_player_control().sneak then
if minetest.registered_nodes[node.name] and minetest.registered_nodes[node.name].on_rightclick then
return minetest.registered_nodes[node.name].on_rightclick(pointed_thing.under, node, placer, itemstack) or itemstack
end
end
-- Only make grass path if tool used on side or top of target node
if pointed_thing.above.y < pointed_thing.under.y then
return itemstack
end
if (minetest.get_item_group(node.name, "grass_block") == 1) then
local above = table.copy(pointed_thing.under)
above.y = above.y + 1
if minetest.get_node(above).name == "air" then
if minetest.is_protected(pointed_thing.under, placer:get_player_name()) then
minetest.record_protection_violation(pointed_thing.under, placer:get_player_name())
return itemstack
end
if not minetest.is_creative_enabled(placer:get_player_name()) then
-- Add wear (as if digging a shovely node)
local toolname = itemstack:get_name()
local wear = mcl_autogroup.get_wear(toolname, "shovely")
itemstack:add_wear(wear)
end
minetest.sound_play({name="default_grass_footstep", gain=1}, {pos = above}, true)
minetest.swap_node(pointed_thing.under, {name="mcl_core:grass_path"})
end
end
return itemstack
end
local function make_stripped_trunk(itemstack, placer, pointed_thing)
if pointed_thing.type ~= "node" then return end
local node = minetest.get_node(pointed_thing.under)
local noddef = minetest.registered_nodes[minetest.get_node(pointed_thing.under).name]
if not placer:get_player_control().sneak and noddef.on_rightclick then
return minetest.item_place(itemstack, placer, pointed_thing)
end
if minetest.is_protected(pointed_thing.under, placer:get_player_name()) then
minetest.record_protection_violation(pointed_thing.under, placer:get_player_name())
return itemstack
end
if noddef._mcl_stripped_variant == nil then
return itemstack
else
minetest.swap_node(pointed_thing.under, {name=noddef._mcl_stripped_variant, param2=node.param2})
if not minetest.is_creative_enabled(placer:get_player_name()) then
-- Add wear (as if digging a axey node)
local toolname = itemstack:get_name()
local wear = mcl_autogroup.get_wear(toolname, "axey")
itemstack:add_wear(wear)
end
end
return itemstack
end
-- Herramientitas uwu
minetest.register_tool("uwu:espadita_uwu", {
description = S("Espadita UwU"),
inventory_image = "uwu_espadita.png",
wield_scale = wield_scale,
groups = { weapon=1, sword=1, dig_speed_class=6, enchantability=22 },
tool_capabilities = {
full_punch_interval = 0.625,
max_drop_level=2,
damage_groups = {fleshy=4},
punch_attack_uses = 33,
},
sound = { breaks = "default_tool_breaks" },
_repair_material = "uwu:cristalcito_uwu",
_mcl_toollike_wield = true,
_mcl_diggroups = {
swordy = { speed = 12, level = 4, uses = 800 },
swordy_cobweb = { speed = 12, level = 4, uses = 250 }
},
})
minetest.register_tool("uwu:piquito_uwu", {
description = S("Piquito UwU"),
inventory_image = "uwu_piquito.png",
wield_scale = wield_scale,
groups = { tool=1, pickaxe=1, dig_speed_class=6, enchantability=22 },
tool_capabilities = {
-- 1/1.2
full_punch_interval = 0.83333333,
max_drop_level=2,
damage_groups = {fleshy=2},
punch_attack_uses = 17,
},
sound = { breaks = "default_tool_breaks" },
_repair_material = "uwu:cristalcito_uwu",
_mcl_toollike_wield = true,
_mcl_diggroups = {
pickaxey = { speed = 12, level = 5, uses = 250 }
},
})
minetest.register_tool("uwu:hachita_uwu", {
description = S("Hachita UwU"),
inventory_image = "uwu_hachita.png",
wield_scale = wield_scale,
groups = { tool=1, axe=1, dig_speed_class=6, enchantability=22 },
tool_capabilities = {
full_punch_interval = 1.0,
max_drop_level=2,
damage_groups = {fleshy=7},
punch_attack_uses = 17,
},
on_place = make_stripped_trunk,
sound = { breaks = "default_tool_breaks" },
_repair_material = "uwu:cristalcito_uwu",
_mcl_toollike_wield = true,
_mcl_diggroups = {
axey = { speed = 12, level = 4, uses = 250 }
},
})
minetest.register_tool("uwu:palita_uwu", {
description = S("Palita UwU"),
inventory_image = "uwu_palita.png",
wield_image = "uwu_palita.png^[transformR90",
wield_scale = wield_scale,
groups = { tool=1, shovel=1, dig_speed_class=6, enchantability=22 },
tool_capabilities = {
full_punch_interval = 1,
max_drop_level=2,
damage_groups = {fleshy=2},
punch_attack_uses = 17,
},
on_place = make_grass_path,
sound = { breaks = "default_tool_breaks" },
_repair_material = "uwu:cristalcito_uwu",
_mcl_toollike_wield = true,
_mcl_diggroups = {
shovely = { speed = 12, level = 4, uses = 250 }
},
})