Page 1 of 1

[Mod] Jumping [GitHub] [jumping]

Posted: Wed Sep 05, 2012 16:04
by Jeija
Once again a simple mod:
Jumping adds trampolines and cushions to minetest.
Image

Cushion: You can't jump on it, causes no damage when falling on it.

Image

Trampoline: Makes you jump high, you can set its strength by punching it. Causes less damage when falling.
The strongest setting makes you jump even higher than you fell on it --> perpeduum mobile! :D

Crafting recipes: None yet, leave a comment here or on GitHub, I prefer pull requests.

Download
Most recent version from GitHub

License: GPLv3
Textures: WTFPL
Dependencies: none

Posted: Wed Sep 05, 2012 16:11
by Topywo
Jeija wrote: The strongest setting makes you jump even higher than you fell on it --> perpeduum mobile! :D
Jumping out of the map-limits?

Posted: Wed Sep 05, 2012 16:14
by Jeija
Topywo wrote: Jumping out of the map-limits?
That's not possible as the chunks cannot be loaded fast enough. You will smash your head at a chunk border! (And even if your computer is fast enough, it will be even more painful to smash your head at the map limit - OUCH!)

Posted: Wed Sep 05, 2012 19:14
by Mito551
trampoline:
WwW
s----s

W - wood
w - wool
s - stick

cushion:
www

w - wool

how about that?

Posted: Wed Sep 05, 2012 23:40
by VanessaE
Well, I drew the textures for the trampoline with metal legs, a suggestion of springs around the edges of the canvas, and some kind of cloth cover around the periphery, so maybe use this (and give two trampolines as the output):

Code: Select all

   [Steel]     [Black Wool]    [Steel]
[Purple Wool]       --      [Purple Wool]
   [Steel]          --         [Steel]
(I suggest purple because that's the trampoline's weakest setting)

For the cushion, three light blue (or just blue) wool in a line seems fine.

Posted: Sat Sep 15, 2012 12:13
by cornernote
+100 this is so fun!

Posted: Sat Sep 15, 2012 12:52
by cornernote
put one at full power on the ground, then put another one at full power about 10 blocks above it...

...enjoy

Posted: Sat Sep 15, 2012 15:17
by Calinou
cornernote wrote:put one at full power on the ground, then put another one at full power about 10 blocks above it...

...enjoy
That crashes the game and places you at weird coordinates. 8)

Posted: Sat Sep 15, 2012 16:28
by Bas080
Love it. Great for making dynamic levels/structures. Did notice that when you jump high enough the trampoline does damage you. I consider it a feature :P. Will check out your code to learn how to influence the inertia of the player. That would be great for the portals in the upcoming portal mod for which i made some textures. btw, Portal mod is looking for people who are willing to contribute their awesomeness...

Posted: Sat Sep 15, 2012 16:31
by Jordach
I like this mod very much, much easier than using ladders to clean my windows!

Posted: Fri Dec 14, 2012 03:32
by jojoa1997
The recipe could be
Wood. Leaves. Wood
Stick. Stick

Posted: Fri Dec 14, 2012 19:53
by qwrwed
There is a recipe already.

Posted: Sun Mar 17, 2013 01:58
by VanessaE
Jeija, I just noticed (six months later ;-) ) that all "strengths" of trampolines are in the creative inventory. Can you reduce this to just one of those? Seems a little redundant since you can punch one to set its strength.

Also, I'd like to suggest that on dig/pick-up, the returned item should be the lowest-strength one, to avoid inventory clutter.

Posted: Sun Mar 17, 2013 02:22
by Tedypig
This mod seems fun. I might make a parkor map with it.

Posted: Thu Apr 25, 2013 00:31
by 12Me21
I think a good crafting recipe would be:
trampoline:
steel wool steel
stick ____ stick

cushion:
wool wool wool

and instead of "wool:white" (or any other color) use "group:wool"

Re: [Mod] Jumping [GitHub] [jumping]

Posted: Fri Nov 04, 2016 20:24
by ParaklataChotou
Thank you jeija, I'll use this mod on my dropper in Adventure Park - in my server. I was using cobwebs, but... it's confusing for novice users. But now it'll be very simple. Thank you.

Re: [Mod] Jumping [GitHub] [jumping]

Posted: Mon Jan 22, 2018 03:13
by Brian Gaucher
I agree with VanessaE
Jeija, I just noticed (six months later ;-) ) that all "strengths" of trampolines are in the creative inventory. Can you reduce this to just one of those? Seems a little redundant since you can punch one to set its strength.

Also, I'd like to suggest that on dig/pick-up, the returned item should be the lowest-strength one, to avoid inventory clutter.
So I modified the code myself to achieve this.
The original code section

Code: Select all

for i = 1, 6 do
	minetest.register_node("jumping:trampoline"..i, {
		description = "Trampoline",
		drawtype = "nodebox",
		node_box = trampolinebox,
		selection_box = trampolinebox,
		paramtype = "light",
		on_punch = trampoline_punch,
		tiles = {
			"jumping_trampoline_top.png",
			"jumping_trampoline_bottom.png",
			"jumping_trampoline_sides.png^jumping_trampoline_sides_overlay"..i..".png"
		},
		groups = {dig_immediate=2, bouncy=20+i*20, fall_damage_add_percent=-70},
	})
end
Can now be replaced by

Code: Select all

local groups_value = function(i)
	if i == 1 then
		return {dig_immediate=2, bouncy=20+20, fall_damage_add_percent=-70}
	else
		return {dig_immediate=2, bouncy=20+i*20, fall_damage_add_percent=-70, not_in_creative_inventory = 1}
	end
end

for i = 1, 6 do
	minetest.register_node("jumping:trampoline"..i, {
		description = "Trampoline",
		drawtype = "nodebox",
		node_box = trampolinebox,
		selection_box = trampolinebox,
		paramtype = "light",
		on_punch = trampoline_punch,
		tiles = {
			"jumping_trampoline_top.png",
			"jumping_trampoline_bottom.png",
			"jumping_trampoline_sides.png^jumping_trampoline_sides_overlay"..i..".png"
		},
		groups = groups_value(i),
	})
end
I hope you could quickly add this, and if he doesn't, to the rest of you.
Feel free to do small swap in your init.lua and add this, This code no longer belongs to me.

Here is the whole file if you feel like directly changing them out.

Re: [Mod] Jumping [GitHub] [jumping]

Posted: Mon Jan 22, 2018 06:29
by bell07
I use the enhanced version by @octatican he already abadoned: https://github.com/bell07/minetest-jumping
This version does have already an adjustment for not_in_creative_inventory.
But @Jeija seems to gived the mod up too :-( https://github.com/Jeija/minetest-mod-jumping/pull/5

Re: [Mod] Jumping [GitHub] [jumping]

Posted: Wed May 27, 2020 09:14
by Merak
I would love a version of this which uses nodes from default so that texture packs could be used. It could use one of the bed models for trampoline and wool for cushion.