Compare commits

...

145 Commits

Author SHA1 Message Date
Perttu Ahola
94f1ab4da3 Call this 0.4.dev-20120320 2012-03-20 01:37:28 +02:00
Perttu Ahola
3f75b748cf Fix various things being too fast to break by hand 2012-03-20 01:36:53 +02:00
Perttu Ahola
8181b68531 Remove .hgignore and .hgtags (mercurial isn't used anymore) 2012-03-20 01:28:23 +02:00
Perttu Ahola
2de91f11fb Add mods/mesetint/mods_here.txt to be installed on RUN_IN_PLACE builds 2012-03-20 01:19:47 +02:00
Perttu Ahola
50621ffe85 Fix mod paths 2012-03-20 01:07:02 +02:00
Perttu Ahola
db4911f956 Fix for MSVC and move stuff around a bit in CMakeLists.txt and src/CMakeLists.txt 2012-03-20 01:06:58 +02:00
Perttu Ahola
2a325de7aa Update vc10 build script example in README.txt 2012-03-20 00:37:37 +02:00
Perttu Ahola
b9cc0a7976 Move icon files to misc/ 2012-03-20 00:32:43 +02:00
Perttu Ahola
97b693052c Flatten share/ and user/ in the source and for the RUN_IN_PLACE build 2012-03-20 00:08:00 +02:00
Perttu Ahola
19ed3bb193 Move share/builtin.lua to share/builtin/builtin.lua 2012-03-19 21:37:27 +02:00
Perttu Ahola
895b970a10 Move client textures to the correct place 2012-03-19 21:34:21 +02:00
Perttu Ahola
1f56d71f19 Rework directory structure 2012-03-19 20:44:07 +02:00
Perttu Ahola
1ff20da5b6 Add the mod search path user/mods/gameid 2012-03-19 08:34:38 +02:00
Perttu Ahola
5ef78cd815 Make Lua error output in log clearer 2012-03-19 08:23:48 +02:00
Perttu Ahola
9101b680c0 Do not error() on digprop_* calls but print a warning 2012-03-19 08:23:11 +02:00
Perttu Ahola
d24c56fd4b Unknown nodes can be dug 2012-03-19 08:16:17 +02:00
Perttu Ahola
77d09552ae Warn instead of completely removing minetest.digprop_whatever() Lua functions 2012-03-19 00:29:41 +02:00
Perttu Ahola
dbaccff476 Remove minetest.digprop_whatever() Lua functions (because they are useless now) 2012-03-19 00:20:50 +02:00
Perttu Ahola
dc6cf5cdee Update README.txt a bit 2012-03-19 00:12:07 +02:00
Perttu Ahola
fb3ac49335 Update version to 0.4.dev-20120318 2012-03-18 19:14:20 +02:00
Perttu Ahola
c54a40df06 Attempt to fix build for MSVC 2012-03-18 19:08:13 +02:00
Perttu Ahola
9c4f68e174 Fix getVisibleBrightness() to return sunlight visibility correctly even if not much of world has been loaded 2012-03-18 18:30:21 +02:00
Perttu Ahola
4ee4dfdc13 Make some things diggable by hand by using a special group oddly_breakable_by_hand; also fill in some other groups 2012-03-18 18:20:55 +02:00
Perttu Ahola
2e0c0e9d89 Fix old world search path for non-run-in-place build 2012-03-18 17:17:05 +02:00
Perttu Ahola
db5db587be Move doc/changelog.txt and doc/ancient_main_comment.txt into old/ 2012-03-18 16:43:51 +02:00
Perttu Ahola
569fca5308 Disable word wrap in vertical texts in main menu 2012-03-18 16:32:59 +02:00
Perttu Ahola
b409803527 Fix installation in cmake project files 2012-03-18 16:30:02 +02:00
Perttu Ahola
99d257ae8b "or" -> "||" in content_mapblock.cpp 2012-03-18 16:07:17 +02:00
Perttu Ahola
2f2b7915ea Fix and tune stars 2012-03-18 15:57:25 +02:00
Perttu Ahola
c1cfcb1577 Do not clear address in main menu if starting a singleplayer game by double clicking the world 2012-03-18 15:26:06 +02:00
Perttu Ahola
2e90ed07ac Dynamic sky, fog and cloud colors; sun and moon 2012-03-18 13:42:18 +02:00
Perttu Ahola
58bed83d03 Move ClientMap to clientmap.{h,cpp} 2012-03-16 00:25:18 +02:00
Perttu Ahola
54917e3062 Add Client::getEnv() and remove some unnecessary wrappers 2012-03-15 23:54:10 +02:00
Perttu Ahola
81385682c8 Revert old 4BS/s walk speed for now 2012-03-15 23:11:07 +02:00
Kahrl
807a0d313b MapBlockMesh, mesh animation system, urgent mesh updates, athmospheric light, removed footprints 2012-03-15 21:45:44 +02:00
Perttu Ahola
f9a66c5d46 Tune main menu 2012-03-15 21:37:43 +02:00
Perttu Ahola
60add387e3 Create main menu tab "Settings" for client settings 2012-03-15 18:15:12 +02:00
Perttu Ahola
ca0fd4173c Fix click areas of singleplayer checkboxes 2012-03-15 16:20:26 +02:00
Perttu Ahola
4aa0f040fb Fix initial moving of mouse above the "exit to menu" button in singleplayer mode 2012-03-15 16:20:21 +02:00
Perttu Ahola
5957fed9a7 Fix and improve Server's privilege get/setters 2012-03-15 15:38:59 +02:00
Perttu Ahola
6298878bfa Add "simple singleplayer mode"; Fix a number of GUI things 2012-03-15 15:20:20 +02:00
Perttu Ahola
899004207d Save selected tab 2012-03-15 14:17:05 +02:00
Perttu Ahola
2b200d481f Menu tuning WIP 2012-03-15 13:59:48 +02:00
Perttu Ahola
8551ddc839 Use a more standard order of yes/no/cancel/whatever buttons in dialogs 2012-03-15 13:18:21 +02:00
Perttu Ahola
eea3277b81 Crude tab test in main menu (requires gui redesign for the additional tabs) 2012-03-13 08:50:03 +02:00
Perttu Ahola
11b86f8d8a Add [new] to world name when supplying a non-existent world on command line 2012-03-13 01:46:24 +02:00
Perttu Ahola
71a3c2fcd1 Allow directly supplying world as a parameter, including world.mt 2012-03-13 01:46:19 +02:00
Perttu Ahola
4ff36696ea Move keychange/connect main menu buttons a bit 2012-03-13 01:02:25 +02:00
Perttu Ahola
800d3b4ee7 Fix game selection in world creation (used always the first one) 2012-03-13 00:58:57 +02:00
Perttu Ahola
a0b2c7ba25 Attempt to fix RUN_IN_PLACE autodetection on Linux 2012-03-13 00:51:33 +02:00
Perttu Ahola
64232f0aec Add confirmation menu and make world deletion possible in GUI 2012-03-13 00:48:05 +02:00
Perttu Ahola
591527d878 World creation button and dialog and functionality 2012-03-13 00:06:37 +02:00
Perttu Ahola
82073025cc Remember selected world by path 2012-03-12 22:15:56 +02:00
Perttu Ahola
2c9bb06516 Make finish quicktune and leave it unused (as intended) 2012-03-12 21:27:29 +02:00
Perttu Ahola
18c4a90101 Add quicktune.{cpp,h} 2012-03-12 08:38:15 +02:00
Perttu Ahola
5a8ee4889d Handle certain errors properly when using --go 2012-03-11 21:41:32 +02:00
Perttu Ahola
ea1fdf3201 Add a note about minetest.conf in the key change dialog (because it sucks) 2012-03-11 21:32:03 +02:00
Perttu Ahola
2e61008fd9 Use default_game when making a new world using --world without --gameid 2012-03-11 21:24:29 +02:00
Perttu Ahola
eafde7186f Remove duplicate code in main menu 2012-03-11 21:12:27 +02:00
Perttu Ahola
a72dc388c3 Rename "Delete map" to "Delete world" 2012-03-11 21:03:54 +02:00
Perttu Ahola
618314985d Proper handling of failing to bind server socket 2012-03-11 20:45:43 +02:00
Perttu Ahola
d1d83d7e7f World selection box in main menu (and random fixing) 2012-03-11 20:45:14 +02:00
Perttu Ahola
bcaab74f1f --world implies local game 2012-03-11 16:11:07 +02:00
Perttu Ahola
1b670a293b Fix CreateAllDirs() (failed for relative fully non-existing path) 2012-03-11 16:06:32 +02:00
Perttu Ahola
45f78bdf40 Mention world location at server startup at action level 2012-03-11 15:49:14 +02:00
Perttu Ahola
54eca4e736 Redirect Lua print to minetest.debug 2012-03-11 15:41:53 +02:00
Perttu Ahola
3da05a09b5 --logfile '' = no logging 2012-03-11 15:28:35 +02:00
Perttu Ahola
f79082a46d Remove useless debug output (log at info level) 2012-03-11 15:23:30 +02:00
Perttu Ahola
e71d75ed9a --gameid list 2012-03-11 15:20:42 +02:00
Perttu Ahola
a4a35f659b Update --gameid to manpages 2012-03-11 15:13:10 +02:00
Perttu Ahola
9eba6a349f Update version number to 0.4.dev-20120311 2012-03-11 15:10:34 +02:00
Perttu Ahola
6a1b6d0344 world.mt creation 2012-03-11 15:04:50 +02:00
Perttu Ahola
7f7fb9750d command-line/world game selection 2012-03-11 14:54:23 +02:00
Perttu Ahola
df190b8f87 full_punch_interval = 1.0 for mese pickaxe 2012-03-11 12:30:56 +02:00
Perttu Ahola
af33b3b338 Limit crack update speed 2012-03-11 12:28:41 +02:00
Perttu Ahola
a87d19cd7e When mouse button is held down in air, show continuous animation 2012-03-11 12:22:37 +02:00
Perttu Ahola
611fe41588 Fix log output in ban.cpp 2012-03-11 12:12:21 +02:00
Perttu Ahola
8b6cce18cb Improve command-line parameters 2012-03-11 12:06:59 +02:00
Perttu Ahola
d330430336 Prettify --help output 2012-03-11 11:02:22 +02:00
Perttu Ahola
37b2bc3c0c Move huge comment from the beginning of main.cpp to doc/ancient_main_comment.txt 2012-03-11 10:53:27 +02:00
Perttu Ahola
f49914dd17 --verbose, not --info-on-stderr 2012-03-11 04:22:48 +02:00
Perttu Ahola
f1d9880006 Clean up log messages everywhere 2012-03-11 04:15:45 +02:00
Perttu Ahola
6ec447a1aa Do not print errors when searching for usable configuration file 2012-03-11 01:09:27 +02:00
Perttu Ahola
b485fac33e Fix configuration file behaviour
- Do not rewrite if nothing needs to be changed
- Update at program exit, in addition to updating when continuing from main menu to game
2012-03-11 00:54:51 +02:00
Perttu Ahola
98404ad8ea Increase Peer max_packets_per_second (hopefully doesn't break anything) 2012-03-11 00:20:04 +02:00
Perttu Ahola
e1f5227304 Add description in minetest.conf.example 2012-03-10 23:54:45 +02:00
Perttu Ahola
2de8f915f8 Tune "Connecting to server" and "Waiting content" screens 2012-03-10 23:28:51 +02:00
Kahrl
967f25461b Chat console, including a number of rebases and modifications.
Defaults modified from original: alpha=200, key=F10
2012-03-10 20:11:10 +02:00
Perttu Ahola
0053651814 Starting the game in the pause menu is lame, don't do it\! 2012-03-10 18:21:15 +02:00
Kahrl
7d36833bd4 Set fixed FOV for the wielded item 2012-03-10 18:15:31 +02:00
Kahrl
1bbfd0b6d2 Different implementation of KeyPress::operator==
Fixes some key mapping issues.
2012-03-10 18:10:59 +02:00
Perttu Ahola
4547ace59a Make Camera::updateViewingRange more snappy in following the min/max settings 2012-03-10 18:03:40 +02:00
Perttu Ahola
d74659254b Faster player movement and smaller collision box 2012-03-10 17:28:56 +02:00
Perttu Ahola
55d310b05a dig_immediate=2 -> 0.5 seconds digging time 2012-03-10 17:25:14 +02:00
Perttu Ahola
15da308c2a Set rail to have dig_immediate=2 2012-03-10 17:23:36 +02:00
Perttu Ahola
e80bc6ef58 Tidy up server log output a bit 2012-03-10 17:10:16 +02:00
Perttu Ahola
d81e783665 Clean unit test output 2012-03-10 17:10:16 +02:00
Perttu Ahola
030b63c3d2 Add and tidy up some Server log output for declined connections 2012-03-10 17:10:16 +02:00
Perttu Ahola
f3dba05143 Remove servermain.cpp, use main.cpp with a couple of #ifdefs instead 2012-03-10 17:10:16 +02:00
Perttu Ahola
1020707918 Fix addon and configuration file paths 2012-03-10 17:10:16 +02:00
Perttu Ahola
c89d1cf072 Initial directory structure rework 2012-03-10 17:10:10 +02:00
Perttu Ahola
9c5e422d3a Ban and Auth managers use infostream rather than dstream 2012-03-10 15:49:38 +02:00
Perttu Ahola
5e00141005 Replace dig_immediate=1 with dig_immediate=3 in mods/default/init.lua 2012-03-10 11:28:14 +02:00
Perttu Ahola
fa70413c82 Add a small bunch of notes about groups in mods/default/init.lua 2012-03-10 11:28:14 +02:00
Perttu Ahola
06d2bc7fbd dig_immediate=3 instead of 1 means 0 seconds 2012-03-10 11:28:14 +02:00
Perttu Ahola
1ae9e0afa1 Update mini documentation in mods/default/init.lua a bit 2012-03-10 11:28:14 +02:00
Perttu Ahola
f9da2c9507 Immediate smoke puff when a normal entity is punched to death 2012-03-10 11:28:14 +02:00
Perttu Ahola
989aba1966 Fix and tune things, add tool "recharge" animation, add dummyball 2012-03-10 11:28:14 +02:00
Perttu Ahola
6b7d6c27ee Set proper armor group for experimental:tnt 2012-03-10 11:28:13 +02:00
Perttu Ahola
8db89b8136 LuaEntity armor groups 2012-03-10 11:28:13 +02:00
Perttu Ahola
8c01ad8a9d ClientActiveObject::debugInfoText() 2012-03-10 11:28:13 +02:00
Perttu Ahola
f60a5ec08f Remove header in servermain.cpp to make minetestserver to build 2012-03-10 11:28:13 +02:00
Perttu Ahola
501b8fe743 Damage groups WIP 2012-03-10 11:28:13 +02:00
Perttu Ahola
e9cdb938fe Entity damage system WIP; Remove C++ mobs 2012-03-10 11:28:13 +02:00
Perttu Ahola
f1cb91cd93 Small fix in getHitParams 2012-03-10 11:28:13 +02:00
Perttu Ahola
910186905f Don't draw cracks when digging is impossible 2012-03-10 11:28:13 +02:00
Perttu Ahola
07ed57476f itemgroup.h and ItemGroupList typedef 2012-03-10 11:28:13 +02:00
Perttu Ahola
0b21618a05 Tune group digging time stuff a bit 2012-03-10 11:28:13 +02:00
Perttu Ahola
b49a7c140e remove material from minetest.nodedef_default 2012-03-10 11:28:13 +02:00
Perttu Ahola
562ac3bce9 Digging time groups WIP 2012-03-10 11:28:12 +02:00
Jeija
f21291211c Improve raillike drawtype 2012-03-10 11:16:45 +02:00
Perttu Ahola
d834d6e074 Handle select errno EINTR properly (not doing this breaks at least many profilers) 2012-03-08 10:03:29 +02:00
Perttu Ahola
11716825fc Move profiler measurements into inside of mutex locking for more useful results 2012-03-07 21:54:18 +02:00
Perttu Ahola
0309021359 Add dedicated_server_step setting 2012-03-07 21:44:53 +02:00
Perttu Ahola
14a71590c3 Merge remote-tracking branch 'jn/random-fixes' 2012-02-28 21:47:15 +02:00
Juhani Numminen
a5f6d65c37 Add UNIX man pages to aid package creators. 2012-02-28 21:26:14 +02:00
Juhani Numminen
79326e6287 Add descriptions to command line arguments 2012-02-28 21:03:45 +02:00
Juhani Numminen
c8ec711503 Install icon and .desktop file on Unix systems 2012-02-28 21:03:38 +02:00
celeron55
0f8b91bfba Merge pull request #46 from garrosh/master
Add *~ to .gitignore
2012-02-28 10:44:40 -08:00
Perttu Ahola
b7fd3c8669 Add minetest.get_worldpath() for getting location for custom data 2012-02-28 20:41:26 +02:00
Perttu Ahola
b3f4cbe157 Fix pointed.thing.ref -> pointed_thing.ref in builtin.lua 2012-02-28 19:55:24 +02:00
Perttu Ahola
d0491ce8b6 Add descriptions to minetest.conf.example 2012-02-27 14:27:28 +02:00
Jonathan Neuschäfer
806f10524f server: /give: show the actual stackstring 2012-02-24 23:27:01 +01:00
Jonathan Neuschäfer
50110e00e8 creative inventory: update to use default:fence_wood 2012-02-24 23:27:01 +01:00
Jonathan Neuschäfer
3a89c40e26 mesh: warn only once about render-to-target not being supported 2012-02-24 23:27:01 +01:00
Jonathan Neuschäfer
ff678d1607 tile: remove redundant warning about failing render-to-target 2012-02-24 23:27:01 +01:00
Jonathan Neuschäfer
abab3db23d tile: don't duplicate std::string::find_last_of 2012-02-24 23:26:14 +01:00
Jonathan Neuschäfer
496451c164 itemdef: handle the !render-to-target case 2012-02-24 22:37:16 +01:00
Perttu Ahola
993821a924 Tune brightness stuff and fog color 2012-02-06 17:40:48 +02:00
Perttu Ahola
ad5ac22442 Set default maximum viewing range to a bit more than default server send range to make fog work well 2012-02-06 17:34:45 +02:00
Perttu Ahola
94b25685c5 Fix calculating if block is in viewing range; fix fog and default minimum accordingly 2012-02-06 17:27:54 +02:00
Kahrl
88cdd3a363 Players stay in environment even when dead, damage flash and fall damage fixes
Don't set m_removed on dead players (dead players are indicated by hp == 0). Local
damage flash is shown whatever the cause was (even from Lua set_hp). PlayerCAO
damage flash matches duration of local damage flash. Fall damage is dealt much more consistently (this is done by disallowing jumping when speed.Y is very negative, up to now jumping could sometimes negate fall damage)
2012-02-05 12:06:55 +02:00
Perttu Ahola
e15de8b70d Modify light values to work a bit better with non-smooth lighting 2012-02-05 12:02:40 +02:00
Perttu Ahola
61016962ee Add groups = {} to item definition 2012-02-04 02:20:05 +02:00
Garrosh
ac69a3561a Added Kate backup file scheme to .gitignore for Kate users 2012-01-24 22:38:00 -05:00
246 changed files with 10699 additions and 8554 deletions

40
.gitignore vendored
View File

@@ -1,5 +1,27 @@
map/* ## Generic ignorable patterns and files
world/* *~
.*.swp
*bak*
tags
*.vim
## Non-static Minetest directories
bin/
games/
!games/mesetint
cache/
textures/
sounds/
mods/
!mods/mesetint/mods_here.txt
worlds/
world/
## Configuration/log files
minetest.conf
debug.txt
## Build files
CMakeFiles/* CMakeFiles/*
src/CMakeFiles/* src/CMakeFiles/*
src/Makefile src/Makefile
@@ -9,19 +31,13 @@ src/jthread/CMakeFiles/*
src/jthread/Makefile src/jthread/Makefile
src/jthread/cmake_config.h src/jthread/cmake_config.h
src/jthread/cmake_install.cmake src/jthread/cmake_install.cmake
.*.swp src/jthread/libjthread.a
minetest.conf src/lua/build/
bin/ src/lua/CMakeFiles/
CMakeCache.txt CMakeCache.txt
CPackConfig.cmake CPackConfig.cmake
CPackSourceConfig.cmake CPackSourceConfig.cmake
Makefile Makefile
cmake_install.cmake cmake_install.cmake
src/jthread/libjthread.a
debug.txt
bin/debug.txt
minetestmapper/map.png
locale/ locale/
src/lua/build/
src/lua/CMakeFiles/
*bak*

View File

@@ -1,25 +0,0 @@
map/*
world/*
CMakeFiles/*
src/CMakeFiles/*
src/Makefile
src/cmake_config.h
src/cmake_install.cmake
src/jthread/CMakeFiles/*
src/jthread/Makefile
src/jthread/cmake_config.h
src/jthread/cmake_install.cmake
src/.*.swp
src/sqlite/libsqlite3.a
src/session.vim
util/uloste.png
minetest.conf
debug.txt
bin/
CMakeCache.txt
CPackConfig.cmake
CPackSourceConfig.cmake
Makefile
cmake_install.cmake
src/jthread/libjthread.a
data_temp/*

View File

@@ -1 +0,0 @@
a519d683251105654d2a146ae7b91d3850b6504c 0.2.20110731_3

View File

@@ -10,7 +10,7 @@ project(minetest)
# Also remember to set PROTOCOL_VERSION in clientserver.h when releasing # Also remember to set PROTOCOL_VERSION in clientserver.h when releasing
set(VERSION_MAJOR 0) set(VERSION_MAJOR 0)
set(VERSION_MINOR 4) set(VERSION_MINOR 4)
set(VERSION_PATCH dev-20120122-1) set(VERSION_PATCH dev-20120320)
set(VERSION_STRING "${VERSION_MAJOR}.${VERSION_MINOR}.${VERSION_PATCH}") set(VERSION_STRING "${VERSION_MAJOR}.${VERSION_MINOR}.${VERSION_PATCH}")
MESSAGE(STATUS "*** Will build version ${VERSION_STRING} ***") MESSAGE(STATUS "*** Will build version ${VERSION_STRING} ***")
@@ -49,26 +49,59 @@ find_package(Irrlicht)
# #
if(WIN32) if(WIN32)
set(DATADIR "data") set(SHAREDIR ".")
set(BINDIR "bin") set(BINDIR "bin")
set(DOCDIR "doc") set(DOCDIR "doc")
set(EXAMPLE_CONF_DIR ".") set(EXAMPLE_CONF_DIR ".")
set(LOCALEDIR "locale")
elseif(APPLE) elseif(APPLE)
# random placeholders # Random placeholders; this isn't usually used and may not work
set(DATADIR "share/${PROJECT_NAME}") # See https://github.com/toabi/minetest-mac/
set(SHAREDIR "share/${PROJECT_NAME}")
set(BINDIR "bin") set(BINDIR "bin")
set(DOCDIR "share/doc/${PROJECT_NAME}") set(DOCDIR "share/doc/${PROJECT_NAME}")
set(EXAMPLE_CONF_DIR ".") set(EXAMPLE_CONF_DIR ${DOCDIR})
set(LOCALEDIR "locale")
elseif(UNIX) # Linux, BSD etc elseif(UNIX) # Linux, BSD etc
set(DATADIR "share/${PROJECT_NAME}") if(RUN_IN_PLACE)
set(BINDIR "bin") set(SHAREDIR ".")
set(DOCDIR "share/doc/${PROJECT_NAME}") set(BINDIR "bin")
set(EXAMPLE_CONF_DIR "share/doc/${PROJECT_NAME}") set(DOCDIR "doc")
set(EXAMPLE_CONF_DIR ".")
set(MANDIR "unix/man")
set(XDG_APPS_DIR "unix/applications")
set(ICONDIR "unix/icons")
set(LOCALEDIR "locale")
else()
set(SHAREDIR "share/${PROJECT_NAME}")
set(BINDIR "bin")
set(DOCDIR "share/doc/${PROJECT_NAME}")
set(MANDIR "share/man")
set(EXAMPLE_CONF_DIR ${DOCDIR})
set(XDG_APPS_DIR "share/applications")
set(ICONDIR "share/icons")
set(LOCALEDIR "share/locale")
endif()
endif()
install(DIRECTORY "${CMAKE_CURRENT_SOURCE_DIR}/builtin" DESTINATION "${SHAREDIR}")
install(DIRECTORY "${CMAKE_CURRENT_SOURCE_DIR}/games/mesetint" DESTINATION "${SHAREDIR}/games")
if(BUILD_CLIENT)
#install(DIRECTORY "${CMAKE_CURRENT_SOURCE_DIR}/sounds/base/pack" DESTINATION "${SHAREDIR}/sounds/base")
install(DIRECTORY "${CMAKE_CURRENT_SOURCE_DIR}/textures/base/pack" DESTINATION "${SHAREDIR}/textures/base")
endif()
if(RUN_IN_PLACE)
install(FILES "${CMAKE_CURRENT_SOURCE_DIR}/mods/mesetint/mods_here.txt" DESTINATION "${SHAREDIR}/mods/mesetint")
endif() endif()
install(FILES "README.txt" DESTINATION "${DOCDIR}") install(FILES "README.txt" DESTINATION "${DOCDIR}")
install(FILES "doc/changelog.txt" DESTINATION "${DOCDIR}") install(FILES "minetest.conf.example" DESTINATION "${EXAMPLE_CONF_DIR}")
install(FILES "minetest.conf.example" DESTINATION "${DOCDIR}")
if(UNIX)
install(FILES "doc/minetest.6" "doc/minetestserver.6" DESTINATION "${MANDIR}/man6")
install(FILES "misc/minetest.desktop" DESTINATION "${XDG_APPS_DIR}")
install(FILES "misc/minetest-icon.svg" DESTINATION "${ICONDIR}/hicolor/scalable/apps")
endif()
# #
# Subdirectories # Subdirectories

View File

@@ -1,7 +1,7 @@
Minetest-c55 Minetest-c55
--------------- ---------------
An InfiniMiner/Minecraft inspired game. An InfiniMiner/Minecraft inspired game.
Copyright (c) 2010-2011 Perttu Ahola <celeron55@gmail.com> Copyright (c) 2010-2012 Perttu Ahola <celeron55@gmail.com>
(see source files for other contributors) (see source files for other contributors)
Further documentation: Further documentation:
@@ -100,6 +100,7 @@ Compiling on Windows:
- Make sure you have CMake and a compiler installed. - Make sure you have CMake and a compiler installed.
- Download all the other stuff to DIR and extract them into there. - Download all the other stuff to DIR and extract them into there.
("extract here", not "extract to packagename/") ("extract here", not "extract to packagename/")
NOTE: zlib125dll.zip needs to be extracted into zlib125dll
- All those packages contain a nice base directory in them, which - All those packages contain a nice base directory in them, which
should end up being the direct subdirectories of DIR. should end up being the direct subdirectories of DIR.
- You will end up with a directory structure like this (+=dir, -=file): - You will end up with a directory structure like this (+=dir, -=file):
@@ -176,24 +177,37 @@ Compiling on Windows:
If using MinGW: If using MinGW:
- Using the command line, browse to the build directory and run 'make' - Using the command line, browse to the build directory and run 'make'
(or mingw32-make or whatever it happens to be) (or mingw32-make or whatever it happens to be)
- You may need to copy some of the downloaded DLLs into bin/, see what
running the produced executable tells you it doesn't have.
- You should now have a working game with the executable in - You should now have a working game with the executable in
DIR/minetest/bin/minetest.exe DIR/minetest/bin/minetest.exe
Windows releases of minetest are built using a bat script like this: Windows releases of minetest are built using a bat script like this:
-------------------------------------------------------------------- --------------------------------------------------------------------
set sourcedir=%CD%
set installpath="C:\tmp\minetest_install" set installpath="C:\tmp\minetest_install"
set irrlichtpath="C:\tmp\irrlicht-1.7.2" set irrlichtpath="C:\tmp\irrlicht-1.7.2"
set sourcedir=%CD%
set builddir=%sourcedir%\bvc10 set builddir=%sourcedir%\bvc10
mkdir %builddir% mkdir %builddir%
pushd %builddir% pushd %builddir%
cmake %sourcedir% -G "Visual Studio 10" -DIRRLICHT_SOURCE_DIR=%irrlichtpath% -DRUN_IN_PLACE=1 -DCMAKE_INSTALL_PREFIX=%installpath% cmake %sourcedir% -G "Visual Studio 10" -DIRRLICHT_SOURCE_DIR=%irrlichtpath% -DRUN_IN_PLACE=1 -DCMAKE_INSTALL_PREFIX=%installpath%
if %errorlevel% neq 0 goto fail
"C:\WINDOWS\Microsoft.NET\Framework\v4.0.30319\MSBuild.exe" ALL_BUILD.vcxproj /p:Configuration=Release "C:\WINDOWS\Microsoft.NET\Framework\v4.0.30319\MSBuild.exe" ALL_BUILD.vcxproj /p:Configuration=Release
if %errorlevel% neq 0 goto fail
"C:\WINDOWS\Microsoft.NET\Framework\v4.0.30319\MSBuild.exe" INSTALL.vcxproj /p:Configuration=Release "C:\WINDOWS\Microsoft.NET\Framework\v4.0.30319\MSBuild.exe" INSTALL.vcxproj /p:Configuration=Release
if %errorlevel% neq 0 goto fail
"C:\WINDOWS\Microsoft.NET\Framework\v4.0.30319\MSBuild.exe" PACKAGE.vcxproj /p:Configuration=Release "C:\WINDOWS\Microsoft.NET\Framework\v4.0.30319\MSBuild.exe" PACKAGE.vcxproj /p:Configuration=Release
if %errorlevel% neq 0 goto fail
popd popd
echo Finished.
exit /b 0
:fail
popd
echo Failed.
exit /b 1
License of Minetest-c55 textures and sounds License of Minetest-c55 textures and sounds
------------------------------------------- -------------------------------------------
@@ -277,3 +291,21 @@ FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
IN THE SOFTWARE. IN THE SOFTWARE.
Fonts
---------------
DejaVu Sans Mono:
Fonts are (c) Bitstream (see below). DejaVu changes are in public domain.
Glyphs imported from Arev fonts are (c) Tavmjong Bah (see below)
Bitstream Vera Fonts Copyright:
Copyright (c) 2003 by Bitstream, Inc. All Rights Reserved. Bitstream Vera is
a trademark of Bitstream, Inc.
Arev Fonts Copyright:
Copyright (c) 2006 by Tavmjong Bah. All Rights Reserved.

View File

@@ -5,6 +5,16 @@
-- before loading and running any mods. -- before loading and running any mods.
-- --
--
-- Override some Lua library functions
--
print = minetest.debug
--
--
--
function basic_dump2(o) function basic_dump2(o)
if type(o) == "number" then if type(o) == "number" then
return tostring(o) return tostring(o)
@@ -106,7 +116,7 @@ function minetest.get_pointed_thing_position(pointed_thing, above)
return pointed_thing.under return pointed_thing.under
end end
elseif pointed_thing.type == "object" then elseif pointed_thing.type == "object" then
obj = pointed.thing.ref obj = pointed_thing.ref
if obj ~= nil then if obj ~= nil then
return obj:getpos() return obj:getpos()
else else
@@ -327,9 +337,8 @@ function minetest.node_dig(pos, node, digger)
local drops = minetest.get_node_drops(node.name, wielded:get_name()) local drops = minetest.get_node_drops(node.name, wielded:get_name())
-- Wear out tool -- Wear out tool
mp = def.material tp = wielded:get_tool_capabilities()
tp = wielded:get_tool_digging_properties() dp = minetest.get_dig_params(def.groups, tp)
dp = minetest.get_digging_properties(mp, tp)
wielded:add_wear(dp.wear) wielded:add_wear(dp.wear)
digger:set_wielded_item(wielded) digger:set_wielded_item(wielded)
@@ -359,13 +368,14 @@ minetest.nodedef_default = {
type="node", type="node",
-- name intentionally not defined here -- name intentionally not defined here
description = "", description = "",
groups = {},
inventory_image = "", inventory_image = "",
wield_image = "", wield_image = "",
wield_scale = {x=1,y=1,z=1}, wield_scale = {x=1,y=1,z=1},
stack_max = 99, stack_max = 99,
usable = false, usable = false,
liquids_pointable = false, liquids_pointable = false,
tool_digging_properties = nil, tool_capabilities = nil,
-- Interaction callbacks -- Interaction callbacks
on_place = minetest.item_place, on_place = minetest.item_place,
@@ -402,14 +412,6 @@ minetest.nodedef_default = {
light_source = 0, light_source = 0,
damage_per_second = 0, damage_per_second = 0,
selection_box = {type="regular"}, selection_box = {type="regular"},
material = {
diggablity = "normal",
weight = 0,
crackiness = 0,
crumbliness = 0,
cuttability = 0,
flammability = 0,
},
legacy_facedir_simple = false, legacy_facedir_simple = false,
legacy_wallmounted = false, legacy_wallmounted = false,
} }
@@ -418,12 +420,13 @@ minetest.craftitemdef_default = {
type="craft", type="craft",
-- name intentionally not defined here -- name intentionally not defined here
description = "", description = "",
groups = {},
inventory_image = "", inventory_image = "",
wield_image = "", wield_image = "",
wield_scale = {x=1,y=1,z=1}, wield_scale = {x=1,y=1,z=1},
stack_max = 99, stack_max = 99,
liquids_pointable = false, liquids_pointable = false,
tool_digging_properties = nil, tool_capabilities = nil,
-- Interaction callbacks -- Interaction callbacks
on_place = minetest.item_place, on_place = minetest.item_place,
@@ -435,12 +438,13 @@ minetest.tooldef_default = {
type="tool", type="tool",
-- name intentionally not defined here -- name intentionally not defined here
description = "", description = "",
groups = {},
inventory_image = "", inventory_image = "",
wield_image = "", wield_image = "",
wield_scale = {x=1,y=1,z=1}, wield_scale = {x=1,y=1,z=1},
stack_max = 1, stack_max = 1,
liquids_pointable = false, liquids_pointable = false,
tool_digging_properties = nil, tool_capabilities = nil,
-- Interaction callbacks -- Interaction callbacks
on_place = minetest.item_place, on_place = minetest.item_place,
@@ -452,12 +456,13 @@ minetest.noneitemdef_default = { -- This is used for the hand and unknown items
type="none", type="none",
-- name intentionally not defined here -- name intentionally not defined here
description = "", description = "",
groups = {},
inventory_image = "", inventory_image = "",
wield_image = "", wield_image = "",
wield_scale = {x=1,y=1,z=1}, wield_scale = {x=1,y=1,z=1},
stack_max = 99, stack_max = 99,
liquids_pointable = false, liquids_pointable = false,
tool_digging_properties = nil, tool_capabilities = nil,
-- Interaction callbacks -- Interaction callbacks
on_place = nil, on_place = nil,
@@ -639,7 +644,7 @@ function minetest.register_tool(name, tooldef)
if tooldef.inventory_image == nil and tooldef.image ~= nil then if tooldef.inventory_image == nil and tooldef.image ~= nil then
tooldef.inventory_image = tooldef.image tooldef.inventory_image = tooldef.image
end end
if tooldef.tool_digging_properties == nil and if tooldef.tool_capabilities == nil and
(tooldef.full_punch_interval ~= nil or (tooldef.full_punch_interval ~= nil or
tooldef.basetime ~= nil or tooldef.basetime ~= nil or
tooldef.dt_weight ~= nil or tooldef.dt_weight ~= nil or
@@ -651,7 +656,7 @@ function minetest.register_tool(name, tooldef)
tooldef.dd_crackiness ~= nil or tooldef.dd_crackiness ~= nil or
tooldef.dd_crumbliness ~= nil or tooldef.dd_crumbliness ~= nil or
tooldef.dd_cuttability ~= nil) then tooldef.dd_cuttability ~= nil) then
tooldef.tool_digging_properties = { tooldef.tool_capabilities = {
full_punch_interval = tooldef.full_punch_interval, full_punch_interval = tooldef.full_punch_interval,
basetime = tooldef.basetime, basetime = tooldef.basetime,
dt_weight = tooldef.dt_weight, dt_weight = tooldef.dt_weight,
@@ -703,25 +708,6 @@ end
-- Built-in node definitions. Also defined in C. -- Built-in node definitions. Also defined in C.
-- --
minetest.register_item(":", {
type = "none",
wield_image = "wieldhand.png",
wield_scale = {x=1,y=1,z=2.5},
tool_digging_properties = {
full_punch_interval = 2.0,
basetime = 0.5,
dt_weight = 1,
dt_crackiness = 0,
dt_crumbliness = -1,
dt_cuttability = 0,
basedurability = 50,
dd_weight = 0,
dd_crackiness = 0,
dd_crumbliness = 0,
dd_cuttability = 0,
}
})
minetest.register_item(":unknown", { minetest.register_item(":unknown", {
type = "none", type = "none",
description = "Unknown Item", description = "Unknown Item",
@@ -758,76 +744,26 @@ minetest.register_node(":ignore", {
air_equivalent = true, air_equivalent = true,
}) })
-- The hand (bare definition)
minetest.register_item(":", {
type = "none",
})
-- --
-- Default material types -- Default material types
-- --
function digprop_err()
function minetest.digprop_constanttime(time) minetest.log("info", debug.traceback())
return { minetest.log("info", "WARNING: The minetest.digprop_* functions are obsolete and need to be replaced by item groups.")
diggability = "constant",
constant_time = time,
}
end end
function minetest.digprop_stonelike(toughness) minetest.digprop_constanttime = digprop_err
return { minetest.digprop_stonelike = digprop_err
diggablity = "normal", minetest.digprop_dirtlike = digprop_err
weight = toughness * 5, minetest.digprop_gravellike = digprop_err
crackiness = 1, minetest.digprop_woodlike = digprop_err
crumbliness = -0.1, minetest.digprop_leaveslike = digprop_err
cuttability = -0.2, minetest.digprop_glasslike = digprop_err
}
end
function minetest.digprop_dirtlike(toughness)
return {
diggablity = "normal",
weight = toughness * 1.2,
crackiness = 0,
crumbliness = 1.2,
cuttability = -0.4,
}
end
function minetest.digprop_gravellike(toughness)
return {
diggablity = "normal",
weight = toughness * 2,
crackiness = 0.2,
crumbliness = 1.5,
cuttability = -1.0,
}
end
function minetest.digprop_woodlike(toughness)
return {
diggablity = "normal",
weight = toughness * 1.0,
crackiness = 0.75,
crumbliness = -1.0,
cuttability = 1.5,
}
end
function minetest.digprop_leaveslike(toughness)
return {
diggablity = "normal",
weight = toughness * (-0.5),
crackiness = 0,
crumbliness = 0,
cuttability = 2.0,
}
end
function minetest.digprop_glasslike(toughness)
return {
diggablity = "normal",
weight = toughness * 0.1,
crackiness = 2.0,
crumbliness = -1.0,
cuttability = -1.0,
}
end
-- --
-- Creative inventory -- Creative inventory

View File

@@ -59,7 +59,7 @@ ENDIF()
IF(GETTEXT_FOUND) IF(GETTEXT_FOUND)
SET(GETTEXT_PO_PATH ${CMAKE_SOURCE_DIR}/po) SET(GETTEXT_PO_PATH ${CMAKE_SOURCE_DIR}/po)
SET(GETTEXT_MO_BUILD_PATH ${CMAKE_BINARY_DIR}/locale/<locale>/LC_MESSAGES) SET(GETTEXT_MO_BUILD_PATH ${CMAKE_BINARY_DIR}/locale/<locale>/LC_MESSAGES)
SET(GETTEXT_MO_DEST_PATH ${DATADIR}/../locale/<locale>/LC_MESSAGES) SET(GETTEXT_MO_DEST_PATH ${LOCALEDIR}/<locale>/LC_MESSAGES)
FILE(GLOB GETTEXT_AVAILABLE_LOCALES RELATIVE ${GETTEXT_PO_PATH} "${GETTEXT_PO_PATH}/*") FILE(GLOB GETTEXT_AVAILABLE_LOCALES RELATIVE ${GETTEXT_PO_PATH} "${GETTEXT_PO_PATH}/*")
LIST(REMOVE_ITEM GETTEXT_AVAILABLE_LOCALES minetest.pot) LIST(REMOVE_ITEM GETTEXT_AVAILABLE_LOCALES minetest.pot)
MACRO(SET_MO_PATHS _buildvar _destvar _locale) MACRO(SET_MO_PATHS _buildvar _destvar _locale)

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.3 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.3 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 236 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 598 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.2 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 231 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 199 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.5 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 190 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 190 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 190 B

85
doc/minetest.6 Normal file
View File

@@ -0,0 +1,85 @@
.\" Minetest man page
.TH minetest 6 "11 March 2012" "" ""
.SH NAME
minetest \- Multiplayer infinite-world block sandbox
.SH SYNOPSIS
.B minetest
[ OPTION ... ]
.SH DESCRIPTION
.B Minetest
is one of the first InfiniMiner/Minecraft(/whatever) inspired games (started October 2010), with a goal of taking the survival multiplayer gameplay to a slightly different direction.
.PP
The main design philosophy is to keep it technically simple, stable and portable. It will be kept lightweight enough to run on fairly old hardware.
.SH OPTIONS
.TP
\-\-address <value>
Address to connect to
.TP
\-\-config <value>
Load configuration from specified file
.TP
\-\-disable\-unittests
Disable unit tests
.TP
\-\-enable\-unittests
Enable unit tests
.TP
\-\-gameid <value>
Set gameid
.TP
\-\-go
Disable main menu
.TP
\-\-help
Show allowed options
.TP
\-\-logfile <value>
Set logfile path (debug.txt)
.TP
\-\-map\-dir <value>
Same as --world (deprecated)
.TP
\-\-name <value>
Set player name
.TP
\-\-password <value>
Set password
.TP
\-\-port <value>
Set network port (UDP) to use
.TP
\-\-random\-input
Enable random user input, for testing
.TP
\-\-server
Run dedicated server
.TP
\-\-speedtests
Run speed tests
.TP
\-\-verbose
Print more information to console
.TP
\-\-world <value>
Set world path
.SH BUGS
Please report all bugs to Perttu Ahola <celeron55@gmail.com>.
.SH AUTHOR
.PP
Perttu Ahola <celeron55@gmail.com>
and contributors.
.PP
This man page was originally written by
Juhani Numminen <juhaninumminen0@gmail.com>.
.SH WWW
http://c55.me/minetest/
.SH "SEE ALSO"
.BR minetestserver(6)

64
doc/minetestserver.6 Normal file
View File

@@ -0,0 +1,64 @@
.\" Minetestserver man page
.TH minetestserver 6 "11 March 2012" "" ""
.SH NAME
minetestserver \- Minetest server
.SH SYNOPSIS
.B minetestserver
[ OPTION ... ]
.SH DESCRIPTION
.B Minetest
is one of the first InfiniMiner/Minecraft(/whatever) inspired games (started October 2010), with a goal of taking the survival multiplayer gameplay to a slightly different direction.
.PP
The main design philosophy is to keep it technically simple, stable and portable. It will be kept lightweight enough to run on fairly old hardware.
.SH OPTIONS
.TP
\-\-config <value>
Load configuration from specified file
.TP
\-\-disable\-unittests
Disable unit tests
.TP
\-\-enable\-unittests
Enable unit tests
.TP
\-\-gameid <value>
Set gameid
.TP
\-\-help
Show allowed options
.TP
\-\-logfile <value>
Set logfile path (debug.txt)
.TP
\-\-map\-dir <value>
Same as --world (deprecated)
.TP
\-\-port <value>
Set network port (UDP) to use
.TP
\-\-verbose
Print more information to console
.TP
\-\-world <value>
Set world path
.SH BUGS
Please report all bugs to Perttu Ahola <celeron55@gmail.com>.
.SH AUTHOR
.PP
Perttu Ahola <celeron55@gmail.com>
and contributors.
.PP
This man page was originally written by
Juhani Numminen <juhaninumminen0@gmail.com>.
.SH WWW
http://c55.me/minetest/
.SH "SEE ALSO"
.BR minetest(6)

View File

Before

Width:  |  Height:  |  Size: 329 B

After

Width:  |  Height:  |  Size: 329 B

View File

Before

Width:  |  Height:  |  Size: 363 B

After

Width:  |  Height:  |  Size: 363 B

View File

Before

Width:  |  Height:  |  Size: 369 B

After

Width:  |  Height:  |  Size: 369 B

View File

@@ -118,6 +118,9 @@
-- {type="node", pos={x=, y=, z=}} -- {type="node", pos={x=, y=, z=}}
-- minetest.get_current_modname() -> string -- minetest.get_current_modname() -> string
-- minetest.get_modpath(modname) -> eg. "/home/user/.minetest/usermods/modname" -- minetest.get_modpath(modname) -> eg. "/home/user/.minetest/usermods/modname"
-- ^ Useful for loading additional .lua modules or static data from mod
-- minetest.get_worldpath(modname) -> eg. "/home/user/.minetest/world"
-- ^ Useful for storing custom data
-- --
-- minetest.debug(line) -- minetest.debug(line)
-- ^ Goes to dstream -- ^ Goes to dstream
@@ -199,7 +202,7 @@
-- - getpos() -> {x=num, y=num, z=num} -- - getpos() -> {x=num, y=num, z=num}
-- - setpos(pos); pos={x=num, y=num, z=num} -- - setpos(pos); pos={x=num, y=num, z=num}
-- - moveto(pos, continuous=false): interpolated move -- - moveto(pos, continuous=false): interpolated move
-- - punch(puncher, time_from_last_punch) -- - punch(puncher, time_from_last_punch, tool_capabilities, direction)
-- ^ puncher = an another ObjectRef, -- ^ puncher = an another ObjectRef,
-- ^ time_from_last_punch = time since last punch action of the puncher -- ^ time_from_last_punch = time since last punch action of the puncher
-- - right_click(clicker); clicker = an another ObjectRef -- - right_click(clicker); clicker = an another ObjectRef
@@ -222,6 +225,7 @@
-- - select_horiz_by_yawpitch=false) -- - select_horiz_by_yawpitch=false)
-- - ^ Select sprite from spritesheet with optional animation and DM-style -- - ^ Select sprite from spritesheet with optional animation and DM-style
-- - texture selection based on yaw relative to camera -- - texture selection based on yaw relative to camera
-- - set_armor_groups({group1=rating, group2=rating, ...})
-- - get_entity_name() (DEPRECATED: Will be removed in a future version) -- - get_entity_name() (DEPRECATED: Will be removed in a future version)
-- - get_luaentity() -- - get_luaentity()
-- Player-only: (no-op for other objects) -- Player-only: (no-op for other objects)
@@ -260,7 +264,7 @@
-- - get_free_space(): returns get_stack_max() - get_count() -- - get_free_space(): returns get_stack_max() - get_count()
-- - is_known(): returns true if the item name refers to a defined item type -- - is_known(): returns true if the item name refers to a defined item type
-- - get_definition(): returns the item definition table -- - get_definition(): returns the item definition table
-- - get_tool_digging_properties(): returns the digging properties of the item, -- - get_tool_capabilities(): returns the digging properties of the item,
-- ^ or those of the hand if none are defined for this item type -- ^ or those of the hand if none are defined for this item type
-- - add_wear(amount): increases wear by amount if the item is a tool -- - add_wear(amount): increases wear by amount if the item is a tool
-- - add_item(item): put some item or stack onto this stack, -- - add_item(item): put some item or stack onto this stack,
@@ -308,23 +312,26 @@
-- Item definition options (register_node, register_craftitem, register_tool) -- Item definition options (register_node, register_craftitem, register_tool)
-- { -- {
-- description = "Steel Axe", -- description = "Steel Axe",
-- groups = {}, -- key=name, value=rating; rating=1..3.
-- if rating not applicable, use 1.
-- eg. {wool=1, fluffy=3}
-- {soil=2, outerspace=1, crumbly=1}
-- {bendy=2, snappy=1},
-- {hard=1, metal=1, spikes=1}
-- inventory_image = "default_tool_steelaxe.png", -- inventory_image = "default_tool_steelaxe.png",
-- wield_image = "", -- wield_image = "",
-- wield_scale = {x=1,y=1,z=1}, -- wield_scale = {x=1,y=1,z=1},
-- stack_max = 99, -- stack_max = 99,
-- liquids_pointable = false, -- liquids_pointable = false,
-- tool_digging_properties = { -- tool_capabilities = {
-- full_punch_interval = 1.0, -- full_punch_interval = 1.0,
-- basetime = 1.0, -- max_drop_level=0,
-- dt_weight = 0.5, -- groupcaps={
-- dt_crackiness = -0.2, -- -- For example:
-- dt_crumbliness = 1, -- fleshy={times={[2]=0.80, [3]=0.40}, maxwear=0.05, maxlevel=1},
-- dt_cuttability = -0.5, -- snappy={times={[2]=0.80, [3]=0.40}, maxwear=0.05, maxlevel=1},
-- basedurability = 330, -- choppy={times={[3]=0.90}, maxwear=0.05, maxlevel=0}
-- dd_weight = 0, -- }
-- dd_crackiness = 0,
-- dd_crumbliness = 0,
-- dd_cuttability = 0,
-- } -- }
-- on_drop = func(item, dropper, pos), -- on_drop = func(item, dropper, pos),
-- on_place = func(item, placer, pointed_thing), -- on_place = func(item, placer, pointed_thing),
@@ -362,14 +369,6 @@
-- light_source = 0, -- light_source = 0,
-- damage_per_second = 0, -- damage_per_second = 0,
-- selection_box = {type="regular"}, -- selection_box = {type="regular"},
-- material = {
-- diggablity = "normal",
-- weight = 0,
-- crackiness = 0,
-- crumbliness = 0,
-- cuttability = 0,
-- flammability = 0,
-- },
-- legacy_facedir_simple = false, -- Support maps made in and before January 2012 -- legacy_facedir_simple = false, -- Support maps made in and before January 2012
-- legacy_wallmounted = false, -- Support maps made in and before January 2012 -- legacy_wallmounted = false, -- Support maps made in and before January 2012
-- } -- }
@@ -430,6 +429,18 @@
-- chance = 1, -- (chance of trigger is 1.0/this) -- chance = 1, -- (chance of trigger is 1.0/this)
-- action = func(pos, node, active_object_count, active_object_count_wider), -- action = func(pos, node, active_object_count, active_object_count_wider),
-- } -- }
--
-- Item groups:
-- - Groups always have a rating associated with them. If there is no
-- useful meaning for a rating for a given group, it shall be 1.
-- - When not defined, the rating of a group defaults to 0.
--
-- Special groups:
-- - dig_immediate:
-- - 2: node is removed without tool wear after 1 second or so
-- - 3: node is removed without tool wear immediately (like a torch)
-- - level: Can be used to give an additional sense of progression in the game.
-- - 0 is something that is directly accessible at the start of gameplay
WATER_ALPHA = 160 WATER_ALPHA = 160
WATER_VISC = 1 WATER_VISC = 1
@@ -443,212 +454,166 @@ default = {}
-- Tool definition -- Tool definition
-- --
-- The hand
minetest.register_item(":", {
type = "none",
wield_image = "wieldhand.png",
wield_scale = {x=1,y=1,z=2.5},
tool_capabilities = {
full_punch_interval = 1.0,
max_drop_level = 0,
groupcaps = {
fleshy = {times={[2]=2.00, [3]=1.00}, maxwear=0, maxlevel=1},
crumbly = {times={[3]=0.70}, maxwear=0, maxlevel=1},
snappy = {times={[3]=0.40}, maxwear=0, maxlevel=1},
oddly_breakable_by_hand = {times={[1]=3.50,[2]=2.00,[3]=0.70}, maxwear=0, maxlevel=3},
}
}
})
minetest.register_tool("default:pick_wood", { minetest.register_tool("default:pick_wood", {
description = "Wooden Pickaxe", description = "Wooden Pickaxe",
inventory_image = "default_tool_woodpick.png", inventory_image = "default_tool_woodpick.png",
tool_digging_properties = { tool_capabilities = {
basetime = 2.0, max_drop_level=0,
dt_weight = 0, groupcaps={
dt_crackiness = -0.5, cracky={times={[2]=1.50, [3]=0.80}, maxwear=0.1, maxlevel=1}
dt_crumbliness = 2, }
dt_cuttability = 0,
basedurability = 30,
dd_weight = 0,
dd_crackiness = 0,
dd_crumbliness = 0,
dd_cuttability = 0,
}, },
}) })
minetest.register_tool("default:pick_stone", { minetest.register_tool("default:pick_stone", {
description = "Stone Pickaxe", description = "Stone Pickaxe",
inventory_image = "default_tool_stonepick.png", inventory_image = "default_tool_stonepick.png",
tool_digging_properties = { tool_capabilities = {
basetime = 1.5, max_drop_level=0,
dt_weight = 0, groupcaps={
dt_crackiness = -0.5, cracky={times={[1]=1.50, [2]=0.80, [3]=0.60}, maxwear=0.05, maxlevel=1}
dt_crumbliness = 2, }
dt_cuttability = 0,
basedurability = 100,
dd_weight = 0,
dd_crackiness = 0,
dd_crumbliness = 0,
dd_cuttability = 0,
}, },
}) })
minetest.register_tool("default:pick_steel", { minetest.register_tool("default:pick_steel", {
description = "Steel Pickaxe", description = "Steel Pickaxe",
inventory_image = "default_tool_steelpick.png", inventory_image = "default_tool_steelpick.png",
tool_digging_properties = { tool_capabilities = {
basetime = 1.0, max_drop_level=1,
dt_weight = 0, groupcaps={
dt_crackiness = -0.5, cracky={times={[1]=1.00, [2]=0.60, [3]=0.40}, maxwear=0.1, maxlevel=2}
dt_crumbliness = 2, }
dt_cuttability = 0,
basedurability = 333,
dd_weight = 0,
dd_crackiness = 0,
dd_crumbliness = 0,
dd_cuttability = 0,
}, },
}) })
minetest.register_tool("default:pick_mese", { minetest.register_tool("default:pick_mese", {
description = "Mese Pickaxe", description = "Mese Pickaxe",
inventory_image = "default_tool_mesepick.png", inventory_image = "default_tool_mesepick.png",
tool_digging_properties = { tool_capabilities = {
basetime = 0, full_punch_interval = 1.0,
dt_weight = 0, max_drop_level=3,
dt_crackiness = 0, groupcaps={
dt_crumbliness = 0, cracky={times={[1]=0.2, [2]=0.2, [3]=0.2}, maxwear=0.05, maxlevel=3},
dt_cuttability = 0, crumbly={times={[1]=0.2, [2]=0.2, [3]=0.2}, maxwear=0.05, maxlevel=3},
basedurability = 1337, snappy={times={[1]=0.2, [2]=0.2, [3]=0.2}, maxwear=0.05, maxlevel=3}
dd_weight = 0, }
dd_crackiness = 0,
dd_crumbliness = 0,
dd_cuttability = 0,
}, },
}) })
minetest.register_tool("default:shovel_wood", { minetest.register_tool("default:shovel_wood", {
description = "Wooden Shovel", description = "Wooden Shovel",
inventory_image = "default_tool_woodshovel.png", inventory_image = "default_tool_woodshovel.png",
tool_digging_properties = { tool_capabilities = {
basetime = 2.0, max_drop_level=0,
dt_weight = 0.5, groupcaps={
dt_crackiness = 2, crumbly={times={[1]=1.50, [2]=0.80, [3]=0.50}, maxwear=0.1, maxlevel=1}
dt_crumbliness = -1.5, }
dt_cuttability = 0.3,
basedurability = 30,
dd_weight = 0,
dd_crackiness = 0,
dd_crumbliness = 0,
dd_cuttability = 0,
}, },
}) })
minetest.register_tool("default:shovel_stone", { minetest.register_tool("default:shovel_stone", {
description = "Stone Shovel", description = "Stone Shovel",
inventory_image = "default_tool_stoneshovel.png", inventory_image = "default_tool_stoneshovel.png",
tool_digging_properties = { tool_capabilities = {
basetime = 1.5, max_drop_level=0,
dt_weight = 0.5, groupcaps={
dt_crackiness = 2, crumbly={times={[1]=0.80, [2]=0.50, [3]=0.30}, maxwear=0.05, maxlevel=1}
dt_crumbliness = -1.5, }
dt_cuttability = 0.1,
basedurability = 100,
dd_weight = 0,
dd_crackiness = 0,
dd_crumbliness = 0,
dd_cuttability = 0,
}, },
}) })
minetest.register_tool("default:shovel_steel", { minetest.register_tool("default:shovel_steel", {
description = "Steel Shovel", description = "Steel Shovel",
inventory_image = "default_tool_steelshovel.png", inventory_image = "default_tool_steelshovel.png",
tool_digging_properties = { tool_capabilities = {
basetime = 1.0, max_drop_level=1,
dt_weight = 0.5, groupcaps={
dt_crackiness = 2, crumbly={times={[1]=0.50, [2]=0.35, [3]=0.30}, maxwear=0.1, maxlevel=2}
dt_crumbliness = -1.5, }
dt_cuttability = 0.0,
basedurability = 330,
dd_weight = 0,
dd_crackiness = 0,
dd_crumbliness = 0,
dd_cuttability = 0,
}, },
}) })
minetest.register_tool("default:axe_wood", { minetest.register_tool("default:axe_wood", {
description = "Wooden Axe", description = "Wooden Axe",
inventory_image = "default_tool_woodaxe.png", inventory_image = "default_tool_woodaxe.png",
tool_digging_properties = { tool_capabilities = {
basetime = 2.0, max_drop_level=0,
dt_weight = 0.5, groupcaps={
dt_crackiness = -0.2, choppy={times={[2]=1.40, [3]=0.80}, maxwear=0.1, maxlevel=1},
dt_crumbliness = 1, fleshy={times={[2]=1.50, [3]=0.80}, maxwear=0.1, maxlevel=1}
dt_cuttability = -0.5, }
basedurability = 30,
dd_weight = 0,
dd_crackiness = 0,
dd_crumbliness = 0,
dd_cuttability = 0,
}, },
}) })
minetest.register_tool("default:axe_stone", { minetest.register_tool("default:axe_stone", {
description = "Stone Axe", description = "Stone Axe",
inventory_image = "default_tool_stoneaxe.png", inventory_image = "default_tool_stoneaxe.png",
tool_digging_properties = { tool_capabilities = {
basetime = 1.5, max_drop_level=0,
dt_weight = 0.5, groupcaps={
dt_crackiness = -0.2, choppy={times={[1]=1.50, [2]=1.00, [3]=0.60}, maxwear=0.05, maxlevel=1},
dt_crumbliness = 1, fleshy={times={[2]=1.30, [3]=0.70}, maxwear=0.05, maxlevel=1}
dt_cuttability = -0.5, }
basedurability = 100,
dd_weight = 0,
dd_crackiness = 0,
dd_crumbliness = 0,
dd_cuttability = 0,
}, },
}) })
minetest.register_tool("default:axe_steel", { minetest.register_tool("default:axe_steel", {
description = "Steel Axe", description = "Steel Axe",
inventory_image = "default_tool_steelaxe.png", inventory_image = "default_tool_steelaxe.png",
tool_digging_properties = { tool_capabilities = {
basetime = 1.0, max_drop_level=1,
dt_weight = 0.5, groupcaps={
dt_crackiness = -0.2, choppy={times={[1]=1.00, [2]=0.80, [3]=0.50}, maxwear=0.1, maxlevel=2},
dt_crumbliness = 1, fleshy={times={[2]=1.10, [3]=0.60}, maxwear=0.03, maxlevel=1}
dt_cuttability = -0.5, }
basedurability = 330,
dd_weight = 0,
dd_crackiness = 0,
dd_crumbliness = 0,
dd_cuttability = 0,
}, },
}) })
minetest.register_tool("default:sword_wood", { minetest.register_tool("default:sword_wood", {
description = "Wooden Sword", description = "Wooden Sword",
inventory_image = "default_tool_woodsword.png", inventory_image = "default_tool_woodsword.png",
tool_digging_properties = { tool_capabilities = {
basetime = 3.0, full_punch_interval = 1.0,
dt_weight = 3, max_drop_level=0,
dt_crackiness = 0, groupcaps={
dt_crumbliness = 1, fleshy={times={[2]=1.10, [3]=0.60}, maxwear=0.1, maxlevel=1},
dt_cuttability = -1, snappy={times={[2]=1.00, [3]=0.50}, maxwear=0.1, maxlevel=1},
basedurability = 30, choppy={times={[3]=1.00}, maxwear=0.05, maxlevel=0}
dd_weight = 0, }
dd_crackiness = 0,
dd_crumbliness = 0,
dd_cuttability = 0,
} }
}) })
minetest.register_tool("default:sword_stone", { minetest.register_tool("default:sword_stone", {
description = "Stone Sword", description = "Stone Sword",
inventory_image = "default_tool_stonesword.png", inventory_image = "default_tool_stonesword.png",
tool_digging_properties = { tool_capabilities = {
basetime = 2.5, full_punch_interval = 1.0,
dt_weight = 3, max_drop_level=0,
dt_crackiness = 0, groupcaps={
dt_crumbliness = 1, fleshy={times={[2]=0.80, [3]=0.40}, maxwear=0.05, maxlevel=1},
dt_cuttability = -1, snappy={times={[2]=0.80, [3]=0.40}, maxwear=0.05, maxlevel=1},
basedurability = 100, choppy={times={[3]=0.90}, maxwear=0.05, maxlevel=0}
dd_weight = 0, }
dd_crackiness = 0,
dd_crumbliness = 0,
dd_cuttability = 0,
} }
}) })
minetest.register_tool("default:sword_steel", { minetest.register_tool("default:sword_steel", {
description = "Steel Sword", description = "Steel Sword",
inventory_image = "default_tool_steelsword.png", inventory_image = "default_tool_steelsword.png",
tool_digging_properties = { tool_capabilities = {
basetime = 2.0, full_punch_interval = 1.0,
dt_weight = 3, max_drop_level=1,
dt_crackiness = 0, groupcaps={
dt_crumbliness = 1, fleshy={times={[1]=1.00, [2]=0.40, [3]=0.20}, maxwear=0.1, maxlevel=2},
dt_cuttability = -1, snappy={times={[2]=0.70, [3]=0.30}, maxwear=0.03, maxlevel=1},
basedurability = 330, choppy={times={[3]=0.70}, maxwear=0.03, maxlevel=0}
dd_weight = 0, }
dd_crackiness = 0,
dd_crumbliness = 0,
dd_cuttability = 0,
} }
}) })
@@ -1101,7 +1066,7 @@ minetest.register_node("default:stone", {
description = "Stone", description = "Stone",
tile_images = {"default_stone.png"}, tile_images = {"default_stone.png"},
is_ground_content = true, is_ground_content = true,
material = minetest.digprop_stonelike(1.0), groups = {cracky=3},
drop = 'default:cobble', drop = 'default:cobble',
legacy_mineral = true, legacy_mineral = true,
}) })
@@ -1110,7 +1075,7 @@ minetest.register_node("default:stone_with_coal", {
description = "Stone with coal", description = "Stone with coal",
tile_images = {"default_stone.png^default_mineral_coal.png"}, tile_images = {"default_stone.png^default_mineral_coal.png"},
is_ground_content = true, is_ground_content = true,
material = minetest.digprop_stonelike(1.0), groups = {cracky=3},
drop = 'default:coal_lump', drop = 'default:coal_lump',
}) })
@@ -1118,7 +1083,7 @@ minetest.register_node("default:stone_with_iron", {
description = "Stone with iron", description = "Stone with iron",
tile_images = {"default_stone.png^default_mineral_iron.png"}, tile_images = {"default_stone.png^default_mineral_iron.png"},
is_ground_content = true, is_ground_content = true,
material = minetest.digprop_stonelike(1.0), groups = {cracky=3},
drop = 'default:iron_lump', drop = 'default:iron_lump',
}) })
@@ -1126,7 +1091,7 @@ minetest.register_node("default:dirt_with_grass", {
description = "Dirt with grass", description = "Dirt with grass",
tile_images = {"default_grass.png", "default_dirt.png", "default_dirt.png^default_grass_side.png"}, tile_images = {"default_grass.png", "default_dirt.png", "default_dirt.png^default_grass_side.png"},
is_ground_content = true, is_ground_content = true,
material = minetest.digprop_dirtlike(1.0), groups = {crumbly=3},
drop = 'default:dirt', drop = 'default:dirt',
}) })
@@ -1134,7 +1099,7 @@ minetest.register_node("default:dirt_with_grass_footsteps", {
description = "Dirt with grass and footsteps", description = "Dirt with grass and footsteps",
tile_images = {"default_grass_footsteps.png", "default_dirt.png", "default_dirt.png^default_grass_side.png"}, tile_images = {"default_grass_footsteps.png", "default_dirt.png", "default_dirt.png^default_grass_side.png"},
is_ground_content = true, is_ground_content = true,
material = minetest.digprop_dirtlike(1.0), groups = {crumbly=3},
drop = 'default:dirt', drop = 'default:dirt',
}) })
@@ -1142,28 +1107,28 @@ minetest.register_node("default:dirt", {
description = "Dirt", description = "Dirt",
tile_images = {"default_dirt.png"}, tile_images = {"default_dirt.png"},
is_ground_content = true, is_ground_content = true,
material = minetest.digprop_dirtlike(1.0), groups = {crumbly=3},
}) })
minetest.register_node("default:sand", { minetest.register_node("default:sand", {
description = "Sand", description = "Sand",
tile_images = {"default_sand.png"}, tile_images = {"default_sand.png"},
is_ground_content = true, is_ground_content = true,
material = minetest.digprop_dirtlike(1.0), groups = {crumbly=3},
}) })
minetest.register_node("default:gravel", { minetest.register_node("default:gravel", {
description = "Gravel", description = "Gravel",
tile_images = {"default_gravel.png"}, tile_images = {"default_gravel.png"},
is_ground_content = true, is_ground_content = true,
material = minetest.digprop_gravellike(1.0), groups = {crumbly=2},
}) })
minetest.register_node("default:sandstone", { minetest.register_node("default:sandstone", {
description = "Sandstone", description = "Sandstone",
tile_images = {"default_sandstone.png"}, tile_images = {"default_sandstone.png"},
is_ground_content = true, is_ground_content = true,
material = minetest.digprop_dirtlike(1.0), -- FIXME should this be stonelike? groups = {crumbly=2,cracky=2},
drop = 'default:sand', drop = 'default:sand',
}) })
@@ -1171,7 +1136,7 @@ minetest.register_node("default:clay", {
description = "Clay", description = "Clay",
tile_images = {"default_clay.png"}, tile_images = {"default_clay.png"},
is_ground_content = true, is_ground_content = true,
material = minetest.digprop_dirtlike(1.0), groups = {crumbly=3},
drop = 'default:clay_lump 4', drop = 'default:clay_lump 4',
}) })
@@ -1179,7 +1144,7 @@ minetest.register_node("default:brick", {
description = "Brick", description = "Brick",
tile_images = {"default_brick.png"}, tile_images = {"default_brick.png"},
is_ground_content = true, is_ground_content = true,
material = minetest.digprop_stonelike(1.0), groups = {cracky=3},
drop = 'default:clay_brick 4', drop = 'default:clay_brick 4',
}) })
@@ -1187,14 +1152,14 @@ minetest.register_node("default:tree", {
description = "Tree", description = "Tree",
tile_images = {"default_tree_top.png", "default_tree_top.png", "default_tree.png"}, tile_images = {"default_tree_top.png", "default_tree_top.png", "default_tree.png"},
is_ground_content = true, is_ground_content = true,
material = minetest.digprop_woodlike(1.0), groups = {snappy=2,choppy=2,oddly_breakable_by_hand=1},
}) })
minetest.register_node("default:jungletree", { minetest.register_node("default:jungletree", {
description = "Jungle Tree", description = "Jungle Tree",
tile_images = {"default_jungletree_top.png", "default_jungletree_top.png", "default_jungletree.png"}, tile_images = {"default_jungletree_top.png", "default_jungletree_top.png", "default_jungletree.png"},
is_ground_content = true, is_ground_content = true,
material = minetest.digprop_woodlike(1.0), groups = {snappy=2,choppy=2,oddly_breakable_by_hand=1},
}) })
minetest.register_node("default:junglegrass", { minetest.register_node("default:junglegrass", {
@@ -1206,7 +1171,7 @@ minetest.register_node("default:junglegrass", {
wield_image = "default_junglegrass.png", wield_image = "default_junglegrass.png",
paramtype = "light", paramtype = "light",
walkable = false, walkable = false,
material = minetest.digprop_leaveslike(1.0), groups = {snappy=3},
}) })
minetest.register_node("default:leaves", { minetest.register_node("default:leaves", {
@@ -1215,7 +1180,7 @@ minetest.register_node("default:leaves", {
visual_scale = 1.3, visual_scale = 1.3,
tile_images = {"default_leaves.png"}, tile_images = {"default_leaves.png"},
paramtype = "light", paramtype = "light",
material = minetest.digprop_leaveslike(1.0), groups = {snappy=3},
drop = { drop = {
max_items = 1, max_items = 1,
items = { items = {
@@ -1237,7 +1202,7 @@ minetest.register_node("default:cactus", {
description = "Cactus", description = "Cactus",
tile_images = {"default_cactus_top.png", "default_cactus_top.png", "default_cactus_side.png"}, tile_images = {"default_cactus_top.png", "default_cactus_top.png", "default_cactus_side.png"},
is_ground_content = true, is_ground_content = true,
material = minetest.digprop_woodlike(0.75), groups = {snappy=2,choppy=3},
}) })
minetest.register_node("default:papyrus", { minetest.register_node("default:papyrus", {
@@ -1249,14 +1214,14 @@ minetest.register_node("default:papyrus", {
paramtype = "light", paramtype = "light",
is_ground_content = true, is_ground_content = true,
walkable = false, walkable = false,
material = minetest.digprop_leaveslike(0.5), groups = {snappy=3},
}) })
minetest.register_node("default:bookshelf", { minetest.register_node("default:bookshelf", {
description = "Bookshelf", description = "Bookshelf",
tile_images = {"default_wood.png", "default_wood.png", "default_bookshelf.png"}, tile_images = {"default_wood.png", "default_wood.png", "default_bookshelf.png"},
is_ground_content = true, is_ground_content = true,
material = minetest.digprop_woodlike(0.75), groups = {snappy=2,choppy=3,oddly_breakable_by_hand=2},
}) })
minetest.register_node("default:glass", { minetest.register_node("default:glass", {
@@ -1267,7 +1232,7 @@ minetest.register_node("default:glass", {
paramtype = "light", paramtype = "light",
sunlight_propagates = true, sunlight_propagates = true,
is_ground_content = true, is_ground_content = true,
material = minetest.digprop_glasslike(1.0), groups = {snappy=2,cracky=3,oddly_breakable_by_hand=3},
}) })
minetest.register_node("default:fence_wood", { minetest.register_node("default:fence_wood", {
@@ -1282,7 +1247,7 @@ minetest.register_node("default:fence_wood", {
type = "fixed", type = "fixed",
fixed = {-1/7, -1/2, -1/7, 1/7, 1/2, 1/7}, fixed = {-1/7, -1/2, -1/7, 1/7, 1/2, 1/7},
}, },
material = minetest.digprop_woodlike(0.75), groups = {snappy=2,choppy=2,oddly_breakable_by_hand=2},
}) })
minetest.register_node("default:rail", { minetest.register_node("default:rail", {
@@ -1298,7 +1263,7 @@ minetest.register_node("default:rail", {
type = "fixed", type = "fixed",
--fixed = <default> --fixed = <default>
}, },
material = minetest.digprop_dirtlike(0.75), groups = {bendy=2,snappy=1,dig_immediate=2},
}) })
minetest.register_node("default:ladder", { minetest.register_node("default:ladder", {
@@ -1318,7 +1283,7 @@ minetest.register_node("default:ladder", {
--wall_bottom = = <default> --wall_bottom = = <default>
--wall_side = = <default> --wall_side = = <default>
}, },
material = minetest.digprop_woodlike(0.5), groups = {snappy=2,choppy=2,oddly_breakable_by_hand=3},
legacy_wallmounted = true, legacy_wallmounted = true,
}) })
@@ -1326,14 +1291,14 @@ minetest.register_node("default:wood", {
description = "Wood", description = "Wood",
tile_images = {"default_wood.png"}, tile_images = {"default_wood.png"},
is_ground_content = true, is_ground_content = true,
material = minetest.digprop_woodlike(0.75), groups = {snappy=2,choppy=2,oddly_breakable_by_hand=2},
}) })
minetest.register_node("default:mese", { minetest.register_node("default:mese", {
description = "Mese", description = "Mese",
tile_images = {"default_mese.png"}, tile_images = {"default_mese.png"},
is_ground_content = true, is_ground_content = true,
material = minetest.digprop_stonelike(0.5), groups = {cracky=1},
}) })
minetest.register_node("default:cloud", { minetest.register_node("default:cloud", {
@@ -1362,6 +1327,7 @@ minetest.register_node("default:water_flowing", {
{image="default_water.png", backface_culling=false}, {image="default_water.png", backface_culling=false},
{image="default_water.png", backface_culling=true}, {image="default_water.png", backface_culling=true},
}, },
groups = {water=3, liquid=3},
}) })
minetest.register_node("default:water_source", { minetest.register_node("default:water_source", {
@@ -1384,6 +1350,7 @@ minetest.register_node("default:water_source", {
-- New-style water source material (mostly unused) -- New-style water source material (mostly unused)
{image="default_water.png", backface_culling=false}, {image="default_water.png", backface_culling=false},
}, },
groups = {water=3, liquid=3},
}) })
minetest.register_node("default:lava_flowing", { minetest.register_node("default:lava_flowing", {
@@ -1407,6 +1374,7 @@ minetest.register_node("default:lava_flowing", {
{image="default_lava.png", backface_culling=false}, {image="default_lava.png", backface_culling=false},
{image="default_lava.png", backface_culling=true}, {image="default_lava.png", backface_culling=true},
}, },
groups = {lava=3, liquid=2, hot=3},
}) })
minetest.register_node("default:lava_source", { minetest.register_node("default:lava_source", {
@@ -1430,6 +1398,7 @@ minetest.register_node("default:lava_source", {
-- New-style lava source material (mostly unused) -- New-style lava source material (mostly unused)
{image="default_lava.png", backface_culling=false}, {image="default_lava.png", backface_culling=false},
}, },
groups = {lava=3, liquid=2, hot=3},
}) })
minetest.register_node("default:torch", { minetest.register_node("default:torch", {
@@ -1449,7 +1418,7 @@ minetest.register_node("default:torch", {
wall_bottom = {-0.1, -0.5, -0.1, 0.1, -0.5+0.6, 0.1}, wall_bottom = {-0.1, -0.5, -0.1, 0.1, -0.5+0.6, 0.1},
wall_side = {-0.5, -0.3, -0.1, -0.5+0.3, 0.3, 0.1}, wall_side = {-0.5, -0.3, -0.1, -0.5+0.3, 0.3, 0.1},
}, },
material = minetest.digprop_constanttime(0.0), groups = {choppy=2,dig_immediate=3},
legacy_wallmounted = true, legacy_wallmounted = true,
}) })
@@ -1470,7 +1439,7 @@ minetest.register_node("default:sign_wall", {
--wall_bottom = <default> --wall_bottom = <default>
--wall_side = <default> --wall_side = <default>
}, },
material = minetest.digprop_constanttime(0.5), groups = {choppy=2,dig_immediate=2},
legacy_wallmounted = true, legacy_wallmounted = true,
}) })
@@ -1480,7 +1449,7 @@ minetest.register_node("default:chest", {
"default_chest_side.png", "default_chest_side.png", "default_chest_front.png"}, "default_chest_side.png", "default_chest_side.png", "default_chest_front.png"},
paramtype2 = "facedir", paramtype2 = "facedir",
metadata_name = "chest", metadata_name = "chest",
material = minetest.digprop_woodlike(1.0), groups = {snappy=2,choppy=2,oddly_breakable_by_hand=2},
legacy_facedir_simple = true, legacy_facedir_simple = true,
}) })
@@ -1490,7 +1459,7 @@ minetest.register_node("default:chest_locked", {
"default_chest_side.png", "default_chest_side.png", "default_chest_lock.png"}, "default_chest_side.png", "default_chest_side.png", "default_chest_lock.png"},
paramtype2 = "facedir", paramtype2 = "facedir",
metadata_name = "locked_chest", metadata_name = "locked_chest",
material = minetest.digprop_woodlike(1.0), groups = {snappy=2,choppy=2,oddly_breakable_by_hand=2},
legacy_facedir_simple = true, legacy_facedir_simple = true,
}) })
@@ -1500,7 +1469,7 @@ minetest.register_node("default:furnace", {
"default_furnace_side.png", "default_furnace_side.png", "default_furnace_front.png"}, "default_furnace_side.png", "default_furnace_side.png", "default_furnace_front.png"},
paramtype2 = "facedir", paramtype2 = "facedir",
metadata_name = "furnace", metadata_name = "furnace",
material = minetest.digprop_stonelike(3.0), groups = {cracky=2},
legacy_facedir_simple = true, legacy_facedir_simple = true,
}) })
@@ -1508,21 +1477,21 @@ minetest.register_node("default:cobble", {
description = "Cobble", description = "Cobble",
tile_images = {"default_cobble.png"}, tile_images = {"default_cobble.png"},
is_ground_content = true, is_ground_content = true,
material = minetest.digprop_stonelike(0.9), groups = {cracky=3},
}) })
minetest.register_node("default:mossycobble", { minetest.register_node("default:mossycobble", {
description = "Mossy Cobble", description = "Mossy Cobble",
tile_images = {"default_mossycobble.png"}, tile_images = {"default_mossycobble.png"},
is_ground_content = true, is_ground_content = true,
material = minetest.digprop_stonelike(0.8), groups = {cracky=3},
}) })
minetest.register_node("default:steelblock", { minetest.register_node("default:steelblock", {
description = "Steel Block", description = "Steel Block",
tile_images = {"default_steel_block.png"}, tile_images = {"default_steel_block.png"},
is_ground_content = true, is_ground_content = true,
material = minetest.digprop_stonelike(5.0), groups = {snappy=1,bendy=2},
}) })
minetest.register_node("default:nyancat", { minetest.register_node("default:nyancat", {
@@ -1531,7 +1500,7 @@ minetest.register_node("default:nyancat", {
"default_nc_side.png", "default_nc_back.png", "default_nc_front.png"}, "default_nc_side.png", "default_nc_back.png", "default_nc_front.png"},
inventory_image = "default_nc_front.png", inventory_image = "default_nc_front.png",
paramtype2 = "facedir", paramtype2 = "facedir",
material = minetest.digprop_stonelike(3.0), groups = {cracky=2},
legacy_facedir_simple = true, legacy_facedir_simple = true,
}) })
@@ -1539,7 +1508,7 @@ minetest.register_node("default:nyancat_rainbow", {
description = "Nyancat Rainbow", description = "Nyancat Rainbow",
tile_images = {"default_nc_rb.png"}, tile_images = {"default_nc_rb.png"},
inventory_image = "default_nc_rb.png", inventory_image = "default_nc_rb.png",
material = minetest.digprop_stonelike(3.0), groups = {cracky=2},
}) })
minetest.register_node("default:sapling", { minetest.register_node("default:sapling", {
@@ -1551,7 +1520,7 @@ minetest.register_node("default:sapling", {
wield_image = "default_sapling.png", wield_image = "default_sapling.png",
paramtype = "light", paramtype = "light",
walkable = false, walkable = false,
material = minetest.digprop_constanttime(0.0), groups = {snappy=2,dig_immediate=3},
}) })
minetest.register_node("default:apple", { minetest.register_node("default:apple", {
@@ -1563,7 +1532,7 @@ minetest.register_node("default:apple", {
paramtype = "light", paramtype = "light",
sunlight_propagates = true, sunlight_propagates = true,
walkable = false, walkable = false,
material = minetest.digprop_constanttime(0.0), groups = {fleshy=3,dig_immediate=3},
on_use = minetest.item_eat(4), on_use = minetest.item_eat(4),
}) })
@@ -1641,7 +1610,7 @@ minetest.add_to_creative_inventory('default:cactus')
minetest.add_to_creative_inventory('default:papyrus') minetest.add_to_creative_inventory('default:papyrus')
minetest.add_to_creative_inventory('default:bookshelf') minetest.add_to_creative_inventory('default:bookshelf')
minetest.add_to_creative_inventory('default:glass') minetest.add_to_creative_inventory('default:glass')
minetest.add_to_creative_inventory('default:fence') minetest.add_to_creative_inventory('default:fence_wood')
minetest.add_to_creative_inventory('default:rail') minetest.add_to_creative_inventory('default:rail')
minetest.add_to_creative_inventory('default:mese') minetest.add_to_creative_inventory('default:mese')
minetest.add_to_creative_inventory('default:chest') minetest.add_to_creative_inventory('default:chest')
@@ -1772,6 +1741,9 @@ local function handle_give_command(cmd, giver, receiver, stackstring)
else else
partiality = "partially " partiality = "partially "
end end
-- The actual item stack string may be different from what the "giver"
-- entered (e.g. big numbers are always interpreted as 2^16-1).
stackstring = itemstack:to_string()
if giver == receiver then if giver == receiver then
minetest.chat_send_player(giver, '"'..stackstring minetest.chat_send_player(giver, '"'..stackstring
..'" '..partiality..'added to inventory.'); ..'" '..partiality..'added to inventory.');

View File

Before

Width:  |  Height:  |  Size: 1.1 KiB

After

Width:  |  Height:  |  Size: 1.1 KiB

View File

Before

Width:  |  Height:  |  Size: 203 B

After

Width:  |  Height:  |  Size: 203 B

View File

Before

Width:  |  Height:  |  Size: 292 B

After

Width:  |  Height:  |  Size: 292 B

View File

Before

Width:  |  Height:  |  Size: 597 B

After

Width:  |  Height:  |  Size: 597 B

View File

Before

Width:  |  Height:  |  Size: 604 B

After

Width:  |  Height:  |  Size: 604 B

View File

Before

Width:  |  Height:  |  Size: 279 B

After

Width:  |  Height:  |  Size: 279 B

View File

Before

Width:  |  Height:  |  Size: 236 B

After

Width:  |  Height:  |  Size: 236 B

View File

Before

Width:  |  Height:  |  Size: 167 B

After

Width:  |  Height:  |  Size: 167 B

View File

Before

Width:  |  Height:  |  Size: 224 B

After

Width:  |  Height:  |  Size: 224 B

View File

Before

Width:  |  Height:  |  Size: 151 B

After

Width:  |  Height:  |  Size: 151 B

View File

Before

Width:  |  Height:  |  Size: 142 B

After

Width:  |  Height:  |  Size: 142 B

View File

Before

Width:  |  Height:  |  Size: 613 B

After

Width:  |  Height:  |  Size: 613 B

View File

Before

Width:  |  Height:  |  Size: 249 B

After

Width:  |  Height:  |  Size: 249 B

View File

Before

Width:  |  Height:  |  Size: 210 B

After

Width:  |  Height:  |  Size: 210 B

View File

Before

Width:  |  Height:  |  Size: 118 B

After

Width:  |  Height:  |  Size: 118 B

View File

Before

Width:  |  Height:  |  Size: 933 B

After

Width:  |  Height:  |  Size: 933 B

View File

Before

Width:  |  Height:  |  Size: 830 B

After

Width:  |  Height:  |  Size: 830 B

View File

Before

Width:  |  Height:  |  Size: 1.5 KiB

After

Width:  |  Height:  |  Size: 1.5 KiB

View File

Before

Width:  |  Height:  |  Size: 539 B

After

Width:  |  Height:  |  Size: 539 B

View File

Before

Width:  |  Height:  |  Size: 246 B

After

Width:  |  Height:  |  Size: 246 B

View File

Before

Width:  |  Height:  |  Size: 236 B

After

Width:  |  Height:  |  Size: 236 B

View File

Before

Width:  |  Height:  |  Size: 978 B

After

Width:  |  Height:  |  Size: 978 B

View File

Before

Width:  |  Height:  |  Size: 874 B

After

Width:  |  Height:  |  Size: 874 B

View File

Before

Width:  |  Height:  |  Size: 856 B

After

Width:  |  Height:  |  Size: 856 B

View File

Before

Width:  |  Height:  |  Size: 878 B

After

Width:  |  Height:  |  Size: 878 B

View File

Before

Width:  |  Height:  |  Size: 591 B

After

Width:  |  Height:  |  Size: 591 B

View File

Before

Width:  |  Height:  |  Size: 936 B

After

Width:  |  Height:  |  Size: 936 B

View File

Before

Width:  |  Height:  |  Size: 672 B

After

Width:  |  Height:  |  Size: 672 B

View File

Before

Width:  |  Height:  |  Size: 502 B

After

Width:  |  Height:  |  Size: 502 B

View File

Before

Width:  |  Height:  |  Size: 507 B

After

Width:  |  Height:  |  Size: 507 B

View File

Before

Width:  |  Height:  |  Size: 395 B

After

Width:  |  Height:  |  Size: 395 B

View File

Before

Width:  |  Height:  |  Size: 357 B

After

Width:  |  Height:  |  Size: 357 B

View File

Before

Width:  |  Height:  |  Size: 1.6 KiB

After

Width:  |  Height:  |  Size: 1.6 KiB

View File

Before

Width:  |  Height:  |  Size: 203 B

After

Width:  |  Height:  |  Size: 203 B

View File

Before

Width:  |  Height:  |  Size: 952 B

After

Width:  |  Height:  |  Size: 952 B

View File

Before

Width:  |  Height:  |  Size: 1.6 KiB

After

Width:  |  Height:  |  Size: 1.6 KiB

View File

Before

Width:  |  Height:  |  Size: 965 B

After

Width:  |  Height:  |  Size: 965 B

View File

Before

Width:  |  Height:  |  Size: 303 B

After

Width:  |  Height:  |  Size: 303 B

View File

Before

Width:  |  Height:  |  Size: 410 B

After

Width:  |  Height:  |  Size: 410 B

View File

Before

Width:  |  Height:  |  Size: 203 B

After

Width:  |  Height:  |  Size: 203 B

View File

Before

Width:  |  Height:  |  Size: 260 B

After

Width:  |  Height:  |  Size: 260 B

View File

Before

Width:  |  Height:  |  Size: 242 B

After

Width:  |  Height:  |  Size: 242 B

View File

Before

Width:  |  Height:  |  Size: 366 B

After

Width:  |  Height:  |  Size: 366 B

View File

Before

Width:  |  Height:  |  Size: 507 B

After

Width:  |  Height:  |  Size: 507 B

View File

Before

Width:  |  Height:  |  Size: 555 B

After

Width:  |  Height:  |  Size: 555 B

View File

Before

Width:  |  Height:  |  Size: 545 B

After

Width:  |  Height:  |  Size: 545 B

View File

Before

Width:  |  Height:  |  Size: 542 B

After

Width:  |  Height:  |  Size: 542 B

View File

Before

Width:  |  Height:  |  Size: 1.3 KiB

After

Width:  |  Height:  |  Size: 1.3 KiB

View File

Before

Width:  |  Height:  |  Size: 772 B

After

Width:  |  Height:  |  Size: 772 B

View File

Before

Width:  |  Height:  |  Size: 502 B

After

Width:  |  Height:  |  Size: 502 B

View File

Before

Width:  |  Height:  |  Size: 233 B

After

Width:  |  Height:  |  Size: 233 B

View File

Before

Width:  |  Height:  |  Size: 489 B

After

Width:  |  Height:  |  Size: 489 B

View File

Before

Width:  |  Height:  |  Size: 219 B

After

Width:  |  Height:  |  Size: 219 B

View File

Before

Width:  |  Height:  |  Size: 207 B

After

Width:  |  Height:  |  Size: 207 B

View File

Before

Width:  |  Height:  |  Size: 182 B

After

Width:  |  Height:  |  Size: 182 B

View File

Before

Width:  |  Height:  |  Size: 806 B

After

Width:  |  Height:  |  Size: 806 B

View File

Before

Width:  |  Height:  |  Size: 161 B

After

Width:  |  Height:  |  Size: 161 B

View File

Before

Width:  |  Height:  |  Size: 186 B

After

Width:  |  Height:  |  Size: 186 B

View File

Before

Width:  |  Height:  |  Size: 264 B

After

Width:  |  Height:  |  Size: 264 B

View File

Before

Width:  |  Height:  |  Size: 252 B

After

Width:  |  Height:  |  Size: 252 B

View File

Before

Width:  |  Height:  |  Size: 927 B

After

Width:  |  Height:  |  Size: 927 B

View File

Before

Width:  |  Height:  |  Size: 271 B

After

Width:  |  Height:  |  Size: 271 B

View File

Before

Width:  |  Height:  |  Size: 216 B

After

Width:  |  Height:  |  Size: 216 B

View File

Before

Width:  |  Height:  |  Size: 291 B

After

Width:  |  Height:  |  Size: 291 B

View File

Before

Width:  |  Height:  |  Size: 931 B

After

Width:  |  Height:  |  Size: 931 B

View File

Before

Width:  |  Height:  |  Size: 262 B

After

Width:  |  Height:  |  Size: 262 B

View File

Before

Width:  |  Height:  |  Size: 203 B

After

Width:  |  Height:  |  Size: 203 B

View File

Before

Width:  |  Height:  |  Size: 301 B

After

Width:  |  Height:  |  Size: 301 B

View File

Before

Width:  |  Height:  |  Size: 927 B

After

Width:  |  Height:  |  Size: 927 B

View File

Before

Width:  |  Height:  |  Size: 245 B

After

Width:  |  Height:  |  Size: 245 B

View File

Before

Width:  |  Height:  |  Size: 203 B

After

Width:  |  Height:  |  Size: 203 B

View File

Before

Width:  |  Height:  |  Size: 255 B

After

Width:  |  Height:  |  Size: 255 B

View File

Before

Width:  |  Height:  |  Size: 925 B

After

Width:  |  Height:  |  Size: 925 B

View File

Before

Width:  |  Height:  |  Size: 913 B

After

Width:  |  Height:  |  Size: 913 B

Some files were not shown because too many files have changed in this diff Show More