[Mod] More ways for nodes to fall. [falling_nodes]

User avatar
pithy
Member
 
Posts: 252
Joined: Wed Apr 13, 2016 17:34
GitHub: pithydon

[Mod] More ways for nodes to fall. [falling_nodes]

by pithy » Fri Oct 07, 2016 20:46

This mod adds some groups that can be added to the node definition of your nodes.
Last edited by pithy on Thu Dec 15, 2016 17:09, edited 2 times in total.
 

User avatar
azekill_DIABLO
Member
 
Posts: 3458
Joined: Wed Oct 29, 2014 20:05
GitHub: azekillDIABLO
In-game: azekill_DIABLO

Re: [mod] More ways for nodes to fall. [falling_nodes]

by azekill_DIABLO » Sat Oct 08, 2016 10:45

awesome.
Your phone or window isn't wide enough to display the code box. If it's a phone, try rotating it to landscape mode.
Code: Select all
Hi, my username is azekill_DIABLO and i'm an exelent bug-maker(yeah...i know...i have a bad reputation)

azekill_DIABLO said: Mineyoshi+ABJ+Baggins= TOPIC HIJACKED.
My Mods and Stuff | Voxellar | VoxBox on GITHUB | M.I.L.A Monster engine
WEIRD MODDING CONTEST !!!
 

User avatar
DS-minetest
Member
 
Posts: 707
Joined: Thu Jun 19, 2014 19:49
GitHub: DS-Minetest
In-game: DS

Re: [mod] More ways for nodes to fall. [falling_nodes]

by DS-minetest » Sun Oct 09, 2016 08:25

great idea
Do not call me -minetest.
Call me DS or DS-minetest.
I am German, so you don't have to pm me English if you are also German.
The background is a lie.
 

User avatar
taikedz
Member
 
Posts: 587
Joined: Sun May 15, 2016 11:11
GitHub: taikedz
IRC: DuCake
In-game: DuCake

Re: [mod] More ways for nodes to fall. [falling_nodes]

by taikedz » Sun Oct 09, 2016 16:05

pithy wrote:falling_kill_node "Will kill players if it lands on their heads."


https://github.com/pithydon/falling_nod ... it.lua#L89

Your phone or window isn't wide enough to display the code box. If it's a phone, try rotating it to landscape mode.
Code: Select all
   local objs = minetest.get_objects_inside_radius(pos, 1)


Won't this also kill any players it falls /past/ ? :-P

But, I like it :D
 

User avatar
pithy
Member
 
Posts: 252
Joined: Wed Apr 13, 2016 17:34
GitHub: pithydon

Re: [mod] More ways for nodes to fall. [falling_nodes]

by pithy » Sun Oct 09, 2016 19:13

taikedz wrote:https://github.com/pithydon/falling_nodes/blob/master/init.lua#L89

Your phone or window isn't wide enough to display the code box. If it's a phone, try rotating it to landscape mode.
Code: Select all
   local objs = minetest.get_objects_inside_radius(pos, 1)


Won't this also kill any players it falls /past/ ? :-P

Not in my tests.
 

Azazel
New member
 
Posts: 9
Joined: Sun Dec 13, 2015 18:44
In-game: Omallem

Re: [Mod] More ways for nodes to fall. [falling_nodes]

by Azazel » Mon Oct 10, 2016 18:22

How could you use this? I mean. How could apply this to a node, is I'm not a programmer but I like to get their hands on some mod that I use when I play.
 

User avatar
pithy
Member
 
Posts: 252
Joined: Wed Apr 13, 2016 17:34
GitHub: pithydon

Re: [Mod] More ways for nodes to fall. [falling_nodes]

by pithy » Mon Oct 10, 2016 23:07

Azazel wrote:How could you use this? I mean. How could apply this to a node, is I'm not a programmer but I like to get their hands on some mod that I use when I play.

You could ask the maintainer of the mod that has the node in question to support this.
The first post tells you how but it assumes you already know how to make a mod.
 

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

Re: [Mod] More ways for nodes to fall. [falling_nodes]

by Wuzzy » Tue Nov 15, 2016 19:00

This looks like a very useful general-purpose mod for me. Could be very useful to add a few new gameplay elements.

You should also define the required group ratings in the readme file, this is very important when defining any new groups. Also, do any of your groups interact with the default falling_node group? Or are they independent? Please write this relation down, too. Please. :-)

