oweals/minetest_game.git
7 years agoPlayer model: Remove vertical stretch of body and limbs, remove cape
paramat [Fri, 27 Oct 2017 07:28:22 +0000 (08:28 +0100)]
Player model: Remove vertical stretch of body and limbs, remove cape

Previously, body and limbs were stretched vertically by 1.125, creating
rectangular pixels on side faces. Head was unstretched.
Remove stretch of body and limbs, leaving the head unchanged.
No other change would excessively shorten the model, so also scale up
the model slightly, by * 1.05, such that the reduction factor for height is
equal to the increasing factor for width. This minimises the changes to
height and width.

Remove cape support.

Update the collisionbox to match.

Add missing license.txt.

7 years agoAdd loot to dungeons (#1921)
sfan5 [Fri, 27 Oct 2017 11:34:41 +0000 (13:34 +0200)]
Add loot to dungeons (#1921)

7 years agoBinoculars / Map mods: Clarify key-activation of items in descriptions
paramat [Tue, 24 Oct 2017 03:51:53 +0000 (04:51 +0100)]
Binoculars / Map mods: Clarify key-activation of items in descriptions

Map mod:
Tune cyclic update interval.
Re-add HUD flags update on item 'use'.

7 years agoFootstep sounds: 5 new sounds
paramat [Sat, 21 Oct 2017 06:01:23 +0000 (07:01 +0100)]
Footstep sounds: 5 new sounds

Original recording by Ryding.
http://freesound.org/people/Ryding/
Found by Anth0rx, edited by paramat.

Add and use 'default.node_sound_snow_defaults()' function.

7 years agoBooks: Convert \r to \n
Coder12a [Mon, 16 Oct 2017 02:09:26 +0000 (19:09 -0700)]
Books: Convert \r to \n

Some files or editors may use \r instand of \n like notepad++. If you copy
text written in notepad++ and pasted into the book. The book will only have
one page.

7 years agoCarts: Better wiggle prevention
SmallJoker [Sun, 15 Oct 2017 10:05:31 +0000 (12:05 +0200)]
Carts: Better wiggle prevention

7 years agoCarts: Replace old, deprecated function names
SmallJoker [Sun, 15 Oct 2017 09:49:48 +0000 (11:49 +0200)]
Carts: Replace old, deprecated function names

7 years agoCreative: Cache inventory items on load
SmallJoker [Mon, 9 Oct 2017 15:07:32 +0000 (17:07 +0200)]
Creative: Cache inventory items on load

7 years agoChest sounds: Shorten open/close sounds
James Stevenson [Wed, 13 Sep 2017 07:55:00 +0000 (03:55 -0400)]
Chest sounds: Shorten open/close sounds

7 years agoAdd binoculars mod with binoculars item to allow zoom
paramat [Wed, 30 Aug 2017 01:37:43 +0000 (02:37 +0100)]
Add binoculars mod with binoculars item to allow zoom

Uses the new player object property 'can zoom'.
In survival mode, use of zoom requires the binoculars item in
inventory.
Zoom is automatically allowed in creative mode and for players with
the 'creative' privilege.
The binoculars.update_player_property() function is global so can be
redefined by a mod for alternative behaviour.

7 years agoDecorations: Add kelp to cool and temperate shallow ocean
paramat [Wed, 4 Oct 2017 22:46:32 +0000 (23:46 +0100)]
Decorations: Add kelp to cool and temperate shallow ocean

Original texture by tobyplowy, colourised by paramat.

7 years agoTNT: Add tnt.boom defaults
tenplus1 [Thu, 28 Sep 2017 14:18:52 +0000 (15:18 +0100)]
TNT: Add tnt.boom defaults

This adds def, def.radius and def.damage_radius defaults to the
tnt.boom() function if they aren't specified on call.

7 years agoCreative: Do not give creative priv to admin
Lars Hofhansl [Fri, 29 Sep 2017 19:59:11 +0000 (12:59 -0700)]
Creative: Do not give creative priv to admin

7 years agoMap mod: Remove confusing 'use', reduce update interval
paramat [Tue, 3 Oct 2017 01:31:10 +0000 (02:31 +0100)]
Map mod: Remove confusing 'use', reduce update interval

Clarify README.txt.

7 years agoMinimap: Add 'map' mod with mapping kit item to enable minimap
paramat [Tue, 15 Aug 2017 19:59:27 +0000 (20:59 +0100)]
Minimap: Add 'map' mod with mapping kit item to enable minimap

In survival mode, use of the minimap requires the mapping kit item.
Minimap radar mode is always disabled in survival mode.

Minimap and minimap radar mode will be automatically enabled in creative mode
and for any player with the 'creative' privilege.

The 'map.update_hud_flags()' function is global so can be redefined by a mod for
alternative behaviour.

7 years agoBones: Return bones when taking the last ItemStack
SmallJoker [Mon, 2 Oct 2017 09:01:01 +0000 (11:01 +0200)]
Bones: Return bones when taking the last ItemStack

7 years agoBeds: Strip colour bits from param2 in 'get look yaw'
paramat [Thu, 28 Sep 2017 17:23:08 +0000 (18:23 +0100)]
Beds: Strip colour bits from param2 in 'get look yaw'

Based on code by github user 'hdak1945git'.
Fixes a crash when 'colorfacedir' param2 is used for beds.

7 years agoFlowers: Add waterlily right-click checks
tenplus1 [Thu, 21 Sep 2017 14:18:08 +0000 (15:18 +0100)]
Flowers: Add waterlily right-click checks

Check for on_rightclick functions of nodes when holding a waterlily.

7 years agoSfinv: Remove possibility of infinite loop when homepage doesn't exist
rubenwardy [Wed, 7 Jun 2017 20:33:42 +0000 (21:33 +0100)]
Sfinv: Remove possibility of infinite loop when homepage doesn't exist

7 years agoSfinv: Rename navigation tabs to reduce chance of a conflict
rubenwardy [Wed, 7 Jun 2017 20:29:05 +0000 (21:29 +0100)]
Sfinv: Rename navigation tabs to reduce chance of a conflict

7 years agoOres (non-mgv6 mapgens): New distributions
paramat [Sun, 2 Jul 2017 13:22:00 +0000 (14:22 +0100)]
Ores (non-mgv6 mapgens): New distributions

Make deeper, to compensate for ease of travel using 3D noise tunnels.
Make depth more progressive with value:

Ore, upper limit

Coal 64 no change
Iron 0 no change
Tin -32 > -64
Copper -16 > -128
Gold -64 > -256
Diamond -128 > -512
Mese crystal -64 > -512
Mese block -1024 no change

Make y of 1st density increase deeper but following a similar logic to before:

Ore, upper limit

Coal 0 no change
Iron -64 no change
Tin -128 no change
Copper -64 > -256
Gold -256 > -1024
Diamond -256 > -1024
Mese crystal -256 > -1024
Mese block -2048 new

Add second, denser layer of mese blocks with a decrease of separation and
increase in density equal to mese ore layers.

7 years agoChests: Fix locked chest protection against explosions (#1886)
danielmeek32 [Wed, 20 Sep 2017 18:08:17 +0000 (19:08 +0100)]
Chests: Fix locked chest protection against explosions (#1886)

Fixes #1885

7 years agoChests: Fix open chest after player leave (#1884)
tenplus1 [Wed, 20 Sep 2017 18:08:06 +0000 (19:08 +0100)]
Chests: Fix open chest after player leave (#1884)

This should fix the chest staying open when a player disconnects while inside.

7 years agoBiome registration: Update due to revert of mgv7 'biomerepeat' option
paramat [Sun, 17 Sep 2017 05:03:42 +0000 (06:03 +0100)]
Biome registration: Update due to revert of mgv7 'biomerepeat' option

7 years agoDoors: Same prediction change for trapdoors
sfan5 [Mon, 11 Sep 2017 20:52:19 +0000 (22:52 +0200)]
Doors: Same prediction change for trapdoors

Forgot this in the last commit, thanks @Fixer-007

7 years agoDoors: Disable client dig prediction for protected doors
sfan5 [Mon, 11 Sep 2017 19:13:55 +0000 (21:13 +0200)]
Doors: Disable client dig prediction for protected doors

7 years agoTNT: Add explode_center flag
tenplus1 [Sat, 26 Aug 2017 21:14:44 +0000 (22:14 +0100)]
TNT: Add explode_center flag

Add 'explode_centre' flag which when false explodes as normal and when true runs on_blast on centre node as well as dropping items.

7 years agoMushroom spread: Optimise and make overridable
tenplus1 [Sun, 30 Jul 2017 13:02:10 +0000 (14:02 +0100)]
Mushroom spread: Optimise and make overridable

Move mushroom spread ABM action into a global and overridable function.
Optimise spread code.
Reduce spread range to reduce spread through walls.

7 years agoFarming: Make cotton look like cotton, add crafted string item
paramat [Mon, 14 Aug 2017 15:19:53 +0000 (16:19 +0100)]
Farming: Make cotton look like cotton, add crafted string item

Remove string -> cotton alias.

7 years agoRegister fence: Allow setting nodedefs to 'false'
Hybrid Dog [Sun, 13 Aug 2017 10:47:43 +0000 (12:47 +0200)]
Register fence: Allow setting nodedefs to 'false'

7 years agoTNT: Allow a custom explosion sound to be used
tenplus1 [Sat, 8 Jul 2017 20:17:33 +0000 (21:17 +0100)]
TNT: Allow a custom explosion sound to be used

7 years agoMake ice slippery 1870/head
rubenwardy [Sun, 13 Aug 2017 00:23:08 +0000 (01:23 +0100)]
Make ice slippery

7 years agoCarts: Fix player position (#1872)
Rui [Sun, 13 Aug 2017 11:47:13 +0000 (20:47 +0900)]
Carts: Fix player position (#1872)

7 years agoBoats: Fix player position (#1871)
Rui [Sun, 13 Aug 2017 11:47:01 +0000 (20:47 +0900)]
Boats: Fix player position (#1871)

7 years agoTNT's tnt:boom cleanup (#1868)
tenplus1 [Sun, 13 Aug 2017 11:46:30 +0000 (12:46 +0100)]
TNT's tnt:boom cleanup (#1868)

The tnt:boom node doesn't actually need the on_construct and on_timer functions to remove the node after 0.4 seconds as the tnt_explode function already does this beforehand.

7 years agodefault_desert_cobble.png with darker mortar (#1859)
TumeniNodes [Sun, 13 Aug 2017 11:45:39 +0000 (07:45 -0400)]
default_desert_cobble.png with darker mortar (#1859)

7 years agoTrivial: Make furnace info text look nicer
Jens Rottmann [Thu, 10 Aug 2017 17:01:37 +0000 (19:01 +0200)]
Trivial: Make furnace info text look nicer

Furnace inactive (Item: Not cookable; Fuel:
Empty)

--> becomes -->

Furnace inactive
(Item: Not cookable; Fuel: Empty)

7 years agoBeds: Do not crash when placing in an unknown node
SmallJoker [Thu, 10 Aug 2017 07:52:53 +0000 (09:52 +0200)]
Beds: Do not crash when placing in an unknown node

7 years agoPlayer API: Integrate settable player step height
paramat [Mon, 7 Aug 2017 03:27:19 +0000 (04:27 +0100)]
Player API: Integrate settable player step height

Split some long lines.
Some nearby code cleanup.

7 years agoTorches: Make liquids drop torches as items
ForbiddenJ [Tue, 25 Jul 2017 18:52:39 +0000 (13:52 -0500)]
Torches: Make liquids drop torches as items

Liquids that are 'igniters', such as lava, will drop the torch without
a flame-extinguish sound, as the torch item will burn up after a few
seconds with a sound and smoke particles.

All other liquids cause a flame-extinguish sound.

7 years agoFloatland biomes: Simplify to grassland
paramat [Tue, 1 Aug 2017 03:47:37 +0000 (04:47 +0100)]
Floatland biomes: Simplify to grassland

Make the placeholder biomes grassland to make the shape of the floatland
terrain more visible.

7 years agoPlayer_api: Integrate settable player collisionbox
paramat [Tue, 1 Aug 2017 03:14:09 +0000 (04:14 +0100)]
Player_api: Integrate settable player collisionbox

7 years agoPlayer API: Apply model default textures when passing nil to 'set_textures'
danielmeek32 [Sun, 30 Jul 2017 18:18:12 +0000 (19:18 +0100)]
Player API: Apply model default textures when passing nil to 'set_textures'

7 years agoSeparate player code into new mod
rubenwardy [Wed, 26 Jul 2017 18:38:11 +0000 (19:38 +0100)]
Separate player code into new mod

7 years agoLava cooling: Increase interval to 2
paramat [Thu, 27 Jul 2017 00:16:17 +0000 (01:16 +0100)]
Lava cooling: Increase interval to 2

An excessive load has been reported caused by the node searching, so even
when no lava is present.

7 years agoCarts: Check for last pathfinder predition too
SmallJoker [Sun, 30 Jul 2017 17:55:36 +0000 (19:55 +0200)]
Carts: Check for last pathfinder predition too
Minor fix to reduce cart jitter slightly

7 years agoDefault: Correct dimensions of default_clay_brick.png (#1858)
TumeniNodes [Sat, 29 Jul 2017 16:09:27 +0000 (12:09 -0400)]
Default: Correct dimensions of default_clay_brick.png (#1858)

Resize default_clay_brick.png from 16x17px to 16x16px, as mentioned in issue #1855

7 years agoTNT: Only burn visually connected powder (#1857)
SmallJoker [Sat, 29 Jul 2017 16:09:15 +0000 (18:09 +0200)]
TNT: Only burn visually connected powder (#1857)

7 years agoDefault: Increase the maximum level of the diamond axe to 3 (#1854)
elinor-s [Sat, 29 Jul 2017 16:09:05 +0000 (12:09 -0400)]
Default: Increase the maximum level of the diamond axe to 3 (#1854)

This is the maximum level of the other diamond tools and makes the
number of uses similar to them.

7 years agoDefault: Reexport the player model (#1848)
DS [Wed, 26 Jul 2017 18:06:29 +0000 (20:06 +0200)]
Default: Reexport the player model (#1848)

7 years agoImprove node descriptions (#1834)
Ezhh [Sun, 23 Jul 2017 08:26:10 +0000 (09:26 +0100)]
Improve node descriptions (#1834)

7 years agoCreative: Prevent unauthorized item access (#1840)
SmallJoker [Sat, 22 Jul 2017 18:16:25 +0000 (20:16 +0200)]
Creative: Prevent unauthorized item access (#1840)

7 years agoCorrect farming/stairs dependency (#1838)
Ezhh [Sat, 22 Jul 2017 14:11:40 +0000 (15:11 +0100)]
Correct farming/stairs dependency (#1838)

7 years agoFloatland biomes: Update due to mgv7 biomerepeat option
paramat [Thu, 13 Jul 2017 23:09:13 +0000 (00:09 +0100)]
Floatland biomes: Update due to mgv7 biomerepeat option

Only register floatland biomes if mgv7 'biomerepeat' flag is false.
Simplify floatland biomes to coniferous forest and ocean.
Make 'mgv7_floatland_level' and 'mgv7_shadow_limit' parameters global
values for mods to use to register their own floatland biomes.

7 years agoPlayer model: Remove vertical 1 node offset
TeTpaAka [Sun, 18 Jun 2017 12:58:19 +0000 (14:58 +0200)]
Player model: Remove vertical 1 node offset

Required due to the settable player collision box engine feature.
Change for MT/MTG v0.5.0 that breaks compatibility with old clients.

7 years agoDefault: Expose the formspec getter functions (#1783)
SmallJoker [Sun, 16 Jul 2017 12:31:34 +0000 (14:31 +0200)]
Default: Expose the formspec getter functions (#1783)

7 years agoCrafting: Remove duplicate reversed recipes (#1777)
Paramat [Sun, 16 Jul 2017 12:31:21 +0000 (13:31 +0100)]
Crafting: Remove duplicate reversed recipes (#1777)

For axes and hoes only use one recipe that matches the appearance of the texture and in inventory.

7 years agoStairs: Add tin block stairs and slab
Fixer [Fri, 7 Jul 2017 21:21:14 +0000 (00:21 +0300)]
Stairs: Add tin block stairs and slab

7 years agoSaplings: Reduce grow time to ABM equivalent
paramat [Wed, 5 Jul 2017 14:12:21 +0000 (15:12 +0100)]
Saplings: Reduce grow time to ABM equivalent

Previous times were chosen using statistical maths, but reports suggested
this was too long.
I tested by timing an ABM acting on 100 nodes, with interval and chance equal
to the old sapling ABM.
50 at 4m59s.
99 at 24m58s.
100 at 26m58s.
So choose a grow time between 5 and 25 min for tree and bush saplings.
If 'can grow' is false at grow time the timer is reset to 5 min.

7 years agoStairs: Add inner and outer corner stairs
TumeniNodes [Wed, 5 Jul 2017 17:35:26 +0000 (13:35 -0400)]
Stairs: Add inner and outer corner stairs

With thanks to MarkuBu for the original PR and GreenXenith for the stair models.

7 years agoMapgen: Completely separate mgv6 ore registrations
paramat [Thu, 29 Jun 2017 17:50:16 +0000 (18:50 +0100)]
Mapgen: Completely separate mgv6 ore registrations

This allows us to preserve mgv6 ore distribution while giving us the freedom
to alter ore distribution for other mapgens.
Other mapgens are larger scale and have 3D noise tunnels which make vertical
travel easier, so ores can be deeper.
Other mapgens have registered biomes which allows us to limit ores to certain
biomes.

7 years agoAdd backface_culling to open chests and fencegates
DS-Minetest [Mon, 19 Jun 2017 16:51:21 +0000 (18:51 +0200)]
Add backface_culling to open chests and fencegates

7 years agoTNT: Track TNT owner in metadata for protection mods
Foz [Sat, 7 May 2016 01:47:22 +0000 (21:47 -0400)]
TNT: Track TNT owner in metadata for protection mods

It is useful for protection mods to know who owns an exploding
TNT block. This allows the blocks destroyed by the TNT to be
limited to the same ones the owner could destroy without using
TNT.

TNT placed within a protected area by the area owner, and later
ignited by another player will destroy within the protected area
nodes the igniter may not otherwise be able to interact with. Any
player could significantly increase the size of an explosion by
placing more TNT in an adjacent unprotected area if the original
TNT block was placed withing 1 node of such a boundary. This
feature sounds dangerous, but we are talking about TNT. Players
should use it carefully.

7 years agoCarts: Do not connect rails with gunpowder (#1812)
SmallJoker [Sun, 2 Jul 2017 08:32:10 +0000 (10:32 +0200)]
Carts: Do not connect rails with gunpowder (#1812)

7 years agoFlowers: More flowers
paramat [Wed, 28 Jun 2017 11:04:00 +0000 (12:04 +0100)]
Flowers: More flowers

7 years agoStairs: Add backface culling to stair meshes
Johannes Fritz [Wed, 7 Jun 2017 16:42:44 +0000 (11:42 -0500)]
Stairs: Add backface culling to stair meshes

If backface culling is not specified for a tile in 'images' it is set to true.
Slabs already have backface culling due to being defined as nodeboxes (which
are then converted to meshnodes).

7 years agoFloatland biomes: Add ocean biomes to fix missing sandstone
paramat [Wed, 28 Jun 2017 08:56:18 +0000 (09:56 +0100)]
Floatland biomes: Add ocean biomes to fix missing sandstone

Update biome lists for blob ores.

7 years agoFurnace formspec: Replace deprecated 'current_name' with 'context'
F.K.Z [Fri, 23 Jun 2017 02:34:30 +0000 (07:04 +0430)]
Furnace formspec: Replace deprecated 'current_name' with 'context'

7 years agoMake sapling, leaves and fence descriptions consistent (#1795)
Ezhh [Sun, 25 Jun 2017 09:19:12 +0000 (10:19 +0100)]
Make sapling, leaves and fence descriptions consistent (#1795)

7 years agoAllow mossy cobble slabs to combine (#1791)
John Cole [Thu, 22 Jun 2017 18:38:02 +0000 (14:38 -0400)]
Allow mossy cobble slabs to combine (#1791)

7 years agoChests: Check 'def' of node above chest to avoid crash
paramat [Fri, 16 Jun 2017 02:47:12 +0000 (03:47 +0100)]
Chests: Check 'def' of node above chest to avoid crash

In 'chest_lid_obstructed(pos)' check for nil 'def' to avoid a crash caused by
an unknown node above the chest.

7 years agoBooks: Also limit the max size of the title
red-001 [Wed, 14 Jun 2017 20:31:47 +0000 (21:31 +0100)]
Books: Also limit the max size of the title

This limits the max size of the full title of the book to `80` letters and
the size of the part thats displayed in the tooltip to `35` letters.

7 years agoCreative: Add 'creative' privilege for survival servers
tenplus1 [Wed, 1 Feb 2017 19:07:30 +0000 (19:07 +0000)]
Creative: Add 'creative' privilege for survival servers

This adds a 'creative' privilege to survival servers which OPs can bestow
on admin or competent builders to give access to the creative inventory.

7 years agoBooks: Limit the size of books
red-001 [Wed, 14 Jun 2017 17:57:05 +0000 (18:57 +0100)]
Books: Limit the size of books

Really large books just waste hard drive space and the engine is not designed to
handle that much data in item metadata, this can cause strange things to happen.

7 years agoDescriptions: Make capitalization consistent
ezhh [Wed, 14 Jun 2017 01:22:46 +0000 (02:22 +0100)]
Descriptions: Make capitalization consistent

7 years agoBooks: Add nil value checks to the book formspec handler
red-001 [Tue, 13 Jun 2017 22:59:25 +0000 (23:59 +0100)]
Books: Add nil value checks to the book formspec handler

7 years agoStairs: Use one recipe matching inventory appearence
paramat [Sat, 3 Jun 2017 21:41:39 +0000 (22:41 +0100)]
Stairs: Use one recipe matching inventory appearence

No longer have 2 recipes for stairs, choose the one that matches the appearence
in inventory (stair rising toward the right).
Helps to reduce recipe count now that an increasing number of stairs are
being registered.

7 years agoStairs: Allow crafting slabs and stairs into full blocks again
Wuzzy [Mon, 22 May 2017 01:20:10 +0000 (03:20 +0200)]
Stairs: Allow crafting slabs and stairs into full blocks again

7 years agoDoors: Avoid white particles when digging wooden trapdoor
DS-Minetest [Tue, 6 Jun 2017 17:14:52 +0000 (19:14 +0200)]
Doors: Avoid white particles when digging wooden trapdoor

Alter the wooden trapdoor side texture, replacing the white area with a
repetition of the wood pixels.
It is now consistent with the steel trapdoor side texture.

7 years agoFlowers: New texture for yellow dandelion
paramat [Thu, 25 May 2017 14:44:21 +0000 (15:44 +0100)]
Flowers: New texture for yellow dandelion

Derived from the white dandelion texture.
Uses the flower head colours of the previous yellow dandelion.

7 years agoDefault: Revert "Default: Shorter and better ABMs"
vorunbekannt75@web.de [Tue, 6 Jun 2017 17:20:58 +0000 (19:20 +0200)]
Default: Revert "Default: Shorter and better ABMs"

This reverts commit e523c3a2965afe76b9102b67992e15fafba1594a to re-enable
the overriding and redefinition of these global functions.

7 years agoUse transparency for unused part of mese post top texture
sfan5 [Tue, 6 Jun 2017 10:54:42 +0000 (12:54 +0200)]
Use transparency for unused part of mese post top texture

The color autogeneration algorithm of minetestmapper otherwise
causes this node to appear as solid black.

7 years agoChange "Junglewood" to "Jungle Wood" 0.4.16
MrIbby [Wed, 24 May 2017 21:22:17 +0000 (14:22 -0700)]
Change "Junglewood" to "Jungle Wood"

7 years agoResize book textures from 16x17 to 16x16
Michael Bargatin [Thu, 25 May 2017 10:34:14 +0000 (13:34 +0300)]
Resize book textures from 16x17 to 16x16

7 years agoSettings: Use new settings object
paramat [Mon, 22 May 2017 13:41:17 +0000 (14:41 +0100)]
Settings: Use new settings object

7 years agoDefault: Shorter and better ABMs (#1739)
theFox6 [Sat, 20 May 2017 12:32:52 +0000 (14:32 +0200)]
Default: Shorter and better ABMs (#1739)

Action of some abm's call functions directly, instead of calling the function inside a function.

7 years agoRemove set_inventory_formspec in default, remove delay in sfinv
sfan5 [Wed, 17 May 2017 18:56:39 +0000 (20:56 +0200)]
Remove set_inventory_formspec in default, remove delay in sfinv

7 years agoChest: Redo new chests to use single-tile textures where possible
Vanessa Ezekowitz [Mon, 8 May 2017 19:29:07 +0000 (15:29 -0400)]
Chest: Redo new chests to use single-tile textures where possible

This keeps the filenames the same, but adds a new "inside" double texture
for the open chest.
Use regular drawtype for closed chest and delete the "cube.obj" model.
X-flip the right-side texture for the closed chest.

7 years agoFire: Disable fire by default in multiplayer
ezhh [Mon, 10 Apr 2017 01:23:00 +0000 (02:23 +0100)]
Fire: Disable fire by default in multiplayer

7 years agoChests: Revert inventory name
tenplus1 [Mon, 8 May 2017 11:47:53 +0000 (12:47 +0100)]
Chests: Revert inventory name

Revert the new 'default:game' inventory back to the old 'main' and use the
lbm to restore the contents of the chest.
Change the name of the conversion LBM to ensure it is run again on already
converted chests.

7 years agoChange the selection_box of bush stems (#1733)
cx384 [Sat, 13 May 2017 10:49:04 +0000 (12:49 +0200)]
Change the selection_box of bush stems (#1733)

This is needed because you can't place a node above a bush stem when you are pointing at the bush stem.

7 years agoChest open model: UV map fix.
Auke Kok [Sun, 7 May 2017 05:01:31 +0000 (22:01 -0700)]
Chest open model: UV map fix.

The back side had a UV mapping issue which caused the bottom
rear part to "shrink" when opened.

7 years agoFix nil deref issue with people hitting chests too often.
Auke Kok [Sun, 7 May 2017 04:15:34 +0000 (21:15 -0700)]
Fix nil deref issue with people hitting chests too often.

7 years agoChests: Keep old textures for mod compability
SmallJoker [Sun, 7 May 2017 06:33:26 +0000 (08:33 +0200)]
Chests: Keep old textures for mod compability
Prevents generating ugly looking dummy images for mods that weren't updated yet.

7 years agoAdd option to disable lavacooling (#1726)
Ezhh [Sun, 7 May 2017 16:25:53 +0000 (17:25 +0100)]
Add option to disable lavacooling (#1726)

7 years agoFix merging mistake (crash in "stairs")
sfan5 [Mon, 1 May 2017 19:23:44 +0000 (21:23 +0200)]
Fix merging mistake (crash in "stairs")

7 years agoStairs: Add snowblock and ice stairs and slabs
Tim [Mon, 27 Mar 2017 20:55:53 +0000 (21:55 +0100)]
Stairs: Add snowblock and ice stairs and slabs

7 years agoTNT: Gunpowder (and tnt.burn) will trigger the on_ignite of nodes
Fernando Carmona Varo [Sun, 13 Nov 2016 15:08:07 +0000 (16:08 +0100)]
TNT: Gunpowder (and tnt.burn) will trigger the on_ignite of nodes

The previous behaviour is kept as fallback for compatibility, for when the on_ignite
is not defined in the node.

7 years agoImprove Chest appearance - opening chests.
Auke Kok [Sun, 17 Jan 2016 23:32:50 +0000 (15:32 -0800)]
Improve Chest appearance - opening chests.

Adds a mesh model that appears when a chest is opened. The chest
stays visibly open as long as the player keeps it open. When the
player closes the formspec, the chest returns back to the closed
shape. While opening and closing, a sound plays.

A second person inspecting the chest will trigger a second sound
open. However, only after the last player closes the chest, does the
chest actually visually close and is the sound close played. This
keeps mesh updates to a minimum.

While it's possible that a server shutting down may cause chests
to remain open, this does not affect the chests' working matter,
and opening or closing them should fix them.

Old chests are converted to the new style by LBM. I previously
had them converted on open but this was unreliable, and LBMs
don't have that problem.

Open chests cannot be dug up. This prevents people from keeping
a chest open and digging it out as well, since closing a chest
would place a chest back (swap) at the spot. We could protect
against this, but it still messes up the client and causes a lot
of "missing node inventory" error messages otherwise. It's
unlikely but possible that a player lagging out causes a chest
to stay "open" and thus unremovable by digging, but there are
other ways of dealing with that - a server restart fixes that
issue.

If the lid of the chest is obstructed, the sounds continue to play,
but the lid isn't opened. Obstructed means that a node is present
above the chest lid, however, we ignore several node types like signs,
torches (not 3d) and wallmounted nodeboxes (typically signs) since
they don't pose any major obstruction in almost any case, and are
typically found above chests. Additionally, the selection box of the
opened chest does not include the lid, and so one can still interact
with e.g. a sign behind an open lid.

Due to the fact that chests now have 7+ textures, we can no longer
use materials (limit: 6) to texture the chest, and so there is now
a single UV mapped image that applies both to open and closed chests.
While this does mean texture pack makers need to create it, this
is extremely simple and consists of a simple cut'n'paste over the
template and should be really easy to do. Only one texture file is
now then used for both open and closed chests.

7 years agoDoors: place sound when placing a door.
Auke Kok [Sat, 29 Apr 2017 04:09:07 +0000 (21:09 -0700)]
Doors: place sound when placing a door.

Due to door items being the thing that's placed, we need to
explicitly play a sound when placing a door.

Fixes #1363