[Mod] Jumping [GitHub] [jumping]
[Mod] Jumping [GitHub] [jumping]
Once again a simple mod:
Jumping adds trampolines and cushions to minetest.
Cushion: You can't jump on it, causes no damage when falling on it.
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!
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
Jumping adds trampolines and cushions to minetest.
Cushion: You can't jump on it, causes no damage when falling on it.
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!
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.
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!)Topywo wrote: Jumping out of the map-limits?
Last edited by Jeija on Wed Sep 05, 2012 16:15, edited 1 time in total.
trampoline:
WwW
s----s
W - wood
w - wool
s - stick
cushion:
www
w - wool
how about that?
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.
- VanessaE
- Moderator
- Posts: 4655
- Joined: Sun Apr 01, 2012 12:38
- GitHub: VanessaE
- IRC: VanessaE
- In-game: VanessaE
- Location: Western NC
- Contact:
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):
(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.
Code: Select all
[Steel] [Black Wool] [Steel]
[Purple Wool] -- [Purple Wool]
[Steel] -- [Steel]
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)
-
- Member
- Posts: 844
- Joined: Wed Jul 11, 2012 15:02
-
- Member
- Posts: 844
- Joined: Wed Jul 11, 2012 15:02
- Bas080
- Member
- Posts: 398
- Joined: Mon May 21, 2012 15:54
- GitHub: bas080
- IRC: bas080
- In-game: bas080
- Location: Netherlands
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 . 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...
- VanessaE
- Moderator
- Posts: 4655
- Joined: Sun Apr 01, 2012 12:38
- GitHub: VanessaE
- IRC: VanessaE
- In-game: VanessaE
- Location: Western NC
- Contact:
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.
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)
- ParaklataChotou
- Member
- Posts: 209
- Joined: Sat Jun 18, 2016 17:09
- GitHub: paraklatachotou
- IRC: CareBearWhoCares
- In-game: AutistCortana
Re: [Mod] Jumping [GitHub] [jumping]
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.
-
- Member
- Posts: 77
- Joined: Wed Jan 10, 2018 01:56
- GitHub: BrianGaucher
- In-game: Camasia
Re: [Mod] Jumping [GitHub] [jumping]
I agree with VanessaE
The original code section
Can now be replaced by
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.
So I modified the code myself to achieve this.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.
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
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
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
Re: [Mod] Jumping [GitHub] [jumping]
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
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]
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.
Who is online
Users browsing this forum: No registered users and 29 guests