[Mod] Jumping [GitHub] [jumping]

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

[Mod] Jumping [GitHub] [jumping]

by Jeija » Wed Sep 05, 2012 16:04

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: 1720
Joined: Fri May 18, 2012 20:27

by Topywo » Wed Sep 05, 2012 16:11

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 » Wed Sep 05, 2012 16:14

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 » Wed Sep 05, 2012 19:14

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: 4318
Joined: Sun Apr 01, 2012 12:38
Location: Waynesville, NC
GitHub: VanessaE
IRC: VanessaE
In-game: VanessaE

by VanessaE » Wed Sep 05, 2012 23:40

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 (16-512px)
 

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

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

by cornernote » Sat Sep 15, 2012 12:52

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: 3145
Joined: Mon Aug 01, 2011 14:26
Location: Troyes, France
GitHub: Calinou
IRC: Calinou
In-game: Calinou

by Calinou » Sat Sep 15, 2012 15:17

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
Location: Netherlands
GitHub: bas080
IRC: bas080
In-game: bas080

by Bas080 » Sat Sep 15, 2012 16:28

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

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

by Jordach » Sat Sep 15, 2012 16:31

I like this mod very much, much easier than using ladders to clean my windows!
viewtopic.php?f=10&t=19056 Solar Plains Dev Server
 

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

by jojoa1997 » Fri Dec 14, 2012 03:32

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: 325
Joined: Sun Jul 22, 2012 20:56
In-game: qwrwed or Nitro
 

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

by VanessaE » Sun Mar 17, 2013 01:58

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 (16-512px)
 

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

by Tedypig » Sun Mar 17, 2013 02:22

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
Location: (Ignore all of my posts before 2018)
GitHub: 12Me21

by 12Me21 » Thu Apr 25, 2013 00:31

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 » Fri Nov 04, 2016 20:24

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: 25
Joined: Wed Jan 10, 2018 01:56
GitHub: BrianGaucher
In-game: Brian

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

by Brian Gaucher » Mon Jan 22, 2018 03:13

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 82 times
 

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

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

by bell07 » Mon Jan 22, 2018 06:29

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
 


Return to Mod Releases



Who is online

Users browsing this forum: No registered users and 3 guests