52 Commits

Author SHA1 Message Date
Alexander Weber
40a23ec119 moreblock panel should not be build for free. Check if a recipe exists for node not in creative. If the node is craftable, the node can be used as payment 2016-10-09 11:24:58 +02:00
Alexander Weber
75563343c1 Support for nodes customizing
Currently hard-coded only in mapping.lua. Some usefull mappings added, like usage of buckets instead of sources for liquids
As usual some small off-topic fixes
2016-10-09 11:24:58 +02:00
Alexander Weber
3124c5ae8f changes (22.09.2016):
- preparation for node overrides
- adjustment on route logic (processing in chunks) for really big buildings (>100.000 nodes)
2016-10-09 11:24:58 +02:00
Alexander Weber
4b4ee70781 small changes for alias usage. Now there are less rebuilds for free 2016-10-09 11:24:58 +02:00
Alexander Weber
08602acbda optimize update_needed. Propose nodes first lower and nearly to the chest 2016-10-09 11:24:58 +02:00
Alexander Weber
4e39bddf66 Using original WorldEdit code to parse WorldEdit files (see towntest_chest/worldedit-serialization.lua)
code cleanup and bugfixes
2016-10-09 11:24:58 +02:00
Alexander Weber
21aeba2bf8 Next enhancement an fixes
- skip_already_placed - usefull to resume build after breaking the chest, or to repair the building if you breaks some building nodes.
- Just replace the chest and select the same building
- optimization in finding the build order for bigger buildings. Hardcoded parameter c_npc_imagination = 600 to limit the calculation.
- If the NPC is on the way, The route can be changed now if a better node is found in the meantime
- small change on npc. take always a step forward for looking to the right direction
- whitespace fixes (yes, geany is great!)
2016-10-09 11:24:58 +02:00
Alexander Weber
fb0a047c0c whitespace fixes, page numbering in file selection screen 2016-09-19 20:52:57 +02:00
Alexander Weber
6087cd44ca - add support for drops variable drops like found for wheat as payment
- add simple paging in file selection since more buildings supported (I copied buildings from instabuild, npcf_builder and mg to my buildings folder)
2016-09-19 00:33:38 +02:00
Alexander Weber
e74e0915ee -more intelligent path finding added for walking
-some bugs fixed
2016-09-18 20:23:13 +02:00
Alexander Weber
3fcb5cb707 add recipe 2016-09-18 00:21:25 +02:00
Alexander Weber
ff7743ec27 added support for newer WorldEdit file format
- develpoed/tested with format version 5
- applying metadata, stored in newer WorldEdit format. So the direction of objects is right now
- more robust. unknown nodes ignored
- differentiation of nodes to place and items as payment. Sample: lrfurn:coffeetable_front is node to place, but lrfurn:coffeetable is item to pay
  (determinated by drop, if the node is masked in creative)
- nodes masked in creative and without drop are placed for free. So doors:hidden, lrfurn:coffeetable_back and other "multiblocks"/helpers will be placed as expected
  (but not in the right order because there is no relation to the door or the right coffeetable in data)
