1
0
mirror of https://github.com/minetest/minetest_game.git synced 2024-11-16 15:00:18 +01:00
Commit Graph

102 Commits

Author SHA1 Message Date
nixnoxus
4e11628982 intuitive order of arguments for default.log_player_action() 2022-04-21 14:03:31 +02:00
nixnoxus
90591c5a49 change enable_non_player_action_log to log_non_player_actions 2022-04-21 12:43:24 +02:00
nixnoxus
a6557f7e3b
Update mods/default/functions.lua
Co-authored-by: sfan5 <sfan5@live.de>
2022-04-21 12:27:39 +02:00
nixnoxus
e7341d005f rename default.log_action to default.log_player_action 2022-04-04 20:32:03 +02:00
nixnoxus
0f0d607305 fix typo in comment 2022-04-04 20:10:24 +02:00
nixnoxus
9e06bff2db log functions are now officially documented 2022-04-03 00:01:51 +02:00
nixnoxus
eb162e6c29 appgurueu's comments implemented 2022-04-02 11:29:44 +02:00
nixnoxus
e5a1343048 add setting enable_non_player_action_log 2022-04-02 07:08:01 +02:00
nixnoxus
8b8c693edd add default.set_inventory_action_loggers function 2022-04-02 04:46:38 +02:00
nixnoxus
9d171b268c fix typo 2022-03-31 10:28:06 +02:00
nixnoxus
876a2f7cef add default.log_action function 2022-03-30 23:57:08 +02:00
paramat
0c1252bcf5 Balance sounds, remove silent water footstep 2022-01-23 18:07:59 +01:00
sfan5
08b13c9efb Fix deprecated alpha / use_texture_alpha use 2021-02-07 11:48:05 +01:00
An0n3m0us
befed5525a
Replace some sounds with new sounds (#2605) 2020-08-29 01:16:36 +01:00
SmallJoker
1da168b3c3
Craftguide: Fix error caused by removing invalid recipes (#2732) 2020-08-23 14:35:12 +02:00
An0n3m0us
686fdb5c06
Add different woods to mese posts (#2599) 2020-08-16 13:21:22 +02:00
Paramat
b2d0f0ac8d
Update nodes papyrus can grow on, include default:dry_dirt (#2705)
Fixes papyrus not growing on savanna dirt.
Also updates the nodes papyrus can grow on, which were incorrect for a long time.
2020-06-21 23:24:56 +01:00
Paramat
e8a7e75319
Make dry grass spread on default:dirt again (#2687) 2020-06-16 20:42:45 +01:00
sfan5
84da00acd4
Add node particles when leafdecay removes a node (#2686) 2020-05-25 15:56:23 +02:00
sfan5
d3e26dba18 Convert minetest.sound_play uses to ephemeral 2020-02-05 22:24:23 +01:00
Lejo
beb0aefa2d Make can_interact_with_node() check for key group instead of default:key 2020-01-06 21:16:33 +00:00
Thomas--S
1940961d63 Move duplicate recipe from books to default.register_craft_metadata_copy()
This allows mods to easily implement the same behaviour, e.g. for letters.
2020-01-04 00:09:58 +00:00
Alex Yst
c800398593 Always disable leafdecay for player-placed leaves, even when 'sneaking'
Avoids player-placed leaves decaying when building while sneaking, which is common.
2019-09-28 21:10:26 +01:00
leucome
00f9287075 Leafdecay: Use param2 ~= 1 instead of param2 == 0 2019-09-19 02:13:18 +01:00
mbartlett21
c42a525ce8 Add option for non-jumpable fences and walls
Add an option, default disabled, to extend the collision boxes upwards.
2019-09-16 21:38:02 +01:00
coil
3a3f71aa50 Verify object is player before checking privs (#2448)
This prevents a crash when a 'nil' digger is passed by the engine to
minetest.node_dig.
2019-08-19 19:24:19 +02:00
TumeniNodes
c32b8adaa3 Add 'dry dirt' and 'dry dirt with dry grass' nodes for savanna biome 2019-07-26 17:50:44 +01:00
acmgit
61bfac0fa2 Prevent potential crash caused by moss growth ABM 2019-06-02 18:50:20 +01:00
HybridDog
0291c6b210 Moss growth ABM: Add inner and outer cobble stairs, simplify code 2019-04-06 21:35:48 +01:00
TumeniNodes
f583d90c94 Fence rails: Allow connections to walls 2018-10-11 19:31:35 +01:00
Paramat
24900f7da5
Fence rail: Only connect to fences. Update map mod README recipe
Fence rail: Only connect to 'group:fence'.
Update map mod README crafting recipe documentation.
2018-09-25 19:42:19 +01:00
Paramat
ef7bd43829
Remove coral air-death ABM 2018-07-10 03:51:41 +01:00
TumeniNodes
7e1b07fddd Add fence rails
Dedicated fence rail textures coming in a follow-up PR.
2018-07-07 19:03:33 +01:00
paramat
8f85ca57f3 Intersects_protection(): Remove from Minetest Game
Add compatibility code with deprecation warning.
2018-02-03 03:46:13 +00:00
DTA7
a2d7678ffd Add nil checks for placer 2017-11-15 23:16:28 +00:00
paramat
3f14d1012d Footstep sounds: 5 new sounds
Original recording by Ryding.
http://freesound.org/people/Ryding/
Found by Anth0rx, edited by paramat.

Add and use 'default.node_sound_snow_defaults()' function.
2017-10-24 04:21:34 +01:00
Hybrid Dog
f928780946 Register fence: Allow setting nodedefs to 'false' 2017-08-18 18:46:44 +01:00
paramat
7ffd176f48 Lava cooling: Increase interval to 2
An excessive load has been reported caused by the node searching, so even
when no lava is present.
2017-08-01 03:57:10 +01:00
vorunbekannt75@web.de
626cd8e9c7 Default: Revert "Default: Shorter and better ABMs"
This reverts commit e523c3a296 to re-enable
the overriding and redefinition of these global functions.
2017-06-08 10:35:54 +01:00
paramat
eec1c5a03b Settings: Use new settings object 2017-05-24 07:18:26 +01:00
theFox6
e523c3a296 Default: Shorter and better ABMs (#1739)
Action of some abm's call functions directly, instead of calling the function inside a function.
2017-05-20 14:32:52 +02:00
Ezhh
08706313f4 Add option to disable lavacooling (#1726) 2017-05-07 18:25:53 +02:00
paramat
9e4f0d3689 Leafdecay: Do not restart aready running timers 2017-04-11 03:57:07 +01:00
Thomas--S
6a55e150af Doors: Fix wood/glass doors not opening or closing
Some code was lost during a rebase of a recently merged commit (73e4666).
2017-03-19 00:43:12 +00:00
octacian
07e11427cf Keys: Fix crash when using unconfigured default:key
Since meta secret field is blank on any keys (default:key) obtained using
/give, the game will crash if you attempt to use one of these. This follows
along the principle that the game should never have any reason to crash.
2017-03-17 05:50:50 +00:00
SmallJoker
b87ef5ccde Keys: Update default.can_interact_with_node to new item meta
Completes a forgotten update in 9d3a526
2017-03-12 12:20:31 -07:00
paramat
d5f1f964e3 Lavacooling: Return to chance = 2
Return to previous parameters interval = 1, chance = 2.
Compensates for the increase in default active block radius.
Large amounts of lava cooling at once is known to overload sound
creation, producing error messages.
2017-02-25 03:52:26 +00:00
MarkuBu
60e5b299af Leafdecay: Node timer based implementation, API
This implements a node-timer based leafdecay mechanism, and exposes
an API to use it in mods.

The API is documented in game_api.txt.

`default.register_leafdecay(leafdecaydef)`

`leafdecaydef` is a table, with following members:
{
	trunks = { "default:tree"}, -- nodes considered trunks
	leaves = { "default:leaves", "default:apple"}, -- nodes considered leaves
	radius = 3, -- activates leafdecay this far from the trunk
}

The algorithm will drop `leaves` items in the area if no `trunks` are found
in the `trunk_radius` sized area around the position of the leaf. If a node
listed in `leaves` has a group `leafdecay_drop > 0`, then the item is dropped,
otherwise the item is removed but not dropped.

The algorithm also implements a value `default.leafdecay_speed` (default
15) which can be modified to increase or decrease of the leaf decay. The
algorithm will vary the actual speed a bit to introduce randomness.

Leaf decay is randomized by 0.1 seconds to reduce the chance that
decay happens many times on the same second interval. This requires
nodetimer_interval to be set to values lower than 1.0 to have an
effect.

The leaves will decay between 2 and 10 seconds after digging the trunk,
and happen at non-integer second intervals.

-- The API was added by sofar.
2017-02-25 03:50:15 +00:00
Thomas--S
37dd910747 Globalize, rename and change the behaviour of has_locked_chest_privilege
* rename to default.can_interact_with_node()
* pass pos instead of meta
* change order of arguments
2017-02-21 10:17:12 -08:00
paramat
ae426878d4 Sounds: Remove 'default_dig_crumbly' from leaves defaults table
Now that the missing 'default_dig_snappy' sound has been added we can
remove the dirt dig sound from the table. All nodes that use the
leaves defaults table have group 'snappy' so 'default_dig_snappy' now
becomes their default dig sound.
2017-01-22 07:47:04 +00:00