[Mod] Jumping [GitHub] [jumping]

Post Reply
User avatar
Jeija
Member
Posts: 686
Joined: Fri Dec 23, 2011 21:46
Location: Nürtingen, Germany

[Mod] Jumping [GitHub] [jumping]

by Jeija » Post

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
Last edited by Jeija on Sat Jan 26, 2013 21:58, edited 1 time in total.
Redstone for minetest: Mesecons (mesecons.net)

User avatar
Topywo
Member
Posts: 1721
Joined: Fri May 18, 2012 20:27

by Topywo » Post

Jeija wrote: The strongest setting makes you jump even higher than you fell on it --> perpeduum mobile! :D
Jumping out of the map-limits?

User avatar
Jeija
Member
Posts: 686
Joined: Fri Dec 23, 2011 21:46
Location: Nürtingen, Germany

by Jeija » Post

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!)
Last edited by Jeija on Wed Sep 05, 2012 16:15, edited 1 time in total.
Redstone for minetest: Mesecons (mesecons.net)

User avatar
Mito551
Member
Posts: 1271
Joined: Sat Jun 16, 2012 15:03

by Mito551 » Post

trampoline:
WwW
s----s

W - wood
w - wool
s - stick

cushion:
www

w - wool

how about that?
Last edited by Mito551 on Wed Sep 05, 2012 19:15, edited 1 time in total.

User avatar
VanessaE
Moderator
Posts: 4655
Joined: Sun Apr 01, 2012 12:38
GitHub: VanessaE
IRC: VanessaE
In-game: VanessaE
Location: Western NC
Contact:

by VanessaE » Post

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.
You might like some of my stuff: Plantlife ~ More Trees ~ Home Decor ~ Pipeworks ~ HDX Textures (64-512px)

cornernote
Member
Posts: 844
Joined: Wed Jul 11, 2012 15:02

by cornernote » Post

+100 this is so fun!

cornernote
Member
Posts: 844
Joined: Wed Jul 11, 2012 15:02

by cornernote » Post

put one at full power on the ground, then put another one at full power about 10 blocks above it...

...enjoy

User avatar
Calinou
Moderator
Posts: 3169
Joined: Mon Aug 01, 2011 14:26
GitHub: Calinou
IRC: Calinou
In-game: Calinou
Location: Troyes, France
Contact:

by Calinou » Post

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)

User avatar
Bas080
Member
Posts: 398
Joined: Mon May 21, 2012 15:54
GitHub: bas080
IRC: bas080
In-game: bas080
Location: Netherlands

by Bas080 » Post

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...

Jordach
Member
Posts: 4534
Joined: Mon Oct 03, 2011 17:58
GitHub: Jordach
IRC: Jordach
In-game: Jordach
Location: Blender Scene

by Jordach » Post

I like this mod very much, much easier than using ladders to clean my windows!

User avatar
jojoa1997
Member
Posts: 2890
Joined: Thu Dec 13, 2012 05:11
Location: Earth

by jojoa1997 » Post

The recipe could be
Wood. Leaves. Wood
Stick. Stick
Coding;
1X coding
3X debugging
12X tweaking to be just right

User avatar
qwrwed
Member
Posts: 326
Joined: Sun Jul 22, 2012 20:56
In-game: qwrwed or Nitro

by qwrwed » Post

There is a recipe already.

User avatar
VanessaE
Moderator
Posts: 4655
Joined: Sun Apr 01, 2012 12:38
GitHub: VanessaE
IRC: VanessaE
In-game: VanessaE
Location: Western NC
Contact:

by VanessaE » Post

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.
You might like some of my stuff: Plantlife ~ More Trees ~ Home Decor ~ Pipeworks ~ HDX Textures (64-512px)

User avatar
Tedypig
Member
Posts: 286
Joined: Tue Mar 05, 2013 12:33
IRC: Piggybear87
In-game: Piggybear
Location: Largo, FL, USA

by Tedypig » Post

This mod seems fun. I might make a parkor map with it.
01010100 01100101 01100100 01111001 01110000 01101001 01100111

User avatar
12Me21
Member
Posts: 873
Joined: Tue Mar 05, 2013 00:36
GitHub: 12Me21
Location: (Ignore all of my posts before 2018)

by 12Me21 » Post

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"
Shoutouts to Simpleflips

User avatar
ParaklataChotou
Member
Posts: 209
Joined: Sat Jun 18, 2016 17:09
GitHub: paraklatachotou
IRC: CareBearWhoCares
In-game: AutistCortana

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

by ParaklataChotou » Post

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.
Visit my server: freextress.ddnsking.com 30002 . mobs, npcs, interesting places, pvp.

Brian Gaucher
Member
Posts: 77
Joined: Wed Jan 10, 2018 01:56
GitHub: BrianGaucher
In-game: Camasia

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

by Brian Gaucher » Post

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.
Attachments
init.lua.tar.gz
New code
(749 Bytes) Downloaded 194 times
Current projects: Making a CTF map, Learning C++, Learning Programmer's Dvorak

bell07
Member
Posts: 604
Joined: Sun Sep 04, 2016 15:15
GitHub: bell07

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

by bell07 » Post

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

Merak
Member
Posts: 116
Joined: Sat Nov 05, 2016 20:34

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

by Merak » Post

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.

Post Reply

Who is online

Users browsing this forum: Ahrefs [Bot], Google [Bot] and 3 guests