Compare commits
79 Commits
22980c2951
...
3d01f5ad03
Author | SHA1 | Date |
---|---|---|
teknomunk | 3d01f5ad03 | |
teknomunk | f584e85f67 | |
teknomunk | 05c043dcf3 | |
teknomunk | 75370fbac9 | |
teknomunk | 7b615a8e5a | |
teknomunk | 872cc080f1 | |
teknomunk | 0b5cf3af99 | |
teknomunk | ce01519faf | |
teknomunk | 9442e4dd69 | |
teknomunk | e390f36868 | |
teknomunk | 725a3dd969 | |
teknomunk | 799e734315 | |
the-real-herowl | 112d3c1a77 | |
the-real-herowl | 963644f62b | |
the-real-herowl | 990d126322 | |
the-real-herowl | f5505118d8 | |
teknomunk | 931e618643 | |
teknomunk | fa210cde78 | |
teknomunk | bf8716bd00 | |
teknomunk | 244cf40d11 | |
teknomunk | a2ef6c4dc9 | |
teknomunk | 417f9f624a | |
teknomunk | 7aa3758894 | |
teknomunk | 18521adc47 | |
teknomunk | af07e0f29c | |
teknomunk | 8907251cad | |
teknomunk | 9d6d72452f | |
teknomunk | cd550a7f33 | |
teknomunk | 53a76b09d9 | |
teknomunk | cf831049e5 | |
teknomunk | e5a7f010bd | |
teknomunk | c9383f957c | |
teknomunk | 18763a740f | |
teknomunk | 8385bfcced | |
teknomunk | a4a8739514 | |
teknomunk | 2a2d082046 | |
teknomunk | 74d97132c1 | |
teknomunk | 5564610b09 | |
teknomunk | dfb909e6bf | |
teknomunk | 007d505a96 | |
teknomunk | db00c709db | |
teknomunk | e12420b93e | |
teknomunk | 4b6fa8b869 | |
teknomunk | 1bfb4b5d8b | |
teknomunk | 42f4175930 | |
teknomunk | 63748cd03f | |
teknomunk | 9990c7937d | |
teknomunk | 4325ba0071 | |
teknomunk | 1d575df8b7 | |
teknomunk | 54b9861491 | |
teknomunk | f22224a162 | |
teknomunk | fcb8b1ffb7 | |
teknomunk | 77e1b14030 | |
teknomunk | ef2bc7dbfa | |
teknomunk | e4bfaca30e | |
teknomunk | 058e6d6c26 | |
teknomunk | 3506d5f820 | |
teknomunk | e3fcbdf1cc | |
teknomunk | 2214e6bdba | |
teknomunk | 9eefe64e90 | |
teknomunk | 6c6e17ad6d | |
teknomunk | a58151d73d | |
teknomunk | 59c342d626 | |
teknomunk | 491be0f116 | |
teknomunk | 9d9b493651 | |
teknomunk | c950115b2c | |
teknomunk | 42d7f400c4 | |
teknomunk | e7f6405bf3 | |
teknomunk | 4441f9ad5e | |
teknomunk | ac6cc76aad | |
teknomunk | a12ff875f2 | |
teknomunk | 1f7a810497 | |
teknomunk | ff5aab5d7c | |
teknomunk | 162ddbe7f5 | |
teknomunk | d83cebfb85 | |
teknomunk | 0ece1ed996 | |
Mikita Wiśniewski | 41b188caea | |
kno10 | ae7995d195 | |
kno10 | e293cbe631 |
|
@ -928,8 +928,6 @@ end
|
||||||
-- falling and fall damage
|
-- falling and fall damage
|
||||||
-- returns true if mob died
|
-- returns true if mob died
|
||||||
function mob_class:falling(pos, moveresult)
|
function mob_class:falling(pos, moveresult)
|
||||||
if moveresult and moveresult.touching_ground then return false end
|
|
||||||
|
|
||||||
if self.fly and self.state ~= "die" then
|
if self.fly and self.state ~= "die" then
|
||||||
return
|
return
|
||||||
end
|
end
|
||||||
|
@ -952,7 +950,13 @@ function mob_class:falling(pos, moveresult)
|
||||||
new_acceleration = vector.new(0, DEFAULT_FALL_SPEED, 0)
|
new_acceleration = vector.new(0, DEFAULT_FALL_SPEED, 0)
|
||||||
elseif v.y <= 0 and v.y > self.fall_speed then
|
elseif v.y <= 0 and v.y > self.fall_speed then
|
||||||
-- fall downwards at set speed
|
-- fall downwards at set speed
|
||||||
new_acceleration = vector.new(0, self.fall_speed, 0)
|
if moveresult and moveresult.touching_ground then
|
||||||
|
-- when touching ground, retain a minimal gravity to keep the touching_ground flag
|
||||||
|
-- but also to not get upwards acceleration with large dtime when on bouncy ground
|
||||||
|
new_acceleration = vector.new(0, self.fall_speed * 0.01, 0)
|
||||||
|
else
|
||||||
|
new_acceleration = vector.new(0, self.fall_speed, 0)
|
||||||
|
end
|
||||||
else
|
else
|
||||||
-- stop accelerating once max fall speed hit
|
-- stop accelerating once max fall speed hit
|
||||||
new_acceleration =vector.zero()
|
new_acceleration =vector.zero()
|
||||||
|
|
|
@ -72,18 +72,24 @@ local axolotl = {
|
||||||
fly = true,
|
fly = true,
|
||||||
fly_in = { "mcl_core:water_source", "mclx_core:river_water_source" },
|
fly_in = { "mcl_core:water_source", "mclx_core:river_water_source" },
|
||||||
breathes_in_water = true,
|
breathes_in_water = true,
|
||||||
jump = true,
|
jump = false, -- would get them out of the water too often
|
||||||
damage = 2,
|
damage = 2,
|
||||||
reach = 2,
|
reach = 2,
|
||||||
attack_type = "dogfight",
|
attack_type = "dogfight",
|
||||||
attack_animals = true,
|
attack_animals = true,
|
||||||
specific_attack = {
|
specific_attack = {
|
||||||
"extra_mobs_cod",
|
"mobs_mc:cod",
|
||||||
"extra_mobs_glow_squid",
|
"mobs_mc:glow_squid",
|
||||||
"extra_mobs_salmon",
|
"mobs_mc:salmon",
|
||||||
"extra_mobs_tropical_fish",
|
"mobs_mc:tropical_fish",
|
||||||
"mobs_mc_squid"
|
"mobs_mc:squid",
|
||||||
},
|
"mobs_mc:zombie", -- todo: only drowned?
|
||||||
|
"mobs_mc:baby_zombie",
|
||||||
|
"mobs_mc:husk",
|
||||||
|
"mobs_mc:baby_husk",
|
||||||
|
"mobs_mc:guardian_elder",
|
||||||
|
"mobs_mc:guardian",
|
||||||
|
},
|
||||||
runaway = true,
|
runaway = true,
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -5,9 +5,6 @@
|
||||||
--- Copyright (C) 2022 - 2023, Michieal. See License.txt
|
--- Copyright (C) 2022 - 2023, Michieal. See License.txt
|
||||||
|
|
||||||
-- CONSTS
|
-- CONSTS
|
||||||
local DOUBLE_DROP_CHANCE = 8
|
|
||||||
-- Used everywhere. Often this is just the name, but it makes sense to me as BAMBOO, because that's how I think of it...
|
|
||||||
-- "BAMBOO" goes here.
|
|
||||||
local BAMBOO = "mcl_bamboo:bamboo"
|
local BAMBOO = "mcl_bamboo:bamboo"
|
||||||
local BAMBOO_ENDCAP_NAME = "mcl_bamboo:bamboo_endcap"
|
local BAMBOO_ENDCAP_NAME = "mcl_bamboo:bamboo_endcap"
|
||||||
local BAMBOO_PLANK = BAMBOO .. "_plank"
|
local BAMBOO_PLANK = BAMBOO .. "_plank"
|
||||||
|
@ -16,7 +13,7 @@ local BAMBOO_PLANK = BAMBOO .. "_plank"
|
||||||
local modname = minetest.get_current_modname()
|
local modname = minetest.get_current_modname()
|
||||||
local S = minetest.get_translator(modname)
|
local S = minetest.get_translator(modname)
|
||||||
local node_sound = mcl_sounds.node_sound_wood_defaults()
|
local node_sound = mcl_sounds.node_sound_wood_defaults()
|
||||||
local pr = PseudoRandom((os.time() + 15766) * 12) -- switched from math.random() to PseudoRandom because the random wasn't very random.
|
local pr = PseudoRandom((os.time() + 15766) * 12)
|
||||||
|
|
||||||
local on_rotate
|
local on_rotate
|
||||||
if minetest.get_modpath("screwdriver") then
|
if minetest.get_modpath("screwdriver") then
|
||||||
|
@ -31,33 +28,7 @@ local bamboo_def = {
|
||||||
paramtype = "light",
|
paramtype = "light",
|
||||||
groups = {handy = 1, axey = 1, choppy = 1, dig_by_piston = 1, plant = 1, non_mycelium_plant = 1, flammable = 3},
|
groups = {handy = 1, axey = 1, choppy = 1, dig_by_piston = 1, plant = 1, non_mycelium_plant = 1, flammable = 3},
|
||||||
sounds = node_sound,
|
sounds = node_sound,
|
||||||
|
drop = BAMBOO,
|
||||||
drop = {
|
|
||||||
max_items = 1,
|
|
||||||
-- From the API:
|
|
||||||
-- max_items: Maximum number of item lists to drop.
|
|
||||||
-- The entries in 'items' are processed in order. For each:
|
|
||||||
-- Item filtering is applied, chance of drop is applied, if both are
|
|
||||||
-- successful the entire item list is dropped.
|
|
||||||
-- Entry processing continues until the number of dropped item lists
|
|
||||||
-- equals 'max_items'.
|
|
||||||
-- Therefore, entries should progress from low to high drop chance.
|
|
||||||
items = {
|
|
||||||
-- Examples:
|
|
||||||
{
|
|
||||||
-- 1 in DOUBLE_DROP_CHANCE chance of dropping.
|
|
||||||
-- Default rarity is '1'.
|
|
||||||
rarity = DOUBLE_DROP_CHANCE,
|
|
||||||
items = {BAMBOO .. " 2"},
|
|
||||||
},
|
|
||||||
{
|
|
||||||
-- 1 in 1 chance of dropping. (Note: this means that it will drop 100% of the time.)
|
|
||||||
-- Default rarity is '1'.
|
|
||||||
rarity = 1,
|
|
||||||
items = {BAMBOO},
|
|
||||||
},
|
|
||||||
},
|
|
||||||
},
|
|
||||||
|
|
||||||
inventory_image = "mcl_bamboo_bamboo_shoot.png",
|
inventory_image = "mcl_bamboo_bamboo_shoot.png",
|
||||||
wield_image = "mcl_bamboo_bamboo_shoot.png",
|
wield_image = "mcl_bamboo_bamboo_shoot.png",
|
||||||
|
@ -86,7 +57,6 @@ local bamboo_def = {
|
||||||
on_rotate = on_rotate,
|
on_rotate = on_rotate,
|
||||||
|
|
||||||
on_place = function(itemstack, placer, pointed_thing)
|
on_place = function(itemstack, placer, pointed_thing)
|
||||||
|
|
||||||
if not pointed_thing then
|
if not pointed_thing then
|
||||||
return itemstack
|
return itemstack
|
||||||
end
|
end
|
||||||
|
@ -241,9 +211,6 @@ local bamboo_def = {
|
||||||
if node_above and ((bamboo_node and bamboo_node > 0) or node_above.name == BAMBOO_ENDCAP_NAME) then
|
if node_above and ((bamboo_node and bamboo_node > 0) or node_above.name == BAMBOO_ENDCAP_NAME) then
|
||||||
minetest.remove_node(new_pos)
|
minetest.remove_node(new_pos)
|
||||||
minetest.sound_play(node_sound.dug, sound_params, true)
|
minetest.sound_play(node_sound.dug, sound_params, true)
|
||||||
if pr:next(1, DOUBLE_DROP_CHANCE) == 1 then
|
|
||||||
minetest.add_item(new_pos, istack)
|
|
||||||
end
|
|
||||||
minetest.add_item(new_pos, istack)
|
minetest.add_item(new_pos, istack)
|
||||||
end
|
end
|
||||||
end,
|
end,
|
||||||
|
|
|
@ -9,8 +9,6 @@ local SIDE_SCAFFOLDING = false
|
||||||
local SIDE_SCAFFOLD_NAME = "mcl_bamboo:scaffolding_horizontal"
|
local SIDE_SCAFFOLD_NAME = "mcl_bamboo:scaffolding_horizontal"
|
||||||
-- ---------------------------------------------------------------------------
|
-- ---------------------------------------------------------------------------
|
||||||
local SCAFFOLDING_NAME = "mcl_bamboo:scaffolding"
|
local SCAFFOLDING_NAME = "mcl_bamboo:scaffolding"
|
||||||
-- Used everywhere. Often this is just the name, but it makes sense to me as BAMBOO, because that's how I think of it...
|
|
||||||
-- "BAMBOO" goes here.
|
|
||||||
local BAMBOO = "mcl_bamboo:bamboo"
|
local BAMBOO = "mcl_bamboo:bamboo"
|
||||||
local BAMBOO_PLANK = BAMBOO .. "_plank"
|
local BAMBOO_PLANK = BAMBOO .. "_plank"
|
||||||
|
|
||||||
|
|
|
@ -7,8 +7,6 @@
|
||||||
|
|
||||||
-- LOCALS
|
-- LOCALS
|
||||||
local modname = minetest.get_current_modname()
|
local modname = minetest.get_current_modname()
|
||||||
-- Used everywhere. Often this is just the name, but it makes sense to me as BAMBOO, because that's how I think of it...
|
|
||||||
-- "BAMBOO" goes here.
|
|
||||||
local BAMBOO = "mcl_bamboo:bamboo"
|
local BAMBOO = "mcl_bamboo:bamboo"
|
||||||
|
|
||||||
mcl_bamboo = {}
|
mcl_bamboo = {}
|
||||||
|
|
|
@ -5,8 +5,6 @@
|
||||||
--- These are all of the fuel recipes and all of the crafting recipes, consolidated into one place.
|
--- These are all of the fuel recipes and all of the crafting recipes, consolidated into one place.
|
||||||
--- Copyright (C) 2022 - 2023, Michieal. See License.txt
|
--- Copyright (C) 2022 - 2023, Michieal. See License.txt
|
||||||
|
|
||||||
-- Used everywhere. Often this is just the name, but it makes sense to me as BAMBOO, because that's how I think of it...
|
|
||||||
-- "BAMBOO" goes here.
|
|
||||||
local BAMBOO = "mcl_bamboo:bamboo"
|
local BAMBOO = "mcl_bamboo:bamboo"
|
||||||
local BAMBOO_PLANK = BAMBOO .. "_plank"
|
local BAMBOO_PLANK = BAMBOO .. "_plank"
|
||||||
-- Craftings
|
-- Craftings
|
||||||
|
|
Loading…
Reference in New Issue