I would maybe add a variant of falling_kill_node which only damages the player on impact instead of killing directly. E.g. falling_damage_node=<damage>

Finally, I think a group for a node which falls when a player (Or even a mob??? But I think this is too complex) steps on it would be awesome. Especially for jump'n'runs. :-) Maybe with the group rating setting the delay in tenths of seconds, and the special value -1 for instant falling. Example: fall_on_step=30 means the node will fall 3 seconds after the player stepped on it.

EDIT: More group ideas:

- destroy_after_fall=1: Does not trigger falling itself, but when it hits the ground after falling, it will be destroyed (it disappears). Node must of course have any of the groups which can call trigger, otherwise this group will not do anything
- drop_after_fall=1: Similar to the above, but node will instead drop as an item on impact (like attached_node).

EDIT 2:
You might be interested in this mod (WIP): https://github.com/HybridDog/falling_extras

EDIT 3:
I found a bug (I guess …)!

If you place two falling_hanging_nodes below each other, the first one hanging from a normal node, and the second one hanging from the first falling_hanging_node, the nodes won't fall if you dig the normal node. I would expect both nodes to fall since the nodes collectively don't have anything to hang from.
I'm creating MineClone 2, a Minecraft clone for Minetest.
I made the Help modpack, adding in-game help to Minetest.
 

User avatar
pithy
Member
 
Posts: 252
Joined: Wed Apr 13, 2016 17:34
GitHub: pithydon

Re: [Mod] More ways for nodes to fall. [falling_nodes]

by pithy » Tue Nov 15, 2016 22:30

Wuzzy wrote:You should also define the required group ratings in the readme file, this is very important when defining any new groups.

I thought the standard was to set a group to 1 when not specified.

Wuzzy wrote:Also, do any of your groups interact with the default falling_node group? Or are they independent? Please write this relation down, too. Please. :-)

They are all independent but falling_kill_node needs another group to specify how the node should fall. Works with falling_node group to.

Wuzzy wrote:I would maybe add a variant of falling_kill_node which only damages the player on impact instead of killing directly. E.g. falling_damage_node=<damage>

I like that idea.

Wuzzy wrote:Finally, I think a group for a node which falls when a player (Or even a mob??? But I think this is too complex) steps on it would be awesome. Especially for jump'n'runs. :-) Maybe with the group rating setting the delay in tenths of seconds, and the special value -1 for instant falling. Example: fall_on_step=30 means the node will fall 3 seconds after the player stepped on it.


Maybe, or maybe it's too complex.

Wuzzy wrote:- destroy_after_fall=1: Does not trigger falling itself, but when it hits the ground after falling, it will be destroyed (it disappears). Node must of course have any of the groups which can call trigger, otherwise this group will not do anything
- drop_after_fall=1: Similar to the above, but node will instead drop as an item on impact (like attached_node).

I think I will fiddle with the other ideas first.

Wuzzy wrote:I found a bug (I guess …)!

If you place two falling_hanging_nodes below each other, the first one hanging from a normal node, and the second one hanging from the first falling_hanging_node, the nodes won't fall if you dig the normal node. I would expect both nodes to fall since the nodes collectively don't have anything to hang from.

I knew about that bug this hole time. I'm so bad.
I could make the code a little heavier to fix it for falling_hanging_node but fixing it for falling_sticky_node would be a mess.
 

User avatar
pithy
Member
 
Posts: 252
Joined: Wed Apr 13, 2016 17:34
GitHub: pithydon

Re: [Mod] More ways for nodes to fall. [falling_nodes]

by pithy » Wed Nov 16, 2016 16:39

Update: added group falling_damage_node. Thanks Wuzzy for the idea.
 

Diamond knight
Member
 
Posts: 262
Joined: Sun Apr 19, 2015 19:50
In-game: Diamondknight or diamond_knight

Re: [Mod] More ways for nodes to fall. [falling_nodes]

by Diamond knight » Fri Nov 18, 2016 22:38

this will be perfect for an idea i have had for a while

realistic physics, make every block in mt_game via overrides falling sticky node so no more anti gravity nodes :)

might post the mod soon
I can never get enough MESE!!!!!!!!!

my subgame: https://forum.minetest.net/viewtopic.php?f=50&t=11901
 


Return to Mod Releases

Who is online

Users browsing this forum: No registered users and 39 guests

cron