800 Commits

Author SHA1 Message Date
paramat
b80af1bc95 cherry-pick from github.com/minetest/minetest_game> Vessels: Improve code style 2016-05-28 08:57:47 +02:00
paramat
7a1b975f8f cherry-pick from github.com/minetest/minetest_game> Vessels: Make shelf open on 2 sides not impossible 4 sides
Make shelf facedir rotatable as is now required
2016-05-28 08:56:50 +02:00
Duane Robertson
68a9d8e338 cherry-pick from github.com/minetest/minetest_game> Doors: Fix uninitialized state variable 2016-05-28 08:56:09 +02:00
Thomas--S
168d9a2591 cherry-pick from github.com/minetest/minetest_game> Vessels: Smaller/improved textures, remove duplicated 'inv' textures
Removed unnecessary inventory textures
The drinking glass inventory texture now differs from
the node texture to be more clearly a drinking glass
Smaller textures to reduce size as nodes
2016-05-28 08:54:52 +02:00
red-001
91bb144fef cherry-pick from github.com/minetest/minetest_game> Creative: Reset 'start_i' to 1 when the inventory filter is changed 2016-05-28 08:52:52 +02:00
paramat
504961a0a2 cherry-pick from github.com/minetest/minetest_game> Tnt: Avoid divide-by-zero errors in calc_velocity() 2016-05-28 08:47:25 +02:00
tenplus1
32c5872bd1 cherry-pick from github.com/minetest/minetest_game> Creative: Fix inventory crash after toggling creative mode in-game 2016-05-28 08:46:13 +02:00
tenplus1
77873ddb9e cherry-pick from github.com/minetest/minetest_game> Creative: Fix '-' glitch in playername
Fix the glitch when players use the '-' character in their username
on a server, causing creative inventory to not pass page 2
2016-05-28 08:45:27 +02:00
tenplus1
5e84246526 cherry-pick from github.com/minetest/minetest_game> Creative: Add global variable creative.formspec_add
This pull adds a new global variable called creative.formspec_add
that will allow mods to add to the creative inventory screen
without the need to fork the mod altogether.  Simple solution
that works already for inventory_plus' BACK button
2016-05-28 08:44:28 +02:00
paramat
75a85b951e cherry-pick from github.com/minetest/minetest_game> Stairs/default: Make sandstone(brick) groups consistent
Sandstone is crumbly = 1 cracky = 3 to be slowly diggable by hand
Sandstonebrick(stair/slab) is cracky = 2
2016-05-28 08:42:57 +02:00
Foz
c47d026950 cherry-pick from github.com/minetest/minetest_game> Tnt: Fix bug in dropped item counting 2016-05-28 08:40:00 +02:00
tchncs
75aa611aa2 update submodule farming 2016-05-26 12:10:29 +02:00
tchncs
82a9d81e19 add xdecor to submodules 2016-05-25 23:03:30 +02:00
tchncs
881f4ac066 add hudbars to submodules 2016-05-25 23:01:38 +02:00
tchncs
c181117afb add darkage to submodules 2016-05-25 22:59:14 +02:00
tchncs
66c5683ccf add bags and plantlife to submodules 2016-05-25 22:56:32 +02:00
tchncs
907cb3be8c add 3d_armor to submodules 2016-05-25 22:52:40 +02:00
tchncs
82a31236be add worldedit to submodules 2016-05-25 22:03:46 +02:00
tchncs
92ee60e6c7 update submodule farming 2016-05-25 15:34:48 +02:00
tchncs
c8fc4cfb36 update submodules 2016-05-24 12:01:34 +02:00
tchncs
79e4ea3bf2 update submodules 2016-05-23 09:07:19 +02:00
tchncs
ad04e5ae0d update submodules 2016-05-22 23:33:14 +02:00
tchncs
8ef03465d1 update submodules 2016-05-22 23:05:42 +02:00
tchncs
f1ddb91275 update submodules 2016-05-22 22:43:37 +02:00
tchncs
3c9c69e5fe replace farming with submodule 2016-05-22 09:56:56 +02:00
tchncs
95adcfc97b update submodules mods/mobs_animal and mods/mobs_monster 2016-05-21 15:39:37 +02:00
tchncs
bb93133ceb replace submodule mods/mobs_animal 2016-05-20 12:39:21 +02:00
tchncs
8578d16b76 add alias for moretrees:slab_acacia_planks, fixes #4 2016-05-19 23:36:55 +02:00
tchncs
7ac7661de1 update submodule mods/illuna 2016-05-19 23:18:25 +02:00
tchncs
ac7e46b74d add mobs_redo, mobs_animal, mobs_monster to submodules 2016-05-18 12:28:04 +02:00
tchncs
018c89a9d6 update submodule illuna 2016-05-16 00:26:42 +02:00
tchncs
482573ca32 update/fix submodule death_messages 2016-05-15 21:35:10 +02:00
tchncs
f70c1e91b1 remove obsolet submodule death_messagem add new death_messages module 2016-05-15 21:28:52 +02:00
tchncs
25aff14341 add wine mod to submodules 2016-05-15 15:51:24 +02:00
tchncs
69f284f950 merge minetest/minetest_game master 2016-05-02 11:11:05 +02:00
tchncs
f4fc4294b7 fix mergeconflicts 2016-05-02 10:16:25 +02:00
rubenwardy
acafe5ca86 Add give_initial_items API 2016-05-01 19:29:15 +01:00
Auke Kok
12c763a6c7 TNT: Combine adjacent TNT into the explosion
This uses a vmanip to count adjacent tnt nodes and explodes them
all at once, using an inverse square law to recalculate the radius.
The maximum explosion becomes 125 nodes of tnt yielding a radius of
15 nodes, which does not break my machine and makes it return
in under a second.

