Its a small world... help requested
Posted: Mon Aug 03, 2020 05:55
Hi, I m trying to revive this idea:
viewtopic.php?f=49&t=22602
I have scaled the player model, physics, the eyeheight, the collisionbox, prevented fall damage somewhat, etc
I would like help scaling other things. If you know a way to do any of these things, please post. And yes, as it says in the old forum, The goal is to increase node density in order to have more detail in the world.
I am calling the game that will be made from it, "Its a Small World"
----
Its my impression that most, if not all of these problems have a solution, the trick is finding and implementing.
I do not know how to add "reach" to the player's tools. Currently the player cannot touch his toes, (or the blocks under them). How do I give the player more reach?
I saw that in the default:creative mod,
here, the hand is given a larger range
Unfortunately, overriding the hand doesnt seem to work. Here is my modified version of init.lua on the player api mod:
it doesnt seem to work though. Any suggestions?
Ok, another thing is trees. how do I make them taller, and wider. I don't have any experience there, so help is much appreciated.
viewtopic.php?f=49&t=22602
I have scaled the player model, physics, the eyeheight, the collisionbox, prevented fall damage somewhat, etc
I would like help scaling other things. If you know a way to do any of these things, please post. And yes, as it says in the old forum, The goal is to increase node density in order to have more detail in the world.
I am calling the game that will be made from it, "Its a Small World"
----
Its my impression that most, if not all of these problems have a solution, the trick is finding and implementing.
I do not know how to add "reach" to the player's tools. Currently the player cannot touch his toes, (or the blocks under them). How do I give the player more reach?
I saw that in the default:creative mod,
Code: Select all
minetest.override_item("", {
range = 60,
tool_capabilities = {
full_punch_interval = 0.5,
max_drop_level = 3,
groupcaps = {
crumbly = caps,
cracky = caps,
snappy = caps,
choppy = caps,
oddly_breakable_by_hand = caps,
-- dig_immediate group doesn't use value 1. Value 3 is instant dig
dig_immediate =
{times = {[2] = digtime, [3] = 0}, uses = 0, maxlevel = 256},
},
damage_groups = {fleshy = 10},
}
})
end
Unfortunately, overriding the hand doesnt seem to work. Here is my modified version of init.lua on the player api mod:
Code: Select all
-- player/init.lua
dofile(minetest.get_modpath("player_api") .. "/api.lua")
-- Default player appearance
player_api.register_model("character.b3d", {
animation_speed = 30,
textures = {"character.png", },
animations = {
-- Standard animations.
stand = {x = 0, y = 79},
lay = {x = 162, y = 166},
walk = {x = 168, y = 187},
mine = {x = 189, y = 198},
walk_mine = {x = 200, y = 219},
sit = {x = 81, y = 160},
},
collisionbox = {-0.9, 0.0, -0.9, 0.9, 5.1, 0.9},
stepheight = 1.8,
eye_height = 4.5,
})
-- Update appearance when the player joins
minetest.register_on_joinplayer(function(player)
player_api.player_attached[player:get_player_name()] = false
player_api.set_model(player, "character.b3d")
player:set_local_animation(
{x = 0, y = 79},
{x = 168, y = 187},
{x = 189, y = 198},
{x = 200, y = 219},
30
)
player:set_physics_override({
jump = 1.8,
})
end)
-------------------
-- decrease default fall damage for the increased physics
local fall_damage_scalar = 1/3
minetest.register_on_player_hpchange(function(player, hp_change, reason)
if reason.type == "fall" then
local hp = hp_change * fall_damage_scalar
if hp < 1.4 then
return 0
else
return hp
end
else
return hp_change
end
end, true)
-- increase hand range
minetest.override_item("", {
range = 20,
})
Ok, another thing is trees. how do I make them taller, and wider. I don't have any experience there, so help is much appreciated.