PilzAdam
0815dfb691
Return an ItemStack in minetest.item_place() if nodes' on rightclick doesnt return it
2013-04-02 15:19:02 +02:00
0gb.us
4321d6bd01
Don't grant priveleges to non-existent players.
...
When accidentally misspelling a name, privileges are sometimes granted to non-existent players, leaving them with the extra privileges, but without the default privileges, if they ever join the server. This corrects that by disallowing /grant from working with invalid players. For completeness, it does the same for /revoke.
2013-03-30 21:50:07 -04:00
0gb.us
205dd250e0
Fix node replacement in not-quite-loaded chunks
...
When first entering an area, sometimes placing nodes replaces other nodes that are not buildable_to. This seems to be caused by the fact that nodes in unloaded map blocks are treated as ignore, a node that is buildable_to. This fixes that, by using get_node_or_nil() instead of the previously-used get_node(), then checking to see if the nodes were actually loaded before replacing.
2013-03-29 14:18:51 -04:00
Splizard
0f3fe0ab50
Allow falling nodes to pass through solid "buildable_to" nodes.
2013-03-19 16:38:56 +01:00
PilzAdam
bcd3dbc25e
Prevent passing nil to unpack() in minetest.after
2013-03-19 00:15:41 +01:00
Jeija
8740fb8520
Allow minetest.after to take a variable number of arguments
2013-03-17 00:23:30 -04:00
kwolekr
950c0e60e2
Allow any character in formspec strings with escape char
2013-03-05 23:25:02 -05:00
PilzAdam
ea3d6f3d52
Fix pickup of dropped items when the player only takes a part of them
2013-03-03 16:35:29 +01:00
PilzAdam
04e83d5584
Drop nodes as items when dugged and no room in inventory and dont remove dropped items when no room in inventory
2013-02-21 16:58:50 +01:00
PilzAdam
61d9e641f6
Dont drop tools on rightclick
2013-02-19 20:16:55 +01:00
Ilya Zhuravlev
592087a73b
Set numeric locale for Lua
2013-02-18 13:58:55 +04:00
PilzAdam
2c6cfb193b
Fix minetest.item_place_node() and minetest.item_drop() to always return an ItemStack
2013-02-13 18:06:25 +01:00
RealBadAngel
8fcf2eab4b
Fix to on_rightclick not able to change wielded_item
2013-02-13 02:06:36 +04:00
PilzAdam
fc0668c989
Dont call on_rightclick() if sneak is pressed
2013-01-27 21:58:46 +01:00
PilzAdam
d5e1a75d7d
Fix spread of items in falling code
2013-01-12 20:55:45 +01:00
PilzAdam
3e55ffee33
Add on_rightclick(pos, node, clicker) callback for nodes
2013-01-04 17:15:16 +01:00
PilzAdam
eb6b2a03c0
Add ability to change the itemstack in placenode callbacks
2012-12-17 19:49:18 +01:00
jordan4ibanez
ffbdd06625
Fix item entity's collision with nodeboxes
2012-12-15 15:32:17 -05:00
PilzAdam
9c421b3e92
Only fly through walls in noclip mode wich requires the noclip privilege
2012-12-11 16:44:13 +01:00
Ilya Zhuravlev
1e681d240d
Fix minetest.get_node_drops(). It should always return list of item names, not ItemStack(s).
2012-12-02 21:09:30 +04:00
PilzAdam
087d074126
Only check attachment for nodes with group attached_node
2012-12-01 15:20:53 +01:00
PilzAdam
964fb6a85a
Add the group attached_node
...
Nodes in this group will be dropped as items if the node under them or the node in the wallmounted direction is not walkable.
2012-12-01 13:32:32 +01:00
DannyDark
1003c71299
Log /grant and /revoke command usage
2012-11-30 22:12:21 +02:00
Matthew I
056d277f53
Add shutdown hook interface to Lua API
...
Scripts can call minetest.register_on_shutdown() to register a
shutdown hook.
Document that minetest.register_on_shutdown() callbacks may not be run
If the server crashes, it is unlikely that callbacks registered using
minetest.register_on_shutdown() will be called.
2012-11-30 19:26:51 +02:00
Perttu Ahola
adda5896e6
Revert "Use wielditem drawtype for all nodes in item_entity"
...
This reverts commit ffad18e42442fed10c312adc989fc62b74e05896.
2012-11-27 17:32:58 +02:00
PilzAdam
3b0440feef
Use wielditem drawtype for all nodes in item_entity
2012-11-26 18:30:07 +01:00
Anthony
0306947694
Fix server crash on /clearpassword
...
According to #253 , using `/clearpassword` without an argument causes the server to crash from an assertion failure. I've resubmitted matttpt's patch as a pull request to aid in merging.
2012-11-20 16:45:30 +01:00
PilzAdam
4a95515070
Merge pull request #274 from PilzAdam/falling
...
Fix a bug in falling code where entities get stuck
2012-11-03 15:14:14 -07:00
PilzAdam
dd9b654d7f
Make air and ignore drop nothing
2012-11-03 18:29:01 +01:00
PilzAdam
addc8e7486
Fix a bug in falling code where entities get stuck
2012-11-03 18:07:49 +01:00
PilzAdam
1db601cd06
Remove a useless comment
2012-10-31 19:08:00 +01:00
PilzAdam
c892f18215
Move falling to builtin
2012-10-31 19:06:11 +01:00
Perttu Ahola
75c3f41fb2
Statically store always_collect field of __builtin:item
2012-09-09 23:14:41 +03:00
Perttu Ahola
debbe86ac9
Add overridable function for handling dropped items from nodes
2012-09-02 19:38:44 +03:00
Perttu Ahola
70f1f66652
Fix github issue #213 : Dropping unknown items crashes the game
...
The items will now just disappear when dropped.
2012-08-19 10:55:04 +03:00
Matthew I
d812f4de81
Move chat commands to Lua and remove servercommand.{cpp,h}
...
Commands moved:
/me
/status
/time
/shutdown
/ban
/clearobjects
2012-08-12 16:45:58 +03:00
Matthew I
32b064eb21
Allow digging of unknown nodes
...
This allows the removal of nodes with unknown types.
get_item_callback() (C++) would fail if a node has an unknown type. Now it
will try using the callback from minetest.nodedef_default in this case.
Also, minetest.node_dig() (Lua) was altered to always allow digging when
the node definition is empty (i.e. unknown node).
2012-08-12 16:04:18 +03:00
Perttu Ahola
dcfd402697
Make the rollback system VERY FUCKING GOD DAMN POWERFUL
2012-07-27 13:24:28 +03:00
Perttu Ahola
ec37061ad3
Don't track liquids for rollback because of too much log
2012-07-27 02:46:54 +03:00
Perttu Ahola
3303470fbc
Experimental-ish rollback functionality
2012-07-27 02:27:18 +03:00
Perttu Ahola
0e8ad8b6b8
Deprecate minetest.add_to_creative_inventory and use group not_in_creative_inventory instead
2012-07-25 18:05:31 +03:00
Perttu Ahola
4183fdbe70
Remove special handling of creative mode
2012-07-25 14:07:45 +03:00
Perttu Ahola
1b2ae34ed4
Detached inventory callbacks and reworked node metadata callbacks
2012-07-25 02:36:54 +03:00
Perttu Ahola
305a52fdda
builtin/item.lua: callbacks with copies of positions and nodes rather than recycle the same ones, which callbacks can modify
2012-07-24 17:46:17 +03:00
Perttu Ahola
f7b06f5427
Add oldnode parameter to minetest.register_on_placenode callback
2012-07-23 20:44:56 +03:00
Perttu Ahola
277f9f9709
Fix building on top of (pointable && buildable_to) nodes
2012-07-23 20:42:08 +03:00
Perttu Ahola
992f5e5bdf
Move /give, /giveme, /spawnentity and /pulverize to builtin/chatcommands.lua
2012-07-23 17:43:08 +03:00
Perttu Ahola
243d9fb7d6
minetest.register_on_player_receive_fields()
2012-07-22 17:40:48 +03:00
Matthew I
64359d9cd8
Add "/mods" command to list mods to client
2012-07-22 13:36:10 +03:00
Perttu Ahola
75b4322729
Actually fix facedir-rotated nodes placed using minetest.env:place_node()
2012-07-21 21:23:15 +03:00