268f869e67
beds: Various bug fixes ( #2566 )
...
· Fixes players sleeping in an occupied bed (Wuzzys code)
· Fixes 'sleepwalking' by checking players velocity (Wuzzys code)
· Fixes sleeping player flying off the bed when damaged and flying far away from the bed after death
· Fixes sleeping player being immobilized and bed undiggable after death
2020-09-02 18:32:06 +02:00
8c01a5b288
Add Indonesian translations ( #2693 )
2020-06-29 18:41:50 +02:00
8855490b7f
Update translation templates
2020-06-26 14:41:30 +02:00
81c5b6b399
beds: Use player_api
functions instead of default
( #2654 )
2020-04-23 22:19:58 +02:00
91ac075cff
Update Chinese Translation, Add Traditional Chinese Translation ( #2596 )
2020-03-02 21:53:12 +01:00
9bf64b61c2
Fix simple bed height, make player lay down just above it, not inside it
2020-02-08 03:11:44 +00:00
176ddba176
Reset spawn position on bed destruction
2020-01-26 18:59:44 +01:00
da39bae50e
Add zh_CN translation
2020-01-22 19:09:38 +01:00
710605687b
Add Malay translation
2019-11-30 17:31:40 +01:00
10dce79451
Add Swedish translation
2019-11-30 17:31:29 +01:00
d9f8c6cc43
Escape translated text in 'beds' mod formspec
2019-11-22 21:47:47 +00:00
6fea665fcc
Add Russian translation ( #2525 )
2019-10-24 21:54:20 +02:00
93a49f082c
Italian translation ( #2491 )
2019-10-12 14:30:37 +02:00
a00ff24df9
Spanish Translation ( #2505 )
2019-10-10 21:19:20 +02:00
0f369b43fe
French translation ( #2514 )
2019-10-10 21:18:25 +02:00
ce1eaeebbe
Grammar updates README.txt
2019-10-01 21:47:58 +02:00
106c36da33
Add translation templates and German translation
2019-09-22 13:42:40 +02:00
b4c7522248
Fix more translation strings ( #2487 )
2019-09-18 20:38:27 +02:00
bb9279ccb8
Add support for MT 5 game translation (rebasing ) ( #2466 )
...
rebased #2368
2019-09-10 19:09:51 +02:00
9b226c7045
Switch to mod.conf, delete deprecated depends.txt
2019-07-17 00:38:23 +02:00
e3cd961a15
Fix beds being undiggable after laying down
2019-03-23 23:12:44 +00:00
b853c8a509
Beds: Properly count players in beds
...
This is a rebased and slightly rewritten version of #2125 .
2019-03-10 01:43:49 +00:00
7f687777a6
Beds: Do not require red wool to craft beds
2019-02-10 21:38:58 +00:00
14cc07bfd3
Beds: Make on_rotate function check new param2 instead of rotation mode
...
The on_rotate function now checks the new param2 value to determine if a rotation is valid, rather than checking the rotation mode.
This is so screwdriver-like items with different rotation modes will not be able to rotate the bed into invalid orientations.
2019-02-08 01:53:55 +00:00
2ff9058a62
Beds: Fix formspec size, no prepend
2019-01-26 14:00:01 +01:00
5ccf965825
Beds: Use mod textures instead of default_wood.png
...
No longer use default_wood.png for one side of the bed head and
one side of the bed bottom node.
Add a new texture for the underside of both beds.
2018-10-29 22:08:25 +00:00
876a9ca5d2
Beds: Fix input checking for "Force night skip"
2018-07-03 19:50:16 +01:00
255031fc91
Replace deprecated function calls
2018-07-01 20:44:03 +01:00
5692c15b4d
Disallow digging a bed if in use
...
Use a new table beds.bed_position to check if a bed is in use.
2018-06-19 22:07:01 +01:00
a2d7678ffd
Add nil checks for placer
2017-11-15 23:16:28 +00:00
809e5933c4
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.
2017-09-28 20:49:34 +01:00
67c01a44c2
Beds: Do not crash when placing in an unknown node
2017-08-10 10:08:24 +02:00
eec1c5a03b
Settings: Use new settings object
2017-05-24 07:18:26 +01:00
077316b4cd
Use creative.is_enabled_for for creative mode if possible ( #1558 )
2017-03-29 21:02:26 +02:00
78c632ebd4
Allow interaction with nodes while wielding these items.
...
- beds
- boats
- carts
- key/skeleton key
- seeds
All these had on_place handlers that did not allow nodes with
an on_rightclick() handler to be used first (if not using
sneak). This code is taken from the torches mod and applied
everywhere.
This allows all these items to e.g. be inserted into the `frame`
mod's item frames.
2017-02-28 18:16:12 -08:00
57eb906047
Add support for custom bed sounds
2017-01-12 12:42:38 -08:00
58038a7941
Snappy group: Remove beds and cactus from group
2016-12-05 01:41:41 +00:00
09a229b412
Update 'nodeupdate()' to 'check_for_falling()' API
2016-11-22 05:55:36 +00:00
75caa9167c
Fix whitespace errors to silence luacheck.
...
Currently all minetest_game PR's are failing travis since the
upstream luacheck now also warns about whitespace issues, and
there are a few of those in the code. This fixes all of them
so we can yet again rely on luacheck.
2016-11-19 19:39:51 -08:00
23ba2d3a0c
Add and edit fuel registrations
...
Edited fuels: fences, wooden ladder.
New fuels:
boat, paper, book, dry shrub, stick, vessels shelf, wooden tools,
wooden door, trapdoor, fence gates, farming crops, stairs, slabs, beds.
2016-11-02 13:04:25 +00:00
6171fb43f0
Change WTFPL to MIT (part 3)
...
Relicense WTFPL media to CC BY-SA 3.0.
Various corrections and edits.
2016-09-07 04:44:53 +01:00
e9d26e2ee3
Licenses: Change WTFPL to MIT (part 1)
...
Part 1: All mods except default and xpanes.
Add license.txt files.
Add missing README.txt files.
Check and update copyright years for all contributors.
Improve text format and make more consistent.
2016-09-05 05:54:33 +01:00
ea49eb3f3d
Beds, boats: Replace deprecated get_look_yaw/set_look_yaw
2016-07-27 21:39:22 +01:00
d89bb69a22
Beds: Only register respawn callbacks if respawn is enabled
2016-07-15 22:00:57 +01:00
30b0a155fb
Stop shadowing upvalues and definitions.
2016-07-15 21:58:49 +01:00
4473627de0
Remove unused and clean up missused variable-value assignments.
...
* Unused variables
* Unused values (assigned to variables, but overwritten before use)
* Defining already defined variables instead of reassigning to them.
2016-07-15 21:58:49 +01:00
d7a7456007
Beds: Save respawn position when entering bed, only read bed spawns once
...
No longer require night to be skipped for resawn position to be saved
Remove constant beds.read_spawns() calls when a player joins as this
is only required once
2016-07-13 14:45:30 +01:00
71c7e21669
Always return the leftover ItemStack for on_place and on_rightclick
2016-07-09 16:32:41 +01:00
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
874b1ae326
Beds: Check for buildable_to for bottom half
...
We properly checked top half already, just not the top half
target location.
Assure both checked positions are not unknown nodes.
Fixes #991
2016-04-04 05:39:06 +01:00