[Mod] More features for falling nodes [falling_extras]

Post Reply
User avatar
Hybrid Dog
Member
Posts: 2771
Joined: Thu Nov 01, 2012 12:46
GitHub: HybridDog

[Mod] More features for falling nodes [falling_extras]

by Hybrid Dog » Post

This mod adds following features to falling nodes:
  • When sand, gravel, etc. touch the ground after falling, the "dug" (or "drop" if specified) sound is played. The volume of the sound depends on the falling velocity.
  • Falling nodes "make footstep sounds", i.e. sand falling into water makes splashing sounds.
  • The movement_gravity setting affects the falling direction, so it is possible to let e.g. gravel fall upwards.
  • Falling nodes hurt players.
  • Walkable nodes which should not be removed (example: walkable chest nodes) might be preserved; this needs testing. A falling sand which falls into a filled walkable chest must not remove this chest and its contents.
Note that I have not updated the copied code to the newest builtin falling code for a long time, so original falling features might be outdated.

License: WTFPL, except copied code
Download: zip, tar.gz
github: falling_extras

Here is a picture where negative gravity makes desert sand fall upwards:
Image
Image by Wuzzy, there are more.

If you got ideas or found bugs, please tell them to me.

How to install a mod?
Attachments
wuzzy_screenie.jpg
(241.53 KiB) Not downloaded yet
Last edited by Hybrid Dog on Sun Jan 26, 2020 16:03, edited 9 times in total.

‮‪‮
‮‪‮
‮‪‮
‮‪‮
‮‪‮
‮‪‮
‮‪‮
‮‪‮
‮‪

User avatar
Evergreen
Member
Posts: 2135
Joined: Sun Jan 06, 2013 01:22
GitHub: 4Evergreen4
IRC: EvergreenTree
In-game: Evergreen
Location: A forest in the midwest
Contact:

Re: [Mod] falling sand, gravel,… sounds [falling_extras]

by Evergreen » Post

Happy 1000th post! Also, interesting idea.
Back from the dead!

User avatar
Hybrid Dog
Member
Posts: 2771
Joined: Thu Nov 01, 2012 12:46
GitHub: HybridDog

Re: [Mod] falling sand, gravel,… sounds [falling_extras]

by Hybrid Dog » Post

Evergreen wrote:Happy 1000th post!
lt's my second 1000th post, some time ago the removed posts stopped being counted as post.
Also, interesting idea.
thanks

‮‪‮
‮‪‮
‮‪‮
‮‪‮
‮‪‮
‮‪‮
‮‪‮
‮‪‮
‮‪

User avatar
Wuzzy
Member
Posts: 4082
Joined: Mon Sep 24, 2012 15:01
GitHub: Wuzzy2
IRC: Wuzzy
In-game: Wuzzy

Re: [Mod] falling sand, gravel,… sounds [falling_extras]

by Wuzzy » Post

This mod is nice and well made. IMO it should become part of builtin, this is stuff which basically every subgame wants.
I had some fun with negative gravity and made deserts vanish hrhrhr. :D
I posted screenshots here: viewtopic.php?f=3&t=156&p=179653#p179653

I have one minor suggestion: Introduce an “unofficial” sound name: drop. If a node has the drop sound defined, play this sound when it hits the ground. If this sound is not defined, you can always fall back to the default sound.

User avatar
Hybrid Dog
Member
Posts: 2771
Joined: Thu Nov 01, 2012 12:46
GitHub: HybridDog

Re: [Mod] falling sand, gravel,… sounds [falling_extras]

by Hybrid Dog » Post

Wuzzy wrote:I have one minor suggestion: Introduce an “unofficial” sound name: drop. If a node has the drop sound defined, play this sound when it hits the ground. If this sound is not defined, you can always fall back to the default sound.
https://github.com/HybridDog/falling_ex ... c8e2bedbd0

‮‪‮
‮‪‮
‮‪‮
‮‪‮
‮‪‮
‮‪‮
‮‪‮
‮‪‮
‮‪

Post Reply

Who is online

Users browsing this forum: No registered users and 4 guests