This makes both bigger explosions and less stability issues.

The drop code has been simplified and now drops at all times a
reasonable amount of drops, never blanketing the area with drops,
even at the larges explosion level.

Particles are scaled up according to explosion size as well - a
bigger explosion will show bigger particles.

To scale the tnt:boom particle, we move it to the _effects() function.
2016-05-01 18:57:45 +01:00
Auke Kok
098ea0d10a TNT: Allow mods to override entity physics.
Introduces an `on_blast(luaobj, damage)` callback that mods can attach
to an entity def. The function will get called with the damage that
TNT would make.

The function should return three values:

  bool do_damage, bool do_knockback, table drops

do_damage allows the mod to tell the TNT code to perform damage on
the entity for the mod. The mod code should not do anything with
the entity HP. The entity should not be immortal. If false, then
the entity will not be damaged by the TNT mod.

do_knockback allows the mod to tell the TNT mod to perform an
entity knockback effect. If false, no knockback effect is applied
to the entity.

the drops table is a list of items to drop. It may be nil. E.g. {
"wool:red" }.

I've documented both on_blast() API methods in game_api.txt. It is
a better place than lua_api.txt.
2016-04-30 20:47:21 +01:00
Auke Kok
f14b411157 TNT: Fix multiple explosions erasing drops
Any second explosion near a first TNT explosion will punch all
entities found nearby, including item drops. This causes the
item pickup code to think the item was picked up, but by
a `nil` player, thus removing the item.

We query for the immortal entity group, and if the item is in
the immortal group, do not punch the item.
2016-04-30 20:47:21 +01:00
Foz
1a6298958e Default: Add function 'node_sound_gravel_defaults()' 2016-04-29 23:19:30 +01:00
paramat
fafbe2c268 Default: New grass and grass_side textures
Derived from Casimir's Voxelgarden texture
2016-04-29 23:19:30 +01:00
tenplus1
dc7cbdd5ab Beds: Quicker saves with tidy output
Tweaked the beds.save_spawns() function to compile list then output
to file with shortened co-ordinates containing 1 decimal place
2016-04-29 23:18:05 +01:00
Auke Kok
5cd4b5a231 TNT: make tnt:boom visual a particle, and larger
We reuse the tnt:boom texture for a particle that is added by the
on_construct() of tnt:boom, and has a short expiry time (0.2sec).
It is 3 nodes larged, centered on the explosion.

We then make tnt:boom airlike so it doesn't have a texture, and it's
the thing that emits lots of light (we could even make it exist a
bit longer).

The nice thing about particles is that the client is less susceptible
to lag and will always remove them as fast as possible, so this makes
the visual more constant and responsive.
2016-04-26 22:34:00 +01:00
Auke Kok
f62afa02b7 TNT: lower smoke particle count and speed.
The effect is similar, and the reduction in particles is a small
boost in responsiveness.

To compensate, I've lowered the spawner time and expiration length
as well.
2016-04-26 22:34:00 +01:00
Auke Kok
7a892c70e6 TNT: self-start boom removal timer. 2016-04-26 22:34:00 +01:00
Auke Kok
682d79b82a TNT: make tnt:burning a falling node.
This allows TNT to be used for e.g. traps (drop it from the
ceiling) or weird tnt effects with other explosions.
2016-04-26 22:34:00 +01:00
Auke Kok
8b384fb257 TNT: randomly vary ejecting velocity
We add a +/- 0.5 random value to the velocity vector of
ejecting nodes.

I've spotted a lot of nodes going exactly straight up if blowing
up sand above TNT. The extra variation looks less artificial.
2016-04-26 22:34:00 +01:00
Auke Kok
d6c33da355 TNT: Damage mobs, knock back players
We apply punch damage to mobs caught in the blast radius, as
this code previously only hurt players.

We "move" players back 1 node if they're caught in the blast, and
slightly up. We can't "eject" players due to missing API code to
support that, unfortunately.
2016-04-26 22:33:59 +01:00
Auke Kok
386dcdef06 TNT: Whitespace cleanup 2016-04-26 22:33:59 +01:00