master
James Stevenson 2019-10-10 05:40:28 -04:00
parent c232ffff1e
commit 09abe1e9f0
10 changed files with 18 additions and 10 deletions

4
IDEAS
View File

@ -1,3 +1,7 @@
make a specific bell for the clock-tower-bell, or time-bell
(the one that goes off each hour). this way i can add numeric
extensions, music_clock_bell.1.ogg, etc.
traders not take dirt/cobble, maybe gold only.
maybe a shop keeper that only does gold instead?
npcs for character quests/'taming'

View File

@ -7,7 +7,7 @@ minetest.register_node("diamond:block", {
description = "Diamond Block",
tiles = {"default_diamond_block.png"},
is_ground_content = false,
groups = {cracky = 1, level = 3},
groups = {cracky = 1, level = 3, trade_value = 15,},
sounds = music.sounds.material.metal,
})

View File

@ -1,6 +1,7 @@
minetest.register_craftitem("emerald:emerald", {
description = "Emerald",
inventory_image = "emerald_emerald.png",
groups = {trade_value = 30},
})
minetest.register_node("emerald:block", {

View File

@ -5,6 +5,7 @@
-- Namespace for functions
flowers = {}
local random = math.random
-- Map Generation
@ -155,7 +156,7 @@ function flowers.flower_spread(pos, node)
local num_soils = #soils
if num_soils >= 1 then
for si = 1, math.min(3, num_soils) do
local soil = soils[math.random(num_soils)]
local soil = soils[random(num_soils)]
local soil_name = minetest.get_node(soil).name
local soil_above = {x = soil.x, y = soil.y + 1, z = soil.z}
light = minetest.get_node_light(soil_above)
@ -249,10 +250,10 @@ function flowers.mushroom_spread(pos, node)
{x = pos.x - 1, y = pos.y - 2, z = pos.z - 1},
{x = pos.x + 1, y = pos.y + 1, z = pos.z + 1},
{"group:soil", "group:tree"})
if #positions == 0 then
if #positions == 1 then
return
end
local pos2 = positions[math.random(#positions)]
local pos2 = positions[random(#positions)]
pos2.y = pos2.y + 1
if minetest.get_node_light(pos2, 0.5) <= 3 then
minetest.set_node(pos2, {name = node.name})
@ -324,7 +325,7 @@ local waterlily_def = {
if not minetest.is_protected(pos, player_name) then
minetest.set_node(pos, {name = "flowers:waterlily" ..
(def.waving == 3 and "_waving" or ""),
param2 = math.random(0, 3)})
param2 = random(0, 3)})
if not (creative and creative.is_enabled_for
and creative.is_enabled_for(player_name)) then
itemstack:take_item()

View File

@ -96,7 +96,7 @@ minetest.register_node("grass:jungle", {
local sn = {
"farming:cotton_8",
"farming:wheat_8",
"farming:wheat_6",
"farming:carrot_5",
"grass:jungle",
"flowers:rose",

View File

@ -2875,8 +2875,10 @@ function mobs:capture_mob(self, clicker, chance, force_take, replacewith)
return false
end
mob_sound(self, "mobs_swing")
local wear = 650
if tn == "tools:bug_net_mese" then
chance = chance * 3
wear = wear * 3
end
-- is mob tamed?
if self.tamed == false and force_take == false then
@ -2888,7 +2890,7 @@ function mobs:capture_mob(self, clicker, chance, force_take, replacewith)
hud.message(name, S("@1 is owner!", self.owner))
return true
end
tool:add_wear(650)
tool:add_wear(wear)
clicker:set_wielded_item(tool)
if clicker:get_inventory():room_for_item("main", mobname) then
-- calculate chance.. add to inventory if successful?

View File

@ -27,6 +27,7 @@ mobs:register_mob("mobs:bunny", {
--jump_height = 6,
drops = {
{name = "mobs:meat_raw", chance = 1, min = 1, max = 2},
{name = "mobs:leather", chance = 2, min = 1, max = 2},
},
lava_damage = 4,
animation = {

View File

@ -51,7 +51,7 @@ mobs:register_mob("mobs:kitten", {
follow = {"mobs:rat"},
--view_range = 8,
on_rightclick = function(self, clicker)
if mobs:feed_tame(self, clicker, 4, true, true) then return end
if mobs:feed_tame(self, clicker, 1, true, true) then return end
if mobs:protect(self, clicker) then return end
if mobs:capture_mob(self, clicker, 20, false, nil) then return end

View File

@ -132,7 +132,7 @@ npc_drops = {
{name = "copper:ingot", chance = 0.8, count = {1, 3}},
{name = "mobs:leather", chance = 0.8, count = {1, 5}},
{name = "music:box", chance = 0.1},
{name = "music:record", chance = 0.1},
{name = "music:disk", chance = 0.1},
}
minetest.register_on_player_receive_fields(function(player, formname, fields)

View File

@ -1 +0,0 @@
name = tools