oweals/minetest_game.git
6 years agoPrevent divide by zero (#2106) stable-0.4 1966/head 2256/head 0.4.17 0.4.17.1 0.4.17.2
sofar [Sun, 8 Apr 2018 16:57:00 +0000 (09:57 -0700)]
Prevent divide by zero (#2106)

This forces all explosions to damage entities within the 1 node
range. If that needs to be disabled, the damage_radius needs to
be set to 0.

6 years agoFlower spread ABM: Optimise
paramat [Mon, 15 Jan 2018 05:33:27 +0000 (05:33 +0000)]
Flower spread ABM: Optimise

Match maximum spread density to maximum mapgen density for flowers.
Place 3 flora nodes at once instead of 1.
Change ABM chance value to 300 to match previous spread rate.
ABM becomes 3 times less intensive.

6 years agoDoors: Avoid crash on nil player in 'can dig door'
paramat [Fri, 2 Feb 2018 18:11:17 +0000 (18:11 +0000)]
Doors: Avoid crash on nil player in 'can dig door'

6 years agoStairs: unbind table groups (#2036)
Jat15 [Wed, 31 Jan 2018 19:49:27 +0000 (20:49 +0100)]
Stairs: unbind table groups (#2036)

Unbind table groups for base block, stairs, slabs.

6 years agodefault:dirt_with_snow: Re-add to soil group
paramat [Sat, 13 Jan 2018 11:46:35 +0000 (11:46 +0000)]
default:dirt_with_snow: Re-add to soil group

Previously, saplings were not growing if the dirt they are on turned to
'dirt with snow' before growth.
Also for consistency with other dirt nodes.

6 years agoFurnace: Fix being able to cook items without enough fuel
Ekdohibs [Thu, 21 Dec 2017 09:28:06 +0000 (10:28 +0100)]
Furnace: Fix being able to cook items without enough fuel

This was triggered when too much time had elapsed when timer was called.
Also, fix timer resolution giving free fuel time.

6 years agocreative: Add missing tooltips.
Diego Martínez [Sat, 25 Mar 2017 21:26:50 +0000 (18:26 -0300)]
creative: Add missing tooltips.

6 years agoBook textures: Reset colour profiles to remove warnings
paramat [Wed, 20 Dec 2017 14:39:49 +0000 (14:39 +0000)]
Book textures: Reset colour profiles to remove warnings

6 years agoBook textures: Replace with more original textures
paramat [Mon, 11 Dec 2017 08:55:39 +0000 (08:55 +0000)]
Book textures: Replace with more original textures

6 years agoDefault: Make burntimes more rational and consistent
ezhh [Sat, 25 Nov 2017 22:49:32 +0000 (22:49 +0000)]
Default: Make burntimes more rational and consistent

7 years agoAdd nil checks for placer
DTA7 [Sun, 1 Oct 2017 13:41:58 +0000 (15:41 +0200)]
Add nil checks for placer

7 years agoCreative: Make the placenode registration check for non-player placers
raymoo [Mon, 2 Oct 2017 01:32:01 +0000 (18:32 -0700)]
Creative: Make the placenode registration check for non-player placers

7 years agoCreative: Make handle_node_drops override work for non-player diggers
raymoo [Mon, 2 Oct 2017 01:20:50 +0000 (18:20 -0700)]
Creative: Make handle_node_drops override work for non-player diggers

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 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 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 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 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 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 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 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'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 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 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 Minor fix to reduce cart jitter slightly
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 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 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 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 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 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 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 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 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 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 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 agoMerge 0.4.16 into stable-0.4
ShadowNinja [Sat, 3 Jun 2017 21:22:59 +0000 (17:22 -0400)]
Merge 0.4.16 into stable-0.4

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

7 years agoFix books getting erased on page button use.
Auke Kok [Sat, 29 Apr 2017 03:56:51 +0000 (20:56 -0700)]
Fix books getting erased on page button use.

Changing the book page caused the entire itemstack meta to
get wiped due to improper calling of meta:from_table().

Fixes #1711

7 years agoRemove dye craft recipe conflict.
Auke Kok [Thu, 27 Apr 2017 03:19:59 +0000 (20:19 -0700)]
Remove dye craft recipe conflict.

We have enough gray recipes, but brown is more difficult.

Fixes #1710

7 years agoFix owner not being checked on write to book
rubenwardy [Tue, 25 Apr 2017 23:15:15 +0000 (00:15 +0100)]
Fix owner not being checked on write to book

7 years agoTin: Tune mapgen, bugfix, fix texture credits
paramat [Sun, 23 Apr 2017 03:09:46 +0000 (04:09 +0100)]
Tin: Tune mapgen, bugfix, fix texture credits

Previously i had matched ore density to moreores, but this density was
too high and out of balance with MTGame, reduce density to be similar
to copper ore.
The 2 levels of underground ore were overlapping, fix.
Textures are actually by kilbith, update credits.

Also credit kilbith for bronze, copper, gold and steel blocks, credits
had not been updated at the time.

7 years agoTextures: Reduce contrast of snow ripples
paramat [Sun, 23 Apr 2017 02:48:12 +0000 (03:48 +0100)]
Textures: Reduce contrast of snow ripples

7 years agoCreative: Automatic item colorization for creative mode
Dániel Juhász [Sat, 22 Apr 2017 12:34:51 +0000 (14:34 +0200)]
Creative: Automatic item colorization for creative mode

7 years agoOres: Add tin ore, lump, ingot and block
paramat [Wed, 19 Apr 2017 01:48:00 +0000 (02:48 +0100)]
Ores: Add tin ore, lump, ingot and block

Use Calinou's textures from moreores mod.
Craft bronze from tin and copper instead of steel and copper.
Match ore density to the moreores mod but start ore at a depth of
y = -32 to be part of the depth progression of other ores.

7 years agoDoors: Ignore permission check if player parameter is omitted
upsilon [Mon, 17 Apr 2017 10:56:27 +0000 (12:56 +0200)]
Doors: Ignore permission check if player parameter is omitted

As written in game_api.txt.

7 years agoKeys: Move skeleton key to craftitems.lua
octacian [Thu, 16 Mar 2017 05:22:09 +0000 (22:22 -0700)]
Keys: Move skeleton key to craftitems.lua

Commit 73d61cbb103415c9a3970eaf2c48aeadabfff828 makes skeleton keys
craftitems rather than tools, warranting the move from tools.lua
to craftitems.lua.

7 years agoKeys: Allow skeleton keys to be stacked
octacian [Thu, 16 Mar 2017 05:20:44 +0000 (22:20 -0700)]
Keys: Allow skeleton keys to be stacked

Allow skeleton keys to be stacked by converting them to craftitems and
adding a few lines of code to add a new itemstack to the inventory with
the new key or drop it at the player position if the inventory is full.

7 years agonodebox -> node_box
Thomas--S [Wed, 12 Apr 2017 20:27:58 +0000 (22:27 +0200)]
nodebox -> node_box

Seems like this was a typo

7 years agoBushes: Add saplings
paramat [Wed, 12 Apr 2017 08:25:21 +0000 (09:25 +0100)]
Bushes: Add saplings

Bush saplings grow in half the time of tree saplings.
Bushes do not need 'from sapling' schematic variants because only the
stem node is force-placed in the mapgen schematic, so only the sapling
is force-replaced.
Bush leaves drop saplings with a rarity that ensures at least 1 sapling
per bush on average.

7 years agoPB&J Pup: Remove mod
paramat [Tue, 11 Apr 2017 01:45:34 +0000 (02:45 +0100)]
PB&J Pup: Remove mod

Also delete nyancat API documentation from game_api.txt.

7 years agoFix .luacheckrc (missing Settings class)
Ekdohibs [Tue, 11 Apr 2017 14:28:26 +0000 (16:28 +0200)]
Fix .luacheckrc (missing Settings class)

7 years agoStairs: Improve stair and slab rotation on placement
MarkuBu [Tue, 11 Apr 2017 06:51:13 +0000 (08:51 +0200)]
Stairs: Improve stair and slab rotation on placement

Slabs are placed horizontal instead of vertical, even if they are
placed on a wall.
Slabs are rotated automatically if they are placed to another slab,
no matter which material.
Slabs are placed at the lower position if the placer points into
the lower half of the pointed node and to the upper position if
pointed to the upper half.
Stairs are placed normal if the placer points to the lower half of
the pointed node and rotated upside down if pointed to the upper half.

7 years agoScrewdriver: Allow non-native rotations if supported by targeted node
Alex Ford [Sat, 8 Apr 2017 04:03:11 +0000 (22:03 -0600)]
Screwdriver: Allow non-native rotations if supported by targeted node

This also allows custom actions (such as using the screwdriver as a wrench).

7 years agoTextures: Replace aspen leaves texture with BlockMen's
LNJ [Sat, 8 Apr 2017 09:22:26 +0000 (11:22 +0200)]
Textures: Replace aspen leaves texture with BlockMen's

7 years agoLeafdecay: Do not restart aready running timers
paramat [Thu, 30 Mar 2017 04:06:49 +0000 (05:06 +0100)]
Leafdecay: Do not restart aready running timers

7 years agoCarts: Make rail recipes more generous
paramat [Tue, 28 Mar 2017 04:37:45 +0000 (05:37 +0100)]
Carts: Make rail recipes more generous

As part of making vertical travel easier to reduce reliance on
sneak ladders.
Calculate using cubic pixels of steel.

A steelblock is 16^3 = 4096 cubic pixels steel.
6 ingots is 6/9 steelblocks.
A rail is a 2*2*16 pixel length of steel, 64 cubic pixels steel.
6 ingots produces 2*21 rails = 21 rail nodes.
Choose 18 for an even number that is a multiple of ingot number.

Replace the stick with 2 wood in the recipe to be closer to the amount
of wood that would be needed for 20*4 sleepers.

Replace 2 mese crystal fragments with 1 mese crystal to
compensate for the larger number of nodes returned. The result
is the recipe is much more generous with steel usage but slightly
less generous with mese usage, keeping power rail cost reasonably high.

Replace 2 coal lumps with 1 for a similar recipe to power rails.

7 years agodoors: Fix craftitem not listed in inventory (#1683)
SmallJoker [Sun, 2 Apr 2017 08:01:01 +0000 (10:01 +0200)]
doors: Fix craftitem not listed in inventory (#1683)

Fixes bug caused by b847888

7 years agoCarts: Remove '+' added in commit 077316b
paramat [Thu, 30 Mar 2017 02:24:43 +0000 (03:24 +0100)]
Carts: Remove '+' added in commit 077316b

7 years agoGlasslike_framed nodes: Add 'glasslikeliquidlevel' paramtype2
paramat [Wed, 29 Mar 2017 03:59:19 +0000 (04:59 +0100)]
Glasslike_framed nodes: Add 'glasslikeliquidlevel' paramtype2

7 years agoUse creative.is_enabled_for for creative mode if possible (#1558)
zaoqi [Wed, 29 Mar 2017 19:02:26 +0000 (21:02 +0200)]
Use creative.is_enabled_for for creative mode if possible (#1558)

7 years agodoors: add groups to the door craftitem
cx384 [Tue, 28 Mar 2017 17:18:59 +0000 (19:18 +0200)]
doors: add groups to the door craftitem

7 years agodoors: record protection violation if it cannot be dug
upsilon [Sat, 25 Mar 2017 16:18:17 +0000 (17:18 +0100)]
doors: record protection violation if it cannot be dug

7 years agoFlora spread: Re-enable dry shrub replacing flora in desert sand
paramat [Thu, 23 Mar 2017 01:19:33 +0000 (01:19 +0000)]
Flora spread: Re-enable dry shrub replacing flora in desert sand

Flora is converted to dry shrub in desert sand and silver sand.
No conversion in sand to preserve sand dune grasses.
Dry shrubs do not spread so this conversion, used by players, is the
only way to generate them.

7 years agoPB&J Pup.
Auke Kok [Wed, 22 Mar 2017 05:34:42 +0000 (22:34 -0700)]
PB&J Pup.

Replace possibly trademarked artwork with royalty free and
OK for commercial use artwork.

The Pup appears by default but does not alias the Nyan Cat nodes
away. For that you will have to enable the setting. A settingtypes.txt
is provided to make that really easy. This allows people to get
an out-of-tree mod and not have their Nyan nodes disappear.

The mod can also be disabled entirely this way for those who don't
want it.

There's some eatser eggs in here as well. Instead of making the
nodes burnable, they are edible, and make you bark and howl. And
perhaps something else too.

7 years agoFlora spread: Do not replace flora with dry shrub, only 'return'
paramat [Wed, 22 Mar 2017 17:51:29 +0000 (17:51 +0000)]
Flora spread: Do not replace flora with dry shrub, only 'return'

If there is no group:soil node found below, do not replace flora with
dry shrub, this was breaking flower pots and other mods.
Originally, flora would only turn to dry shrub if in desert sand.

7 years agoFlora spread: Allow spread on rainforest litter. Other improvements
paramat [Sat, 18 Mar 2017 17:54:03 +0000 (17:54 +0000)]
Flora spread: Allow spread on rainforest litter. Other improvements

Use the soil group more instead of checking for multiple node names.
Remove 'neighbors' from ABM.
Turn any flora to dry shrub if on a non-soil, except when on default:sand
to avoid dune grasses being replaced.
Search for "group:soil" when searching for a position for the new flora
node, instead of searching for multiple node names, however do not spread
flora onto desert sand, which is in the soil group.

Remove default:dirt_with_snow from the soil group as it would be frozen
soil. It can be dug and placed to turn it into dirt (consider this some
extra work needed to make it cultivatable).

7 years agoBooks: Fix backwards compatibility issues
octacian [Tue, 14 Mar 2017 05:28:03 +0000 (22:28 -0700)]
Books: Fix backwards compatibility issues

Commit c68b8274fed183f30bd7609018766a261448b83d prevented books from
being copied in the crafting grid, and made it so that old books, though
seemingly successfully transferred to the new format, could not be written
to as the old data still persisted.

7 years agoScrewdriver: simplify logic, allow wallmounted rotation.
Auke Kok [Mon, 13 Mar 2017 19:35:45 +0000 (12:35 -0700)]
Screwdriver: simplify logic, allow wallmounted rotation.

- Allow rotation of wallmounted nodeboxes (signs) since they are
  now rotating properly.
- Instead of testing `ndef` several times, do it once, correctly.
- Simplify exception logic for nodes that have `on_rotate` set.
- For simplicity, return itemstack, always.
- Remove a useless nil check.

7 years agoDoors: Fix wood/glass doors not opening or closing
Thomas--S [Sat, 18 Mar 2017 16:19:19 +0000 (17:19 +0100)]
Doors: Fix wood/glass doors not opening or closing

Some code was lost during a rebase of a recently merged commit (73e4666).

7 years agoLeafdecay: Change Aspen radius back to 3
paramat [Fri, 17 Mar 2017 05:17:57 +0000 (05:17 +0000)]
Leafdecay: Change Aspen radius back to 3

Although the new aspen tree schematic only requires a radius of 2 the
many existing aspen trees in a world require radius 3.

7 years agoJunglegrass: Prevent seeding of dirt_with_grass
paramat [Fri, 17 Mar 2017 05:06:57 +0000 (05:06 +0000)]
Junglegrass: Prevent seeding of dirt_with_grass

Previously you could place junglegrass on dirt to convert that dirt to
dirt_with_grass, but this is unsuitable now that rainforest has a
surface of dirt_with_rainforest_litter.
Remove junglegrass from the 'grass' group.

7 years agoKeys: Fix crash when using unconfigured default:key
octacian [Thu, 16 Mar 2017 05:03:52 +0000 (22:03 -0700)]
Keys: Fix crash when using unconfigured default:key

Since meta secret field is blank on any keys (default:key) obtained using
/give, the game will crash if you attempt to use one of these. This follows
along the principle that the game should never have any reason to crash.

7 years agoBiomes: Add and auto-select mgv7 floatland biomes
paramat [Sun, 12 Mar 2017 10:58:09 +0000 (10:58 +0000)]
Biomes: Add and auto-select mgv7 floatland biomes

A simple set of biomes for now: Ocean, coniferous forest, grassland,
sandstone desert.
Update biome lists for blob ores and decorations.

Make sandstone desert filler 1 node deeper to match other deserts.

7 years agoChange doors to default.can_interact_with_node()
Thomas--S [Tue, 21 Feb 2017 18:43:34 +0000 (19:43 +0100)]
Change doors to default.can_interact_with_node()