- Now you can just save a building using worldedit and move the file to the towntest_chest/buildings and it should work! I do not provide my sample because ist not pretty :(
2016-09-17 23:54:04 +02:00
Elia Argentieri
7a8c7fc5cd Fixed a division by zero that caused a serialization error with Minetest 0.4.13 + clean up 2015-11-09 23:33:23 +01:00
Elia Argentieri
f8813e37d2 Depend on LuaFileSystem to list files in a directory in a portable way without requesting write access to the mod folder. 2015-11-09 23:25:45 +01:00
cornernote
84fad29509 added screenshot.png 2014-12-14 14:46:46 +10:30
Brett O'Donnell
c09b5e9ff5 Update README.md 2014-12-14 13:07:59 +10:30
Brett O'Donnell
bc3ba2b47d always use 3dmodel, thanks Sokomine on mt forums
ref: https://forum.minetest.net/viewtopic.php?pid=128580#p128580
2014-02-06 23:37:13 +10:30
Brett O'Donnell
732f9bb8e5 fix bug, thanks to Sokomine on minetest forums
ref: https://forum.minetest.net/viewtopic.php?pid=128580#p128580
2014-02-06 23:33:40 +10:30
Brett O'Donnell
030e3ba3ac Update init.lua 2014-01-17 11:03:14 +10:30
Brett O'Donnell
be09c941f1 Update init.lua 2014-01-17 11:03:10 +10:30
Brett O'Donnell
defbd2605c Update init.lua 2014-01-17 11:03:06 +10:30
Brett O'Donnell
8a1a54e754 Update and rename README.txt to README.md 2014-01-16 20:37:58 +10:30
Brett O'Donnell
3b965bda48 Update and rename license.txt to LICENSE 2014-01-16 19:42:41 +10:30
Brett O'Donnell
dc60e24c11 Update README.txt 2012-11-07 16:22:49 -08:00
Brett O'Donnell
b18b97d188 fix bug, thanks @RealBadAngel 2012-10-13 15:08:56 +10:30
Brett O'Donnell
b97cc33522 remove random game_id, not needed 2012-10-13 11:33:10 +10:30
Brett O'Donnell
7d376549f8 added contributors to readme 2012-10-03 18:08:23 +09:30
Brett O'Donnell
b62fb6de59 fix bug 2012-10-02 21:52:14 +09:30
Brett O'Donnell
8aff074158 tweak npc pos detection 2012-10-02 21:16:20 +09:30
Brett O'Donnell
5c6d06dfae cleanup bad blocks from buildings 2012-10-02 12:10:24 +09:30
Brett O'Donnell
23d6b8a0b3 make chests spawn more often 2012-10-02 11:12:26 +09:30
Brett O'Donnell
1bce632ebc chests will be generated on grass 2012-10-01 13:34:37 +09:30
Brett O'Donnell
f0461f6c09 fix 3d player 2012-10-01 11:36:53 +09:30
Brett O'Donnell
db4a1bebfd 2d npc is default 2012-09-30 22:13:26 +09:30
Brett O'Donnell
040b756769 npc enters the third dimension 2012-09-30 21:44:54 +09:30
Brett O'Donnell
cd9afdd473 apples and food make npc move faster 2012-09-30 18:42:49 +09:30
Brett O'Donnell
f0bc0c049f kill builder on dig chest 2012-09-30 17:32:29 +09:30
Brett O'Donnell
fbb50fd6a0 fix bug 2012-09-30 17:03:38 +09:30
Brett O'Donnell
480e709a05 remove from needed when builder takes materials 2012-09-30 03:12:32 +09:30
Brett O'Donnell
6db3120a73 show builders inventory in chest 2012-09-30 03:04:29 +09:30
Brett O'Donnell
f1b4455ff5 make npc build from the ground upwards 2012-09-30 02:11:55 +09:30
Brett O'Donnell
d27c4c077d lose builder inventory on respawn 2012-09-30 01:19:30 +09:30
Brett O'Donnell
d90db63157 npc now has an inventory 2012-09-30 01:16:37 +09:30
Brett O'Donnell
96d6ae8375 fix linux bug take 2 2012-09-29 23:46:25 +09:30
Brett O'Donnell
d8f2c32a0a fix linux issue? 2012-09-29 23:36:54 +09:30
Brett O'Donnell
6bc3371d0d fix var for linux users 2012-09-29 23:05:25 +09:30
Brett O'Donnell
cfdab542ba fix remove npc from old game 2012-09-29 23:02:11 +09:30
Brett O'Donnell
2006c1cfbe fix more bugs, thanks again @PilzAdam 2012-09-29 22:58:10 +09:30
Brett O'Donnell
9700fc03f4 fix bugs 2012-09-29 22:44:53 +09:30
Brett O'Donnell
9c8065fcd3 added better npc - thanks @PilzAdam 2012-09-29 22:32:18 +09:30