aboutsummaryrefslogtreecommitdiff
path: root/src/mapblock.h
Commit message (Expand)AuthorAge
* Migrate to STL containers/algorithms.Ilya Zhuravlev2013-03-11
* Update Copyright YearsSfan52013-02-24
* Change Minetest-c55 to MinetestPilzAdam2013-02-24
* Reorganize ClientMap rendering code for a bit more performancePerttu Ahola2012-09-04
* Fix map deserialization and remove old serialization codePerttu Ahola2012-07-23
* Implement node timersdarkrose2012-07-23
* Optimize headersPerttu Ahola2012-06-17
* Properly and efficiently use split utility headersPerttu Ahola2012-06-17
* Switch the license to be LGPLv2/later, with small parts still remaining as GP...Perttu Ahola2012-06-05
* WIP node metadata, node timersKahrl2012-06-03
* Reduce EnvRef:set_node() time tenfold by postponing the dayNightDiff update u...Perttu Ahola2012-03-29
* MapBlockMesh, mesh animation system, urgent mesh updates, athmospheric light,...Kahrl2012-03-15
* Node placement / mineral / serialization / iron freq / node_dig callbackKahrl2012-01-22
* The huge item definition and item namespace unification patch (itemdef), see ...Kahrl2012-01-12
* Replace old active block random node modifying things with actual ActiveBlock...Perttu Ahola2011-11-29
* Add reason parameter to setModified and print it out to verbosestream when sa...Perttu Ahola2011-11-29
* Node definition namesPerttu Ahola2011-11-29
* GameDef compilesPerttu Ahola2011-11-29
* Create framework for getting rid of global definitions of node/tool/item/what...Perttu Ahola2011-11-29
* Allocate MapBlock::m_node_metadata on heap to allow less header bloatPerttu Ahola2011-11-29
* mobv2Perttu Ahola2011-10-15
* Saner block modification flag operation for not saving everything alwaysPerttu Ahola2011-10-12
* Added a mapblock analyzing function for debugging use and fixed remaining map...Perttu Ahola2011-07-24
* more reorganizing of map codePerttu Ahola2011-06-26
* New map generator added (and SQLite, messed up the commits at that time...) (...Perttu Ahola2011-06-25
* Changed MapBlockObjects to be never written anymore. Incremented version number.Perttu Ahola2011-06-18
* Moved stuff from mapblock{h,cpp} to mapblock_mesh.{h,cpp} and content_mapbloc...Perttu Ahola2011-06-17
* tried to reduce unnecessary map saving disk i/o a bitPerttu Ahola2011-06-05
* Preliminary "active block" stuff + set up test code to grow grass.Perttu Ahola2011-05-22
* implemented rats in new system to verify that it worksPerttu Ahola2011-04-10
* new object systemPerttu Ahola2011-04-10
* now the server buildsPerttu Ahola2011-04-04
* Made a proper queued thread to client for handling some block mesh updates. A...Perttu Ahola2011-04-04
* Modified block mesh generation to have clearer input and output. Instead of b...Perttu Ahola2011-04-03
* commit before some more radical changesPerttu Ahola2011-04-03
* Revert mapgen to best working version (2)Perttu Ahola2011-04-03
* Mapgen is better now. Not a lot, but a bit!Perttu Ahola2011-04-02
* partly working chunk-based map generator (doesn't save properly, spawn is pre...Perttu Ahola2011-02-01
* map generation framework under development... not quite operational at this p...Perttu Ahola2011-01-30
* minecraft-style water done (but no texture animation or sound)Perttu Ahola2011-01-17
* old water removed, some fixes here and therePerttu Ahola2011-01-17
* generate-time lighting optimizationPerttu Ahola2011-01-15
* better grass generation (integration to sunlight propagation algorithms)Perttu Ahola2010-12-26
* a mutex added to TempMods which hopefully fixes rare segfaults on clientPerttu Ahola2010-12-23
* organizing stuff.Perttu Ahola2010-12-21
* Cracking blocks while diggingPerttu Ahola2010-12-21
* some tinkering with gui. removed updating of configuration file at endPerttu Ahola2010-12-20
* added dedicated server build without irrlichtPerttu Ahola2010-12-19
* day/night working client sidePerttu Ahola2010-12-19
* before daynight mesh cachePerttu Ahola2010-12-18
="hl num">16, 7/16 }, { -0.5, -0.5, -0.5, 0.5, -7/16, 0.5 }, }}, sounds = { fall = { name = "soundstuff_mono", gain = 1.0 }, } }) minetest.register_node("soundstuff:footstep_liquid", { description = "Liquid Footstep Sound Node", drawtype = "liquid", tiles = { "soundstuff_node_sound.png^[colorize:#0000FF:127", }, special_tiles = { {name = "soundstuff_node_sound.png^[colorize:#0000FF:127", backface_culling = false}, {name = "soundstuff_node_sound.png^[colorize:#0000FF:127", backface_culling = true}, }, liquids_pointable = true, liquidtype = "source", liquid_alternative_flowing = "soundstuff:footstep_liquid", liquid_alternative_source = "soundstuff:footstep_liquid", liquid_renewable = false, liquid_range = 0, liquid_viscosity = 0, alpha = 190, paramtype = "light", walkable = false, pointable = false, diggable = false, buildable_to = true, is_ground_content = false, post_effect_color = {a = 64, r = 0, g = 0, b = 200}, sounds = { footstep = { name = "soundstuff_mono", gain = 1.0 }, } }) minetest.register_node("soundstuff:footstep_climbable", { description = "Climbable Footstep Sound Node", drawtype = "allfaces", tiles = { "soundstuff_node_climbable.png", }, alpha = 120, paramtype = "light", sunlight_propagates = true, walkable = false, climbable = true, is_ground_content = false, groups = { dig_immediate = 2 }, sounds = { footstep = { name = "soundstuff_mono", gain = 1.0 }, } }) minetest.register_craftitem("soundstuff:eat", { description = "Eat Sound Item".."\n".. "Makes a sound when 'eaten' (with punch key)", inventory_image = "soundstuff_eat.png", on_use = minetest.item_eat(0), sound = { eat = { name = "soundstuff_mono", gain = 1.0 }, } }) minetest.register_tool("soundstuff:breaks", { description = "Break Sound Tool".."\n".. "Digs cracky=3 and more".."\n".. "Makes a sound when it breaks", inventory_image = "soundstuff_node_dug.png", sound = { breaks = { name = "soundstuff_mono", gain = 1.0 }, }, tool_capabilities = { max_drop_level=0, groupcaps={ cracky={times={[2]=2.00, [3]=1.20}, uses=1, maxlevel=0}, choppy={times={[2]=2.00, [3]=1.20}, uses=1, maxlevel=0}, snappy={times={[2]=2.00, [3]=1.20}, uses=1, maxlevel=0}, crumbly={times={[2]=2.00, [3]=1.20}, uses=1, maxlevel=0}, }, }, }) -- Plays sound repeatedly minetest.register_node("soundstuff:positional", { description = "Positional Sound Node", on_construct = function(pos) local timer = minetest.get_node_timer(pos) timer:start(0) end, on_timer = function(pos, elapsed) local node = minetest.get_node(pos) local dist = node.param2 if dist == 0 then dist = nil end minetest.sound_play("soundstuff_mono", { pos = pos, max_hear_distance = dist }) local timer = minetest.get_node_timer(pos) timer:start(0.7) end, on_rightclick = function(pos, node, clicker) node.param2 = (node.param2 + 1) % 64 minetest.set_node(pos, node) if clicker and clicker:is_player() then local dist = node.param2 local diststr if dist == 0 then diststr = "<default>" else diststr = tostring(dist) end minetest.chat_send_player(clicker:get_player_name(), "max_hear_distance = " .. diststr) end end, groups = { dig_immediate = 2 }, tiles = { "soundstuff_node_sound.png" }, })