Commit Graph

92 Commits (0c2ee1e41d71899f0d5e1da603a6d125a7cda9e9)

Author SHA1 Message Date
nixnoxus 0c2ee1e41d
Deduplicate player action logging, silence fake player actions (#2941) 2022-05-06 20:04:55 +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
SmallJoker 8bc93598c6 Papyrus, cactus: Require light level 13 for growth 2017-01-02 18:30:05 +00:00
paramat 12b1541971 Sounds: Edit some sound gains, mostly footsteps
I recently made glass footstep and dig gains too low, raise slightly.
Change dirt dug gain from above-maximum 1.5 to maximum 1.0.
Reduce gain of footsteps: stone, dirt, gravel, wood, metal
Raise gain of leaves footstep.
2016-12-17 20:02:40 +00:00
paramat 55a16cd2c6 Default: Add missing 'default_dig_snappy' sound
Some nodes with the snappy group (wool, glass pane, seeds) were missing
sound when dug with a sword.
Adding the sound causes it to be used for glass pane, so define a 'dig'
sound in the 'node sound glass defaults' table, use the footstep sound.
Adding the sound also causes it to be used for seeds which deliberately
have no dig sound, so add an empty sound override for seed dig.

Reduce the gain of the glass footstep sound which was excessively loud.

Add some freesound members to license.txt.
2016-12-13 03:15:30 +00:00
Napiophelios 0413cb67b8 Add Cobble Walls to Moss Growth ABM 2016-12-01 12:59:25 +01:00
paramat 09a229b412 Update 'nodeupdate()' to 'check_for_falling()' API 2016-11-22 05:55:36 +00:00
paramat ec95f47021 Default: Add water footstep sounds
Plus one silent sound to break repetition 'default_water_footstep.4.ogg'.
2016-11-21 03:19:37 +00:00
paramat c3f3406e8e Default: Add 'group:cools_lava' for lavacooling by snowblock and ice
Make lava cooling ABM use a new group 'group:cools_lava'.
Nodes other than water can cool lava. We assume snowblock and ice melt,
turn to water and cool lava.
Leave 'group:water' present temporarily to not break mod liquids.
2016-11-18 08:09:45 +00:00
Auke Kok fa9a34554b Default: Add metal sound table function and metal sounds 2016-10-25 02:34:39 +01:00
paramat 3d26b33e5b Default: Add coral nodes and death ABM
Original code by Sofar.
Textures by Pithydon.
Exposure to air converts live coral to coral skeleton.
Live corals drop coral skeleton.
2016-10-12 23:55:46 +01:00
paramat 1906ab84f5 Default/functions: Tune speed of grass spread ABM
Through testing the chance is changed to 50 such that grass spread
speed matches that of the previous (0.4.13) ABM version.
2016-10-05 22:24:02 +01:00