mirror of
				https://github.com/luanti-org/minetest_game.git
				synced 2025-10-31 07:35:22 +01:00 
			
		
		
		
	Compare commits
	
		
			128 Commits
		
	
	
		
	
	| Author | SHA1 | Date | |
|---|---|---|---|
|  | 8863527bb6 | ||
|  | fbbc7fc996 | ||
|  | b9dc758fef | ||
|  | 8b3b92dfdf | ||
|  | 07a8067348 | ||
|  | 3a863053c0 | ||
|  | 91ac075cff | ||
|  | fe9cdba0ec | ||
|  | 8d9aa07752 | ||
|  | 34b410319e | ||
|  | 3ea648f5bf | ||
|  | 232cc2bd1c | ||
|  | db632b67bf | ||
|  | 1420376e32 | ||
|  | 9bf64b61c2 | ||
|  | f255e36d78 | ||
|  | d3e26dba18 | ||
|  | 176ddba176 | ||
|  | eac4795326 | ||
|  | da39bae50e | ||
|  | 7e9a54abaf | ||
|  | beb0aefa2d | ||
|  | 1940961d63 | ||
|  | 6e32287a42 | ||
|  | 1082466796 | ||
|  | 258332578a | ||
|  | 150122bfe7 | ||
|  | d04b709181 | ||
|  | c0335e24c9 | ||
|  | f176ba4873 | ||
|  | 5b21d1de34 | ||
|  | 710605687b | ||
|  | 10dce79451 | ||
|  | 0f764bf447 | ||
|  | 00a8bd521a | ||
|  | 2f6d0bf267 | ||
|  | d9f8c6cc43 | ||
|  | 5b1875ef41 | ||
|  | 5017f3b614 | ||
|  | 6fea665fcc | ||
|  | dd71dcbcf6 | ||
|  | f9a9e87af6 | ||
|  | 7caa5d36f2 | ||
|  | 7c1fd9c24e | ||
|  | ef7df329d2 | ||
|  | 6042e963f7 | ||
|  | 93a49f082c | ||
|  | a00ff24df9 | ||
|  | 0f369b43fe | ||
|  | f87c3d05ae | ||
|  | 1c413ede9a | ||
|  | 8c9821b227 | ||
|  | ce1eaeebbe | ||
|  | f2a07b0a51 | ||
|  | c800398593 | ||
|  | 05375c0fd4 | ||
|  | 23ceb30e88 | ||
|  | 106c36da33 | ||
|  | 86a55d3584 | ||
|  | b31795dd04 | ||
|  | 3f7cd062c3 | ||
|  | 09bed49b5a | ||
|  | 00f9287075 | ||
|  | cbb0529ace | ||
|  | b4c7522248 | ||
|  | c42a525ce8 | ||
|  | 1f7ea89cb6 | ||
|  | 888383a812 | ||
|  | 88114a74e9 | ||
|  | e4adb01fbf | ||
|  | ea992bdace | ||
|  | bb9279ccb8 | ||
|  | d99a176b69 | ||
|  | 7e16ec7a2f | ||
|  | e8097c9e87 | ||
|  | 5c3e4b1d20 | ||
|  | 553b0f9d72 | ||
|  | 7269711911 | ||
|  | 3a3f71aa50 | ||
|  | fac8f390b1 | ||
|  | 4eadf80634 | ||
|  | e5ebb36cd5 | ||
|  | 2063fcd075 | ||
|  | a2254bd0af | ||
|  | 7f830124f7 | ||
|  | a5bde8e9ba | ||
|  | 6716fc74ec | ||
|  | c32b8adaa3 | ||
|  | 4282a93a02 | ||
|  | d16612c1cb | ||
|  | 9fe877ef99 | ||
|  | a81a7e0c78 | ||
|  | 9b226c7045 | ||
|  | 773011fd85 | ||
|  | c3403936d3 | ||
|  | b701e500aa | ||
|  | 37710866f0 | ||
|  | bfb84da39c | ||
|  | 3bca295da8 | ||
|  | 83fb6fe872 | ||
|  | 95aaec6670 | ||
|  | 5b1d5819e5 | ||
|  | 3d530e0c25 | ||
|  | e7be81242b | ||
|  | a6a719967a | ||
|  | 54bb0afe7f | ||
|  | 0f771a27c3 | ||
|  | ca7c131133 | ||
|  | 61bfac0fa2 | ||
|  | e19f42d648 | ||
|  | 76a08a7058 | ||
|  | 80c10cee15 | ||
|  | aee5ba64f9 | ||
|  | 5c48c76aa2 | ||
|  | f21bab2ff9 | ||
|  | 0291c6b210 | ||
|  | b20725026e | ||
|  | 88d79881b8 | ||
|  | efd090228d | ||
|  | dfe6fd6560 | ||
|  | dd3f3b2032 | ||
|  | 8b5e0a914b | ||
|  | e3cd961a15 | ||
|  | eaf6eac723 | ||
|  | 02e2cab375 | ||
|  | b853c8a509 | ||
|  | 891f00e9db | ||
|  | b38b5b2357 | 
| @@ -3,7 +3,7 @@ allow_defined_top = true | ||||
|  | ||||
| read_globals = { | ||||
| 	"DIR_DELIM", | ||||
| 	"minetest", "core", | ||||
| 	"minetest", | ||||
| 	"dump", | ||||
| 	"vector", | ||||
| 	"VoxelManip", "VoxelArea", | ||||
| @@ -12,11 +12,16 @@ read_globals = { | ||||
| 	"Settings", | ||||
| 	"unpack", | ||||
| 	-- Silence errors about custom table methods. | ||||
| 	table = { fields = { "copy", "indexof" } } | ||||
| 	table = { fields = { "copy", "indexof" } }, | ||||
| 	-- Silence warnings about accessing undefined fields of global 'math' | ||||
| 	math = { fields = { "sign" } } | ||||
| } | ||||
|  | ||||
| -- Overwrites minetest.handle_node_drops | ||||
| files["mods/creative/init.lua"].globals = { "minetest" } | ||||
|  | ||||
| -- Overwrites minetest.calculate_knockback | ||||
| files["mods/player_api/api.lua"].globals = { "minetest" } | ||||
|  | ||||
| -- Don't report on legacy definitions of globals. | ||||
| files["mods/default/legacy.lua"].global = false | ||||
|   | ||||
| @@ -1,5 +1,4 @@ | ||||
| language: generic | ||||
| sudo: false | ||||
| addons: | ||||
|   apt: | ||||
|     packages: | ||||
| @@ -7,6 +6,6 @@ addons: | ||||
| before_install: | ||||
|   - luarocks install --local luacheck | ||||
| script: | ||||
| - $HOME/.luarocks/bin/luacheck --no-color ./mods | ||||
| - $HOME/.luarocks/bin/luacheck ./mods | ||||
| notifications: | ||||
|   email: false | ||||
|   | ||||
							
								
								
									
										35
									
								
								README.md
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										35
									
								
								README.md
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,35 @@ | ||||
| # Minetest Game | ||||
|  | ||||
| The default game bundled in the Minetest engine.   | ||||
|  | ||||
| For further information, check  | ||||
| [this forum topic](https://forum.minetest.net/viewtopic.php?f=15&t=9724).    | ||||
| Also see the [Minetest Wiki](https://wiki.minetest.net/Subgames/Minetest_Game)  | ||||
| for more information. | ||||
|  | ||||
| ## Installation | ||||
|  | ||||
| - Unzip the archive, rename the folder to minetest_game and | ||||
| place it in .. minetest/games/ | ||||
|  | ||||
| - GNU/Linux: If you use a system-wide installation place | ||||
|     it in ~/.minetest/games/. | ||||
|  | ||||
| The Minetest engine can be found at [GitHub](https://github.com/minetest/minetest). | ||||
|  | ||||
| For further information or help, see:   | ||||
| https://wiki.minetest.net/Installing_Mods | ||||
|  | ||||
| ## Compatibility | ||||
|  | ||||
| The Minetest Game GitHub master HEAD is generally compatible with the GitHub | ||||
| master HEAD of the Minetest engine.   | ||||
| Additionally, when the Minetest engine is tagged to be a certain version (e.g. | ||||
| 0.4.10), Minetest Game is tagged with the version too. | ||||
|  | ||||
| When stable releases are made, Minetest Game and the Minetest engine is packaged  | ||||
| and made available at [www.minetest.net](https://www.minetest.net/downloads/). | ||||
|  | ||||
| ## Licensing | ||||
|  | ||||
| See `LICENSE.txt` | ||||
							
								
								
									
										28
									
								
								README.txt
									
									
									
									
									
								
							
							
						
						
									
										28
									
								
								README.txt
									
									
									
									
									
								
							| @@ -1,28 +0,0 @@ | ||||
| Minetest Game [minetest_game] | ||||
| ============================= | ||||
| The main game for the Minetest engine | ||||
| ===================================== | ||||
|  | ||||
| To use this game with the Minetest engine, insert this repository as | ||||
| 	/games/minetest_game | ||||
|  | ||||
| The Minetest engine can be found in: | ||||
| 	https://github.com/minetest/minetest/ | ||||
|  | ||||
| Compatibility | ||||
| -------------- | ||||
| The Minetest Game github master HEAD is generally compatible with the github | ||||
| master HEAD of the Minetest engine. | ||||
|  | ||||
| Additionally, when the Minetest engine is tagged to be a certain version (eg. | ||||
| 0.4.10), Minetest Game is tagged with the version too. | ||||
|  | ||||
| When stable releases are made, Minetest Game is packaged and made available in | ||||
| 	http://minetest.net/downloads/ | ||||
| and in case the repository has grown too much, it may be reset. In that sense, | ||||
| this is not a "real" git repository. (Package maintainers please note!) | ||||
|  | ||||
| Licensing | ||||
| --------- | ||||
|  | ||||
| See LICENSE.txt | ||||
| @@ -1,3 +1,3 @@ | ||||
| name = Minetest Game | ||||
| author = minetest | ||||
| author = Minetest | ||||
| description = Bundled by default with Minetest, and aims to be lightweight, moddable, and fairly playable without mods. | ||||
|   | ||||
							
								
								
									
										50
									
								
								game_api.txt
									
									
									
									
									
								
							
							
						
						
									
										50
									
								
								game_api.txt
									
									
									
									
									
								
							| @@ -214,6 +214,8 @@ The doors mod allows modders to register custom doors and trapdoors. | ||||
| 	inventory_image = "mod_door_inv.png", | ||||
| 	groups = {choppy = 2}, | ||||
| 	tiles = {"mod_door.png"}, -- UV map. | ||||
| 	-- The front and back of the door must be identical in appearence as they swap on | ||||
| 	-- open/close. | ||||
| 	recipe = craftrecipe, | ||||
| 	sounds = default.node_sound_wood_defaults(), -- optional | ||||
| 	sound_open = sound play for open door, -- optional | ||||
| @@ -228,7 +230,12 @@ The doors mod allows modders to register custom doors and trapdoors. | ||||
| 	inventory_image = "mod_trapdoor_inv.png", | ||||
| 	groups = {choppy = 2}, | ||||
| 	tile_front = "doors_trapdoor.png", -- the texture for the front and back of the trapdoor | ||||
| 	tile_side = "doors_trapdoor_side.png", -- the tiles of the four side parts of the trapdoor | ||||
| 	tile_side = "doors_trapdoor_side.png", | ||||
| 	-- The texture for the four sides of the trapdoor. | ||||
| 	-- The texture should have the trapdoor side drawn twice, in the lowest and highest | ||||
| 	-- 1/8ths of the texture, both upright. The area between is not used. | ||||
| 	-- The lower 1/8th will be used for the closed trapdoor, the higher 1/8th will be used | ||||
| 	-- for the open trapdoor. | ||||
| 	sounds = default.node_sound_wood_defaults(), -- optional | ||||
| 	sound_open = sound play for open door, -- optional | ||||
| 	sound_close = sound play for close door, -- optional | ||||
| @@ -269,7 +276,7 @@ The mod that places chests with loot in dungeons provides an API to register add | ||||
| 	name = "item:name", | ||||
| 	chance = 0.5, | ||||
| 	-- ^ chance value from 0.0 to 1.0 that the item will appear in the chest when chosen | ||||
| 	--   due to an extra step in the selection process, 0.5 does not(!) mean that | ||||
| 	--   Due to an extra step in the selection process, 0.5 does not(!) mean that | ||||
| 	--   on average every second chest will have this item | ||||
| 	count = {1, 4}, | ||||
| 	-- ^ table with minimum and maximum amounts of this item | ||||
| @@ -279,7 +286,8 @@ The mod that places chests with loot in dungeons provides an API to register add | ||||
| 	--   optional, defaults to no height restrictions | ||||
| 	types = {"desert"}, | ||||
| 	-- ^ table with types of dungeons this item can be found in | ||||
| 	--   supported types: "normal" (the cobble/mossycobble one), "sandstone", "desert" | ||||
| 	--   supported types: "normal" (the cobble/mossycobble one), "sandstone" | ||||
| 	--   "desert" and "ice" | ||||
| 	--   optional, defaults to no type restrictions | ||||
|  | ||||
|  | ||||
| @@ -351,6 +359,8 @@ The farming API allows you to easily register plants and hoes. | ||||
|  | ||||
| 	{ | ||||
| 		description = "",                      -- Description of seed item | ||||
| 		harvest_description = "",              -- Description of harvest item | ||||
| 		                                       -- (optional, derived automatically if not provided) | ||||
| 		inventory_image = "unknown_item.png",  -- Image to be used as seed's wield- and inventory image | ||||
| 		steps = 8,                             -- How many steps the plant has to grow, until it can be harvested | ||||
| 		-- ^ Always provide a plant texture for each step, format: modname_plantname_i.png (i = stepnumber) | ||||
| @@ -362,6 +372,8 @@ The farming API allows you to easily register plants and hoes. | ||||
| Fire API | ||||
| -------- | ||||
|  | ||||
| Add group flammable when registering a node to make fire seek for it. | ||||
| Add it to an item to make it burn up when dropped in lava or fire. | ||||
| New node def property: | ||||
|  | ||||
| `on_burn(pos)` | ||||
| @@ -412,7 +424,7 @@ Give Initial Stuff API | ||||
| Players API | ||||
| ----------- | ||||
|  | ||||
| The player API can register player models and update the player's appearence | ||||
| The player API can register player models and update the player's appearance. | ||||
|  | ||||
| * `player_api.register_model(name, def)` | ||||
| 	* Register a new model to be used by players | ||||
| @@ -445,6 +457,12 @@ The player API can register player models and update the player's appearence | ||||
| 	* Any of the fields of the returned table may be nil. | ||||
| 	* player: PlayerRef | ||||
|  | ||||
| * `player_api.player_attached` | ||||
| 	* A table that maps a player name to a boolean. | ||||
| 	* If the value for a given player is set to true, the default player | ||||
| 	animations (walking, digging, ...) will no longer be updated. | ||||
| 	Knockback from damage is also prevented for that player. | ||||
|  | ||||
| ### Model Definition | ||||
|  | ||||
| 	{ | ||||
| @@ -716,27 +734,29 @@ delivered with Minetest Game, to keep them compatible with other mods. | ||||
|  * `sounds`: See [#Default sounds] | ||||
|  * `worldaligntex`: A bool to set all textures world-aligned. Default false. See [Tile definition] | ||||
|  | ||||
| `stairs.register_stair_inner(subname, recipeitem, groups, images, description, sounds, worldaligntex)` | ||||
| `stairs.register_stair_inner(subname, recipeitem, groups, images, description, sounds, worldaligntex, full_description)` | ||||
|  | ||||
|  * Registers an inner corner stair | ||||
|  * `subname`: Basically the material name (e.g. cobble) used for the stair name. Nodename pattern: "stairs:stair_inner_subname" | ||||
|  * `recipeitem`: Item used in the craft recipe, e.g. "default:cobble", may be `nil` | ||||
|  * `groups`: See [Known damage and digging time defining groups] | ||||
|  * `images`: See [Tile definition] | ||||
|  * `description`: Used for the description field in the stair's definition | ||||
|  * `description`: Used for the description field in the stair's definition with "Inner" prepended | ||||
|  * `sounds`: See [#Default sounds] | ||||
|  * `worldaligntex`: A bool to set all textures world-aligned. Default false. See [Tile definition] | ||||
|  * `full_description`: Overrides the description, bypassing string concatenation. This is useful for translation. (optional) | ||||
|  | ||||
| `stairs.register_stair_outer(subname, recipeitem, groups, images, description, sounds, worldaligntex)` | ||||
| `stairs.register_stair_outer(subname, recipeitem, groups, images, description, sounds, worldaligntex, full_description)` | ||||
|  | ||||
|  * Registers an outer corner stair | ||||
|  * `subname`: Basically the material name (e.g. cobble) used for the stair name. Nodename pattern: "stairs:stair_outer_subname" | ||||
|  * `recipeitem`: Item used in the craft recipe, e.g. "default:cobble", may be `nil` | ||||
|  * `groups`: See [Known damage and digging time defining groups] | ||||
|  * `images`: See [Tile definition] | ||||
|  * `description`: Used for the description field in the stair's definition | ||||
|  * `description`: Used for the description field in the stair's definition with "Outer" prepended | ||||
|  * `sounds`: See [#Default sounds] | ||||
|  * `worldaligntex`: A bool to set all textures world-aligned. Default false. See [Tile definition] | ||||
|  * `full_description`: Overrides the description, bypassing string concatenation. This is useful for translation. (optional) | ||||
|  | ||||
| `stairs.register_stair_and_slab(subname, recipeitem, groups, images, desc_stair, desc_slab, sounds, worldaligntex)` | ||||
|  | ||||
| @@ -759,7 +779,11 @@ Creates panes that automatically connect to each other | ||||
| ### Pane definition | ||||
|  | ||||
| 	{ | ||||
| 		textures = {"texture for sides", (unused), "texture for top and bottom"}, -- More tiles aren't supported | ||||
| 		textures = { | ||||
| 			"texture for front and back", | ||||
| 			(unused), | ||||
| 			"texture for the 4 edges" | ||||
| 		}, -- More tiles aren't supported | ||||
| 		groups = {group = rating}, -- Uses the known node groups, see [Known damage and digging time defining groups] | ||||
| 		sounds = SoundSpec,        -- See [#Default sounds] | ||||
| 		recipe = {{"","","","","","","","",""}}, -- Recipe field only | ||||
| @@ -1037,3 +1061,11 @@ for the wielded skeleton key. | ||||
|  | ||||
| if `nil` is returned, it is assumed that the wielder did not have | ||||
| permissions to create a key for this node, and no key is created. | ||||
|  | ||||
| `default.register_craft_metadata_copy(ingredient, result)` | ||||
| ---------------------------------------------------------- | ||||
|  | ||||
| This function registers a shapeless recipe that takes `ingredient` | ||||
| and `result` as input and outputs `result`. | ||||
|  | ||||
| The metadata of the input `result` is copied to the output `result`. | ||||
|   | ||||
| @@ -60,7 +60,18 @@ default:torch 99,default:cobble 99 | ||||
| # Default value is true. | ||||
| #enable_bed_night_skip = true | ||||
|  | ||||
| # If enabled, fences and walls cannot be jumped over. | ||||
| #enable_fence_tall = false | ||||
|  | ||||
| # Whether the engine's spawn search, which does not check for a suitable | ||||
| # starting biome, is used. | ||||
| # Default value is false. | ||||
| #engine_spawn = false | ||||
|  | ||||
| # Whether river water source nodes create flowing sounds. | ||||
| # Helps rivers create more sound, especially on level sections. | ||||
| #river_source_sounds = false | ||||
|  | ||||
| # Enable cloud variation by the 'weather' mod. | ||||
| # Non-functional in V6 or Singlenode mapgens. | ||||
| #enable_weather = true | ||||
|   | ||||
| @@ -15,11 +15,11 @@ BlockMen (CC BY-SA 3.0) | ||||
| TumeniNodes (CC BY-SA 3.0) | ||||
|  beds_bed_under.png | ||||
|  | ||||
| This mod adds a bed to Minetest which allows to skip the night. | ||||
| To sleep, rightclick the bed. If playing in singleplayer mode the night gets skipped | ||||
| This mod adds a bed to Minetest which allows players to skip the night. | ||||
| To sleep, right click on the bed. If playing in singleplayer mode the night gets skipped | ||||
| immediately. If playing multiplayer you get shown how many other players are in bed too, | ||||
| if all players are sleeping the night gets skipped. The night skip can be forced if more | ||||
| than 50% of the players are lying in bed and use this option. | ||||
| than half of the players are lying in bed and use this option. | ||||
|  | ||||
| Another feature is a controlled respawning. If you have slept in bed (not just lying in | ||||
| it) your respawn point is set to the beds location and you will respawn there after | ||||
|   | ||||
| @@ -17,6 +17,8 @@ local function destruct_bed(pos, n) | ||||
| 		reverse = not reverse | ||||
| 		minetest.remove_node(other) | ||||
| 		minetest.check_for_falling(other) | ||||
| 		beds.remove_spawns_at(pos) | ||||
| 		beds.remove_spawns_at(other) | ||||
| 	else | ||||
| 		reverse = not reverse | ||||
| 	end | ||||
|   | ||||
| @@ -1,7 +1,12 @@ | ||||
| -- beds/beds.lua | ||||
|  | ||||
| -- support for MT game translation. | ||||
| local S = beds.get_translator | ||||
|  | ||||
| -- Fancy shaped bed | ||||
|  | ||||
| beds.register_bed("beds:fancy_bed", { | ||||
| 	description = "Fancy Bed", | ||||
| 	description = S("Fancy Bed"), | ||||
| 	inventory_image = "beds_bed_fancy.png", | ||||
| 	wield_image = "beds_bed_fancy.png", | ||||
| 	tiles = { | ||||
| @@ -52,7 +57,7 @@ beds.register_bed("beds:fancy_bed", { | ||||
| -- Simple shaped bed | ||||
|  | ||||
| beds.register_bed("beds:bed", { | ||||
| 	description = "Simple Bed", | ||||
| 	description = S("Simple Bed"), | ||||
| 	inventory_image = "beds_bed.png", | ||||
| 	wield_image = "beds_bed.png", | ||||
| 	tiles = { | ||||
| @@ -74,10 +79,10 @@ beds.register_bed("beds:bed", { | ||||
| 		} | ||||
| 	}, | ||||
| 	nodebox = { | ||||
| 		bottom = {-0.5, -0.5, -0.5, 0.5, 0.06, 0.5}, | ||||
| 		top = {-0.5, -0.5, -0.5, 0.5, 0.06, 0.5}, | ||||
| 		bottom = {-0.5, -0.5, -0.5, 0.5, 0.0625, 0.5}, | ||||
| 		top = {-0.5, -0.5, -0.5, 0.5, 0.0625, 0.5}, | ||||
| 	}, | ||||
| 	selectionbox = {-0.5, -0.5, -0.5, 0.5, 0.06, 1.5}, | ||||
| 	selectionbox = {-0.5, -0.5, -0.5, 0.5, 0.0625, 1.5}, | ||||
| 	recipe = { | ||||
| 		{"wool:white", "wool:white", "wool:white"}, | ||||
| 		{"group:wood", "group:wood", "group:wood"} | ||||
|   | ||||
| @@ -1,2 +0,0 @@ | ||||
| default | ||||
| wool | ||||
| @@ -1,11 +1,13 @@ | ||||
| local pi = math.pi | ||||
| local player_in_bed = 0 | ||||
| local is_sp = minetest.is_singleplayer() | ||||
| local enable_respawn = minetest.settings:get_bool("enable_bed_respawn") | ||||
| if enable_respawn == nil then | ||||
| 	enable_respawn = true | ||||
| end | ||||
|  | ||||
| -- support for MT game translation. | ||||
| local S = beds.get_translator | ||||
|  | ||||
| -- Helper functions | ||||
|  | ||||
| local function get_look_yaw(pos) | ||||
| @@ -59,11 +61,8 @@ local function lay_down(player, pos, bed_pos, state, skip) | ||||
| 	-- stand up | ||||
| 	if state ~= nil and not state then | ||||
| 		local p = beds.pos[name] or nil | ||||
| 		if beds.player[name] ~= nil then | ||||
| 		beds.player[name] = nil | ||||
| 		beds.bed_position[name] = nil | ||||
| 			player_in_bed = player_in_bed - 1 | ||||
| 		end | ||||
| 		-- skip here to prevent sending player specific changes (used for leaving players) | ||||
| 		if skip then | ||||
| 			return | ||||
| @@ -82,17 +81,22 @@ local function lay_down(player, pos, bed_pos, state, skip) | ||||
|  | ||||
| 	-- lay down | ||||
| 	else | ||||
| 		beds.player[name] = 1 | ||||
| 		beds.pos[name] = pos | ||||
| 		beds.bed_position[name] = bed_pos | ||||
| 		player_in_bed = player_in_bed + 1 | ||||
| 		beds.player[name] = 1 | ||||
|  | ||||
| 		-- physics, eye_offset, etc | ||||
| 		player:set_eye_offset({x = 0, y = -13, z = 0}, {x = 0, y = 0, z = 0}) | ||||
| 		local yaw, param2 = get_look_yaw(bed_pos) | ||||
| 		player:set_look_horizontal(yaw) | ||||
| 		local dir = minetest.facedir_to_dir(param2) | ||||
| 		local p = {x = bed_pos.x + dir.x / 2, y = bed_pos.y, z = bed_pos.z + dir.z / 2} | ||||
| 		-- p.y is just above the nodebox height of the 'Simple Bed' (the highest bed), | ||||
| 		-- to avoid sinking down through the bed. | ||||
| 		local p = { | ||||
| 			x = bed_pos.x + dir.x / 2, | ||||
| 			y = bed_pos.y + 0.07, | ||||
| 			z = bed_pos.z + dir.z / 2 | ||||
| 		} | ||||
| 		player:set_physics_override(0, 0, 0) | ||||
| 		player:set_pos(p) | ||||
| 		default.player_attached[name] = true | ||||
| @@ -103,18 +107,29 @@ local function lay_down(player, pos, bed_pos, state, skip) | ||||
| 	player:hud_set_flags(hud_flags) | ||||
| end | ||||
|  | ||||
| local function get_player_in_bed_count() | ||||
| 	local c = 0 | ||||
| 	for _, _ in pairs(beds.player) do | ||||
| 		c = c + 1 | ||||
| 	end | ||||
| 	return c | ||||
| end | ||||
|  | ||||
| local function update_formspecs(finished) | ||||
| 	local ges = #minetest.get_connected_players() | ||||
| 	local form_n | ||||
| 	local player_in_bed = get_player_in_bed_count() | ||||
| 	local is_majority = (ges / 2) < player_in_bed | ||||
|  | ||||
| 	local form_n | ||||
| 	local esc = minetest.formspec_escape | ||||
| 	if finished then | ||||
| 		form_n = beds.formspec .. "label[2.7,9; Good morning.]" | ||||
| 		form_n = beds.formspec .. "label[2.7,9;" .. esc(S("Good morning.")) .. "]" | ||||
| 	else | ||||
| 		form_n = beds.formspec .. "label[2.2,9;" .. tostring(player_in_bed) .. | ||||
| 			" of " .. tostring(ges) .. " players are in bed]" | ||||
| 		form_n = beds.formspec .. "label[2.2,9;" .. | ||||
| 			esc(S("@1 of @2 players are in bed", player_in_bed, ges)) .. "]" | ||||
| 		if is_majority and is_night_skip_enabled() then | ||||
| 			form_n = form_n .. "button_exit[2,6;4,0.75;force;Force night skip]" | ||||
| 			form_n = form_n .. "button_exit[2,6;4,0.75;force;" .. | ||||
| 				esc(S("Force night skip")) .. "]" | ||||
| 		end | ||||
| 	end | ||||
|  | ||||
| @@ -146,7 +161,7 @@ function beds.on_rightclick(pos, player) | ||||
| 		if beds.player[name] then | ||||
| 			lay_down(player, nil, nil, false) | ||||
| 		end | ||||
| 		minetest.chat_send_player(name, "You can only sleep at night.") | ||||
| 		minetest.chat_send_player(name, S("You can only sleep at night.")) | ||||
| 		return | ||||
| 	end | ||||
|  | ||||
| @@ -223,7 +238,7 @@ minetest.register_on_player_receive_fields(function(player, formname, fields) | ||||
| 	-- Because "Force night skip" button is a button_exit, it will set fields.quit | ||||
| 	-- and lay_down call will change value of player_in_bed, so it must be taken | ||||
| 	-- earlier. | ||||
| 	local last_player_in_bed = player_in_bed | ||||
| 	local last_player_in_bed = get_player_in_bed_count() | ||||
|  | ||||
| 	if fields.quit or fields.leave then | ||||
| 		lay_down(player, nil, nil, false) | ||||
|   | ||||
| @@ -1,13 +1,20 @@ | ||||
| -- beds/init.lua | ||||
|  | ||||
| -- Load support for MT game translation. | ||||
| local S = minetest.get_translator("beds") | ||||
| local esc = minetest.formspec_escape | ||||
|  | ||||
| beds = {} | ||||
| beds.player = {} | ||||
| beds.bed_position = {} | ||||
| beds.pos = {} | ||||
| beds.spawn = {} | ||||
| beds.get_translator = S | ||||
|  | ||||
| beds.formspec = "size[8,11;true]" .. | ||||
| 	"no_prepend[]" .. | ||||
| 	"bgcolor[#080808BB;true]" .. | ||||
| 	"button_exit[2,10;4,0.75;leave;Leave Bed]" | ||||
| 	"button_exit[2,10;4,0.75;leave;" .. esc(S("Leave Bed")) .. "]" | ||||
|  | ||||
| local modpath = minetest.get_modpath("beds") | ||||
|  | ||||
|   | ||||
							
								
								
									
										8
									
								
								mods/beds/locale/beds.de.tr
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										8
									
								
								mods/beds/locale/beds.de.tr
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,8 @@ | ||||
| # textdomain: beds | ||||
| Fancy Bed=Schickes Bett | ||||
| Simple Bed=Schlichtes Bett | ||||
| Leave Bed=Bett verlassen | ||||
| Good morning.=Guten Morgen. | ||||
| @1 of @2 players are in bed=@1 von @2 Spielern sind im Bett | ||||
| Force night skip=Überspringen der Nacht erzwingen | ||||
| You can only sleep at night.=Sie können nur nachts schlafen. | ||||
							
								
								
									
										8
									
								
								mods/beds/locale/beds.es.tr
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										8
									
								
								mods/beds/locale/beds.es.tr
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,8 @@ | ||||
| # textdomain: beds | ||||
| Fancy Bed=Cama de lujo | ||||
| Simple Bed=Cama sencilla | ||||
| Leave Bed=Abandonar cama | ||||
| Good morning.=Buenos días. | ||||
| @1 of @2 players are in bed=@1 de @2 jugadores están en cama | ||||
| Force night skip=Forzar evitar noche | ||||
| You can only sleep at night.=Sólo puedes dormir por la noche. | ||||
							
								
								
									
										8
									
								
								mods/beds/locale/beds.fr.tr
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										8
									
								
								mods/beds/locale/beds.fr.tr
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,8 @@ | ||||
| # textdomain: beds | ||||
| Fancy Bed=Lit chic | ||||
| Simple Bed=Lit simple | ||||
| Leave Bed=Se lever du lit | ||||
| Good morning.=Bonjour. | ||||
| @1 of @2 players are in bed=@1 joueur(s) sur @2 sont au lit | ||||
| Force night skip=Forcer le passage de la nuit | ||||
| You can only sleep at night.=Vous ne pouvez dormir que la nuit. | ||||
							
								
								
									
										4
									
								
								mods/beds/locale/beds.it.tr
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										4
									
								
								mods/beds/locale/beds.it.tr
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,4 @@ | ||||
| # textdomain: beds | ||||
| Fancy Bed=Letto decorato | ||||
| Simple Bed=Letto semplice | ||||
| Leave Bed=Alzati dal letto | ||||
							
								
								
									
										8
									
								
								mods/beds/locale/beds.ms.tr
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										8
									
								
								mods/beds/locale/beds.ms.tr
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,8 @@ | ||||
| # textdomain: beds | ||||
| Fancy Bed=Katil Beragam | ||||
| Simple Bed=Katil Biasa | ||||
| Leave Bed=Bangun | ||||
| Good morning.=Selamat pagi. | ||||
| @1 of @2 players are in bed=@1 daripada @2 pemain sedang tidur | ||||
| Force night skip=Paksa langkau malam | ||||
| You can only sleep at night.=Anda hanya boleh tidur pada waktu malam. | ||||
							
								
								
									
										8
									
								
								mods/beds/locale/beds.ru.tr
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										8
									
								
								mods/beds/locale/beds.ru.tr
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,8 @@ | ||||
| # textdomain: beds | ||||
| Fancy Bed=Детализированная Кровать | ||||
| Simple Bed=Обычная Кровать | ||||
| Leave Bed=Встать с кровати | ||||
| Good morning.=Доброе утро. | ||||
| @1 of @2 players are in bed=@1 из @2 игроков в кровати | ||||
| Force night skip=Пропустить ночь | ||||
| You can only sleep at night.=Вы можете спать только ночью. | ||||
							
								
								
									
										8
									
								
								mods/beds/locale/beds.se.tr
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										8
									
								
								mods/beds/locale/beds.se.tr
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,8 @@ | ||||
| # textdomain: beds | ||||
| Fancy Bed=Fin säng | ||||
| Simple Bed=Enkel Säng | ||||
| Leave Bed=Lämna Säng | ||||
| Good morning.= God morgon. | ||||
| @1 of @2 players are in bed=@1 av @2 spelar försöker sover. | ||||
| Force night skip=Tvinga över natten | ||||
| You can only sleep at night.=Du kan bara sova på natten. | ||||
							
								
								
									
										8
									
								
								mods/beds/locale/beds.zh_CN.tr
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										8
									
								
								mods/beds/locale/beds.zh_CN.tr
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,8 @@ | ||||
| # textdomain: beds | ||||
| Fancy Bed=花式床 | ||||
| Simple Bed=简易床 | ||||
| Leave Bed=离开床 | ||||
| Good morning.=早安! | ||||
| @1 of @2 players are in bed=@2位玩家中的@1位在床上 | ||||
| Force night skip=强制跳过夜晚 | ||||
| You can only sleep at night.=你只能在晚上睡觉。 | ||||
							
								
								
									
										9
									
								
								mods/beds/locale/beds.zh_TW.tr
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										9
									
								
								mods/beds/locale/beds.zh_TW.tr
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,9 @@ | ||||
| # textdomain: beds | ||||
| Fancy Bed=花式床 | ||||
| Simple Bed=簡易床 | ||||
| Leave Bed=離開床 | ||||
| Good morning.=早安! | ||||
| @1 of @2 players are in bed=@2位玩家中的@1位在床上 | ||||
| Force night skip=強制跳過夜晚 | ||||
| You can only sleep at night.=你只能在晚上睡覺。 | ||||
|  | ||||
							
								
								
									
										8
									
								
								mods/beds/locale/template.txt
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										8
									
								
								mods/beds/locale/template.txt
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,8 @@ | ||||
| # textdomain: beds | ||||
| Fancy Bed= | ||||
| Simple Bed= | ||||
| Leave Bed= | ||||
| Good morning.= | ||||
| @1 of @2 players are in bed= | ||||
| Force night skip= | ||||
| You can only sleep at night.= | ||||
							
								
								
									
										3
									
								
								mods/beds/mod.conf
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										3
									
								
								mods/beds/mod.conf
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,3 @@ | ||||
| name = beds | ||||
| description = Minetest Game mod: beds | ||||
| depends = default, wool | ||||
| @@ -61,3 +61,12 @@ function beds.set_spawns() | ||||
| 	end | ||||
| 	beds.save_spawns() | ||||
| end | ||||
|  | ||||
| function beds.remove_spawns_at(pos) | ||||
| 	for name, p in pairs(beds.spawn) do | ||||
| 		if vector.equals(vector.round(p), pos) then | ||||
| 			beds.spawn[name] = nil | ||||
| 		end | ||||
| 	end | ||||
| 	beds.save_spawns() | ||||
| end | ||||
|   | ||||
| @@ -1,2 +0,0 @@ | ||||
| default | ||||
| creative? | ||||
| @@ -1,7 +1,12 @@ | ||||
| -- binoculars/init.lua | ||||
|  | ||||
| -- Mod global namespace | ||||
|  | ||||
| binoculars = {} | ||||
|  | ||||
| -- Load support for MT game translation. | ||||
| local S = minetest.get_translator("binoculars") | ||||
|  | ||||
|  | ||||
| -- Detect creative mod | ||||
| local creative_mod = minetest.get_modpath("creative") | ||||
| @@ -54,7 +59,7 @@ minetest.after(4.7, cyclic_update) | ||||
| -- Binoculars item | ||||
|  | ||||
| minetest.register_craftitem("binoculars:binoculars", { | ||||
| 	description = "Binoculars\nUse with 'Zoom' key", | ||||
| 	description = S("Binoculars") .. "\n" .. S("Use with 'Zoom' key"), | ||||
| 	inventory_image = "binoculars_binoculars.png", | ||||
| 	stack_max = 1, | ||||
|  | ||||
|   | ||||
							
								
								
									
										3
									
								
								mods/binoculars/locale/binoculars.de.tr
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										3
									
								
								mods/binoculars/locale/binoculars.de.tr
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,3 @@ | ||||
| # textdomain: binoculars | ||||
| Binoculars=Fernglas | ||||
| Use with 'Zoom' key=Mit „Zoom“-Taste benutzen | ||||
							
								
								
									
										3
									
								
								mods/binoculars/locale/binoculars.es.tr
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										3
									
								
								mods/binoculars/locale/binoculars.es.tr
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,3 @@ | ||||
| # textdomain: binoculars | ||||
| Binoculars=Prismáticos | ||||
| Use with 'Zoom' key=Usar con la tecla 'Zoom' | ||||
							
								
								
									
										3
									
								
								mods/binoculars/locale/binoculars.fr.tr
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										3
									
								
								mods/binoculars/locale/binoculars.fr.tr
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,3 @@ | ||||
| # textdomain: binoculars | ||||
| Binoculars=Jumelles | ||||
| Use with 'Zoom' key=Utiliser avec le bouton « Zoom » | ||||
							
								
								
									
										3
									
								
								mods/binoculars/locale/binoculars.it.tr
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										3
									
								
								mods/binoculars/locale/binoculars.it.tr
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,3 @@ | ||||
| # textdomain: binoculars | ||||
| Binoculars=Binocolo | ||||
| Use with 'Zoom' key=Usalo col tasto 'Ingrandimento' | ||||
							
								
								
									
										3
									
								
								mods/binoculars/locale/binoculars.ms.tr
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										3
									
								
								mods/binoculars/locale/binoculars.ms.tr
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,3 @@ | ||||
| # textdomain: binoculars | ||||
| Binoculars=Binokular | ||||
| Use with 'Zoom' key=Guna dengan kekunci 'Zum' | ||||
							
								
								
									
										3
									
								
								mods/binoculars/locale/binoculars.ru.tr
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										3
									
								
								mods/binoculars/locale/binoculars.ru.tr
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,3 @@ | ||||
| # textdomain: binoculars | ||||
| Binoculars=Бинокль | ||||
| Use with 'Zoom' key=Используется с привилегией 'Zoom' | ||||
							
								
								
									
										3
									
								
								mods/binoculars/locale/binoculars.se.tr
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										3
									
								
								mods/binoculars/locale/binoculars.se.tr
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,3 @@ | ||||
| # textdomain: binoculars | ||||
| Binoculars=Kikare | ||||
| Use with 'Zoom' key=Används med 'Zoom' knappen | ||||
							
								
								
									
										3
									
								
								mods/binoculars/locale/binoculars.zh_CN.tr
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										3
									
								
								mods/binoculars/locale/binoculars.zh_CN.tr
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,3 @@ | ||||
| # textdomain: binoculars | ||||
| Binoculars=望远镜 | ||||
| Use with 'Zoom' key=与“缩放”键一起使用 | ||||
							
								
								
									
										3
									
								
								mods/binoculars/locale/binoculars.zh_TW.tr
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										3
									
								
								mods/binoculars/locale/binoculars.zh_TW.tr
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,3 @@ | ||||
| # textdomain: binoculars | ||||
| Binoculars=望遠鏡 | ||||
| Use with 'Zoom' key=與“縮放”鍵一起使用 | ||||
							
								
								
									
										3
									
								
								mods/binoculars/locale/template.txt
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										3
									
								
								mods/binoculars/locale/template.txt
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,3 @@ | ||||
| # textdomain: binoculars | ||||
| Binoculars= | ||||
| Use with 'Zoom' key= | ||||
							
								
								
									
										4
									
								
								mods/binoculars/mod.conf
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										4
									
								
								mods/binoculars/mod.conf
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,4 @@ | ||||
| name = binoculars | ||||
| description = Minetest Game mod: binoculars | ||||
| depends = default | ||||
| optional_depends = creative | ||||
| @@ -1,2 +0,0 @@ | ||||
| default | ||||
| player_api | ||||
| @@ -1,3 +1,8 @@ | ||||
| -- boats/init.lua | ||||
|  | ||||
| -- Load support for MT game translation. | ||||
| local S = minetest.get_translator("boats") | ||||
|  | ||||
| -- | ||||
| -- Helper functions | ||||
| -- | ||||
| @@ -8,15 +13,6 @@ local function is_water(pos) | ||||
| end | ||||
|  | ||||
|  | ||||
| local function get_sign(i) | ||||
| 	if i == 0 then | ||||
| 		return 0 | ||||
| 	else | ||||
| 		return i / math.abs(i) | ||||
| 	end | ||||
| end | ||||
|  | ||||
|  | ||||
| local function get_velocity(v, yaw, y) | ||||
| 	local x = -math.sin(yaw) * v | ||||
| 	local z =  math.cos(yaw) * v | ||||
| @@ -141,7 +137,7 @@ end | ||||
|  | ||||
|  | ||||
| function boat.on_step(self, dtime) | ||||
| 	self.v = get_v(self.object:get_velocity()) * get_sign(self.v) | ||||
| 	self.v = get_v(self.object:get_velocity()) * math.sign(self.v) | ||||
| 	if self.driver then | ||||
| 		local driver_objref = minetest.get_player_by_name(self.driver) | ||||
| 		if driver_objref then | ||||
| @@ -149,16 +145,16 @@ function boat.on_step(self, dtime) | ||||
| 			if ctrl.up and ctrl.down then | ||||
| 				if not self.auto then | ||||
| 					self.auto = true | ||||
| 					minetest.chat_send_player(self.driver, "[boats] Cruise on") | ||||
| 					minetest.chat_send_player(self.driver, S("Boat cruise mode on")) | ||||
| 				end | ||||
| 			elseif ctrl.down then | ||||
| 				self.v = self.v - dtime * 1.8 | ||||
| 				self.v = self.v - dtime * 2.0 | ||||
| 				if self.auto then | ||||
| 					self.auto = false | ||||
| 					minetest.chat_send_player(self.driver, "[boats] Cruise off") | ||||
| 					minetest.chat_send_player(self.driver, S("Boat cruise mode off")) | ||||
| 				end | ||||
| 			elseif ctrl.up or self.auto then | ||||
| 				self.v = self.v + dtime * 1.8 | ||||
| 				self.v = self.v + dtime * 2.0 | ||||
| 			end | ||||
| 			if ctrl.left then | ||||
| 				if self.v < -0.001 then | ||||
| @@ -180,15 +176,14 @@ function boat.on_step(self, dtime) | ||||
| 		self.object:set_pos(self.object:get_pos()) | ||||
| 		return | ||||
| 	end | ||||
| 	local s = get_sign(self.v) | ||||
| 	self.v = self.v - dtime * 0.6 * s | ||||
| 	if s ~= get_sign(self.v) then | ||||
| 		self.object:set_velocity({x = 0, y = 0, z = 0}) | ||||
| 	-- We need to preserve velocity sign to properly apply drag force | ||||
| 	-- while moving backward | ||||
| 	local drag = dtime * math.sign(self.v) * (0.01 + 0.0796 * self.v * self.v) | ||||
| 	-- If drag is larger than velocity, then stop horizontal movement | ||||
| 	if math.abs(self.v) <= math.abs(drag) then | ||||
| 		self.v = 0 | ||||
| 		return | ||||
| 	end | ||||
| 	if math.abs(self.v) > 5 then | ||||
| 		self.v = 5 * get_sign(self.v) | ||||
| 	else | ||||
| 		self.v = self.v - drag | ||||
| 	end | ||||
|  | ||||
| 	local p = self.object:get_pos() | ||||
| @@ -242,7 +237,7 @@ minetest.register_entity("boats:boat", boat) | ||||
|  | ||||
|  | ||||
| minetest.register_craftitem("boats:boat", { | ||||
| 	description = "Boat", | ||||
| 	description = S("Boat"), | ||||
| 	inventory_image = "boats_inventory.png", | ||||
| 	wield_image = "boats_wield.png", | ||||
| 	wield_scale = {x = 2, y = 2, z = 1}, | ||||
|   | ||||
							
								
								
									
										4
									
								
								mods/boats/locale/boats.de.tr
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										4
									
								
								mods/boats/locale/boats.de.tr
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,4 @@ | ||||
| # textdomain: boats | ||||
| Boat cruise mode on=Schneller Bootsmodus an | ||||
| Boat cruise mode off=Schneller Bootsmodus aus | ||||
| Boat=Boot | ||||
							
								
								
									
										4
									
								
								mods/boats/locale/boats.es.tr
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										4
									
								
								mods/boats/locale/boats.es.tr
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,4 @@ | ||||
| # textdomain: boats | ||||
| Boat cruise mode on=Modo crucero en bote activado | ||||
| Boat cruise mode off=Modo crucero en bote desactivado | ||||
| Boat=Bote | ||||
							
								
								
									
										4
									
								
								mods/boats/locale/boats.fr.tr
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										4
									
								
								mods/boats/locale/boats.fr.tr
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,4 @@ | ||||
| # textdomain: boats | ||||
| Boat cruise mode on=Bateau mode rapide activé | ||||
| Boat cruise mode off=Bateau mode rapide désactivé | ||||
| Boat=Bateau | ||||
							
								
								
									
										4
									
								
								mods/boats/locale/boats.it.tr
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										4
									
								
								mods/boats/locale/boats.it.tr
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,4 @@ | ||||
| # textdomain: boats | ||||
| Boat cruise mode on=Modalità movimento automatico barca attivata | ||||
| Boat cruise mode off=Modalità movimento automatico barca disattivata | ||||
| Boat=Barca | ||||
							
								
								
									
										4
									
								
								mods/boats/locale/boats.ms.tr
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										4
									
								
								mods/boats/locale/boats.ms.tr
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,4 @@ | ||||
| # textdomain: boats | ||||
| Boat cruise mode on=Mod bot layar makan angin dibolehkan | ||||
| Boat cruise mode off=Mod bot layar makan angin dilumpuhkan | ||||
| Boat=Bot | ||||
							
								
								
									
										4
									
								
								mods/boats/locale/boats.ru.tr
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										4
									
								
								mods/boats/locale/boats.ru.tr
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,4 @@ | ||||
| # textdomain: boats | ||||
| Boat cruise mode on=Режим путешествия на лодке включен | ||||
| Boat cruise mode off=Режим путешествия на лодке выключен | ||||
| Boat=Лодка | ||||
							
								
								
									
										4
									
								
								mods/boats/locale/boats.se.tr
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										4
									
								
								mods/boats/locale/boats.se.tr
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,4 @@ | ||||
| # textdomain: boats | ||||
| Boat cruise mode on=Båtkryssningsläge på | ||||
| Boat cruise mode off=Båtkryssningsläge av | ||||
| Boat=Båt | ||||
							
								
								
									
										4
									
								
								mods/boats/locale/boats.zh_CN.tr
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										4
									
								
								mods/boats/locale/boats.zh_CN.tr
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,4 @@ | ||||
| # textdomain: boats | ||||
| Boat cruise mode on=巡航模式开启 | ||||
| Boat cruise mode off=巡航模式关闭 | ||||
| Boat=船 | ||||
							
								
								
									
										4
									
								
								mods/boats/locale/boats.zh_TW.tr
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										4
									
								
								mods/boats/locale/boats.zh_TW.tr
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,4 @@ | ||||
| # textdomain: boats | ||||
| Boat cruise mode on=巡航模式開啟 | ||||
| Boat cruise mode off=巡航模式關閉 | ||||
| Boat=船 | ||||
							
								
								
									
										4
									
								
								mods/boats/locale/template.txt
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										4
									
								
								mods/boats/locale/template.txt
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,4 @@ | ||||
| # textdomain: boats | ||||
| Boat cruise mode on= | ||||
| Boat cruise mode off= | ||||
| Boat= | ||||
							
								
								
									
										3
									
								
								mods/boats/mod.conf
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										3
									
								
								mods/boats/mod.conf
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,3 @@ | ||||
| name = boats | ||||
| description = Minetest Game mod: boats | ||||
| depends = default, player_api | ||||
| @@ -1 +0,0 @@ | ||||
| default | ||||
| @@ -1,6 +1,11 @@ | ||||
| -- bones/init.lua | ||||
|  | ||||
| -- Minetest 0.4 mod: bones | ||||
| -- See README.txt for licensing and other information. | ||||
|  | ||||
| -- Load support for MT game translation. | ||||
| local S = minetest.get_translator("bones") | ||||
|  | ||||
| bones = {} | ||||
|  | ||||
| local function is_owner(pos, name) | ||||
| @@ -24,7 +29,7 @@ local share_bones_time = tonumber(minetest.settings:get("share_bones_time")) or | ||||
| local share_bones_time_early = tonumber(minetest.settings:get("share_bones_time_early")) or share_bones_time / 4 | ||||
|  | ||||
| minetest.register_node("bones:bones", { | ||||
| 	description = "Bones", | ||||
| 	description = S("Bones"), | ||||
| 	tiles = { | ||||
| 		"bones_top.png^[transform2", | ||||
| 		"bones_bottom.png", | ||||
| @@ -116,7 +121,7 @@ minetest.register_node("bones:bones", { | ||||
| 		local meta = minetest.get_meta(pos) | ||||
| 		local time = meta:get_int("time") + elapsed | ||||
| 		if time >= share_bones_time then | ||||
| 			meta:set_string("infotext", meta:get_string("owner") .. "'s old bones") | ||||
| 			meta:set_string("infotext", S("@1's old bones", meta:get_string("owner"))) | ||||
| 			meta:set_string("owner", "") | ||||
| 		else | ||||
| 			meta:set_int("time", time) | ||||
| @@ -194,7 +199,7 @@ minetest.register_on_dieplayer(function(player) | ||||
| 		minetest.log("action", player_name .. " dies at " .. pos_string .. | ||||
| 			". No bones placed") | ||||
| 		if bones_position_message then | ||||
| 			minetest.chat_send_player(player_name, player_name .. " died at " .. pos_string .. ".") | ||||
| 			minetest.chat_send_player(player_name, S("@1 died at @2.", player_name, pos_string)) | ||||
| 		end | ||||
| 		return | ||||
| 	end | ||||
| @@ -204,7 +209,7 @@ minetest.register_on_dieplayer(function(player) | ||||
| 		minetest.log("action", player_name .. " dies at " .. pos_string .. | ||||
| 			". No bones placed") | ||||
| 		if bones_position_message then | ||||
| 			minetest.chat_send_player(player_name, player_name .. " died at " .. pos_string .. ".") | ||||
| 			minetest.chat_send_player(player_name, S("@1 died at @2.", player_name, pos_string)) | ||||
| 		end | ||||
| 		return | ||||
| 	end | ||||
| @@ -230,8 +235,7 @@ minetest.register_on_dieplayer(function(player) | ||||
| 		minetest.log("action", player_name .. " dies at " .. pos_string .. | ||||
| 			". Inventory dropped") | ||||
| 		if bones_position_message then | ||||
| 			minetest.chat_send_player(player_name, player_name .. " died at " .. pos_string .. | ||||
| 				", and dropped their inventory.") | ||||
| 			minetest.chat_send_player(player_name, S("@1 died at @2, and dropped their inventory.", player_name, pos_string)) | ||||
| 		end | ||||
| 		return | ||||
| 	end | ||||
| @@ -242,8 +246,7 @@ minetest.register_on_dieplayer(function(player) | ||||
| 	minetest.log("action", player_name .. " dies at " .. pos_string .. | ||||
| 		". Bones placed") | ||||
| 	if bones_position_message then | ||||
| 		minetest.chat_send_player(player_name, player_name .. " died at " .. pos_string .. | ||||
| 			", and bones were placed.") | ||||
| 		minetest.chat_send_player(player_name, S("@1 died at @2, and bones were placed.", player_name, pos_string)) | ||||
| 	end | ||||
|  | ||||
| 	local meta = minetest.get_meta(pos) | ||||
| @@ -266,7 +269,7 @@ minetest.register_on_dieplayer(function(player) | ||||
| 	meta:set_string("owner", player_name) | ||||
|  | ||||
| 	if share_bones_time ~= 0 then | ||||
| 		meta:set_string("infotext", player_name .. "'s fresh bones") | ||||
| 		meta:set_string("infotext", S("@1's fresh bones", player_name)) | ||||
|  | ||||
| 		if share_bones_time_early == 0 or not minetest.is_protected(pos, player_name) then | ||||
| 			meta:set_int("time", 0) | ||||
| @@ -276,6 +279,6 @@ minetest.register_on_dieplayer(function(player) | ||||
|  | ||||
| 		minetest.get_node_timer(pos):start(10) | ||||
| 	else | ||||
| 		meta:set_string("infotext", player_name.."'s bones") | ||||
| 		meta:set_string("infotext", S("@1's bones", player_name)) | ||||
| 	end | ||||
| end) | ||||
|   | ||||
							
								
								
									
										8
									
								
								mods/bones/locale/bones.de.tr
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										8
									
								
								mods/bones/locale/bones.de.tr
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,8 @@ | ||||
| # textdomain: bones | ||||
| Bones=Knochen | ||||
| @1's old bones=Alte Knochen von @1 | ||||
| @1 died at @2.=@1 starb bei @2. | ||||
| @1 died at @2, and dropped their inventory.=@1 starb bei @2 und ließ das Inventar fallen. | ||||
| @1 died at @2, and bones were placed.=@1 starb bei @2 und Knochen wurden platziert. | ||||
| @1's fresh bones=Frische Knochen von @1 | ||||
| @1's bones=Knochen von @1 | ||||
							
								
								
									
										8
									
								
								mods/bones/locale/bones.es.tr
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										8
									
								
								mods/bones/locale/bones.es.tr
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,8 @@ | ||||
| # textdomain: bones | ||||
| Bones=Huesos | ||||
| @1's old bones=Huesos antiguos de @1 | ||||
| @1 died at @2.=@1 murió en @2. | ||||
| @1 died at @2, and dropped their inventory.=@1 murió en @2, y su inventario se desprendió. | ||||
| @1 died at @2, and bones were placed.=@1 murió en @2, y sus huesos fueron depositados. | ||||
| @1's fresh bones=Huesos recientes de @1 | ||||
| @1's bones=Huesos de @1 | ||||
							
								
								
									
										8
									
								
								mods/bones/locale/bones.fr.tr
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										8
									
								
								mods/bones/locale/bones.fr.tr
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,8 @@ | ||||
| # textdomain: bones | ||||
| Bones=Os | ||||
| @1's old bones=Vieux os de @1 | ||||
| @1 died at @2.=@1 est mort à @2. | ||||
| @1 died at @2, and dropped their inventory.=@1 est mort à @2 et a laissé tomber son inventaire. | ||||
| @1 died at @2, and bones were placed.=@1 est mort à @2 et ses os ont été placés. | ||||
| @1's fresh bones=Os frais de @1 | ||||
| @1's bones=Os de @1 | ||||
							
								
								
									
										8
									
								
								mods/bones/locale/bones.it.tr
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										8
									
								
								mods/bones/locale/bones.it.tr
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,8 @@ | ||||
| # textdomain: bones | ||||
| Bones=Ossa | ||||
| @1's old bones=Ossa vecchie di @1 | ||||
| @1 died at @2.=@1 è morto alla posizione @2. | ||||
| @1 died at @2, and dropped their inventory.=@1 è morto alla posizione @2, e ha lasciato a terra il contenuto del suo inventario. | ||||
| @1 died at @2, and bones were placed.=@1 è morto alla posizione @2, e vi sono state posizionate delle ossa. | ||||
| @1's fresh bones=Ossa fresche di @1 | ||||
| @1's bones=Ossa di @1 | ||||
							
								
								
									
										8
									
								
								mods/bones/locale/bones.ms.tr
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										8
									
								
								mods/bones/locale/bones.ms.tr
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,8 @@ | ||||
| # textdomain: bones | ||||
| Bones=Tulang | ||||
| @1's old bones=Tulang lama @1 | ||||
| @1 died at @2.=@1 mati di @2. | ||||
| @1 died at @2, and dropped their inventory.=@1 mati di @2, dan menjatuhkan inventorinya. | ||||
| @1 died at @2, and bones were placed.=@1 mati di @2, dan tulang diletakkan. | ||||
| @1's fresh bones=Tulang segar @1 | ||||
| @1's bones=Tulang @1 | ||||
							
								
								
									
										8
									
								
								mods/bones/locale/bones.ru.tr
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										8
									
								
								mods/bones/locale/bones.ru.tr
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,8 @@ | ||||
| # textdomain: bones | ||||
| Bones=Кости | ||||
| @1's old bones=Старые кости @1 | ||||
| @1 died at @2.=@1 умер в @2. | ||||
| @1 died at @2, and dropped their inventory.=@1 умер в @2 и потерял содержимое своего инвентаря.  | ||||
| @1 died at @2, and bones were placed.=@1 умер в @2, помещены кости. | ||||
| @1's fresh bones=новые кости @1 | ||||
| @1's bones=кости @1 | ||||
							
								
								
									
										8
									
								
								mods/bones/locale/bones.se.tr
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										8
									
								
								mods/bones/locale/bones.se.tr
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,8 @@ | ||||
| # textdomain: bones | ||||
| Bones=Ben | ||||
| @1's old bones=@1s Gamla ben | ||||
| @1 died at @2.=@1 dog på @a. | ||||
| @1 died at @2, and dropped their inventory.=@1 dog på @a, och tappade deras saker. | ||||
| @1 died at @2, and bones were placed.=@1 dog på @2, och deras ben var placerade. | ||||
| @1's fresh bones=@1s färska ben | ||||
| @1's bones=@1s ben | ||||
							
								
								
									
										8
									
								
								mods/bones/locale/bones.zh_CN.tr
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										8
									
								
								mods/bones/locale/bones.zh_CN.tr
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,8 @@ | ||||
| # textdomain: bones | ||||
| Bones=骨骸 | ||||
| @1's old bones=@1的旧骨骸 | ||||
| @1 died at @2.=@1在@2死亡。 | ||||
| @1 died at @2, and dropped their inventory.=@1在@2死亡,丢掉了物品栏。 | ||||
| @1 died at @2, and bones were placed.=@1在@2死亡,骨骸被放置。 | ||||
| @1's fresh bones=@1的新鲜骨骸 | ||||
| @1's bones=@1的骨骸 | ||||
							
								
								
									
										8
									
								
								mods/bones/locale/bones.zh_TW.tr
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										8
									
								
								mods/bones/locale/bones.zh_TW.tr
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,8 @@ | ||||
| # textdomain: bones | ||||
| Bones=骨骸 | ||||
| @1's old bones=@1的舊骨骸 | ||||
| @1 died at @2.=@1在@2死亡。 | ||||
| @1 died at @2, and dropped their inventory.=@1在@2死亡,丟掉了物品欄。 | ||||
| @1 died at @2, and bones were placed.=@1在@2死亡,骨骸被放置。 | ||||
| @1's fresh bones=@1的新鮮骨骸 | ||||
| @1's bones=@1的骨骸 | ||||
							
								
								
									
										8
									
								
								mods/bones/locale/template.txt
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										8
									
								
								mods/bones/locale/template.txt
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,8 @@ | ||||
| # textdomain: bones | ||||
| Bones= | ||||
| @1's old bones= | ||||
| @1 died at @2.= | ||||
| @1 died at @2, and dropped their inventory.= | ||||
| @1 died at @2, and bones were placed.= | ||||
| @1's fresh bones= | ||||
| @1's bones= | ||||
							
								
								
									
										3
									
								
								mods/bones/mod.conf
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										3
									
								
								mods/bones/mod.conf
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,3 @@ | ||||
| name = bones | ||||
| description = Minetest Game mod: bones | ||||
| depends = default | ||||
| @@ -1,2 +0,0 @@ | ||||
| default | ||||
|  | ||||
| @@ -1,15 +1,19 @@ | ||||
| -- Minetest 0.4 mod: bucket | ||||
| -- See README.txt for licensing and other information. | ||||
|  | ||||
| -- Load support for MT game translation. | ||||
| local S = minetest.get_translator("bucket") | ||||
|  | ||||
|  | ||||
| minetest.register_alias("bucket", "bucket:bucket_empty") | ||||
| minetest.register_alias("bucket_water", "bucket:bucket_water") | ||||
| minetest.register_alias("bucket_lava", "bucket:bucket_lava") | ||||
|  | ||||
| minetest.register_craft({ | ||||
| 	output = 'bucket:bucket_empty 1', | ||||
| 	output = "bucket:bucket_empty 1", | ||||
| 	recipe = { | ||||
| 		{'default:steel_ingot', '', 'default:steel_ingot'}, | ||||
| 		{'', 'default:steel_ingot', ''}, | ||||
| 		{"default:steel_ingot", "", "default:steel_ingot"}, | ||||
| 		{"", "default:steel_ingot", ""}, | ||||
| 	} | ||||
| }) | ||||
|  | ||||
| @@ -111,9 +115,9 @@ function bucket.register_liquid(source, flowing, itemname, inventory_image, name | ||||
| end | ||||
|  | ||||
| minetest.register_craftitem("bucket:bucket_empty", { | ||||
| 	description = "Empty Bucket", | ||||
| 	description = S("Empty Bucket"), | ||||
| 	inventory_image = "bucket.png", | ||||
| 	stack_max = 99, | ||||
| 	groups = {tool = 1}, | ||||
| 	liquids_pointable = true, | ||||
| 	on_use = function(itemstack, user, pointed_thing) | ||||
| 		if pointed_thing.type == "object" then | ||||
| @@ -185,8 +189,8 @@ bucket.register_liquid( | ||||
| 	"default:water_flowing", | ||||
| 	"bucket:bucket_water", | ||||
| 	"bucket_water.png", | ||||
| 	"Water Bucket", | ||||
| 	{water_bucket = 1} | ||||
| 	S("Water Bucket"), | ||||
| 	{tool = 1, water_bucket = 1} | ||||
| ) | ||||
|  | ||||
| -- River water source is 'liquid_renewable = false' to avoid horizontal spread | ||||
| @@ -200,8 +204,8 @@ bucket.register_liquid( | ||||
| 	"default:river_water_flowing", | ||||
| 	"bucket:bucket_river_water", | ||||
| 	"bucket_river_water.png", | ||||
| 	"River Water Bucket", | ||||
| 	{water_bucket = 1}, | ||||
| 	S("River Water Bucket"), | ||||
| 	{tool = 1, water_bucket = 1}, | ||||
| 	true | ||||
| ) | ||||
|  | ||||
| @@ -210,7 +214,8 @@ bucket.register_liquid( | ||||
| 	"default:lava_flowing", | ||||
| 	"bucket:bucket_lava", | ||||
| 	"bucket_lava.png", | ||||
| 	"Lava Bucket" | ||||
| 	S("Lava Bucket"), | ||||
| 	{tool = 1} | ||||
| ) | ||||
|  | ||||
| minetest.register_craft({ | ||||
| @@ -220,3 +225,16 @@ minetest.register_craft({ | ||||
| 	replacements = {{"bucket:bucket_lava", "bucket:bucket_empty"}}, | ||||
| }) | ||||
|  | ||||
| -- Register buckets as dungeon loot | ||||
| if minetest.global_exists("dungeon_loot") then | ||||
| 	dungeon_loot.register({ | ||||
| 		{name = "bucket:bucket_empty", chance = 0.55}, | ||||
| 		-- water in deserts/ice or above ground, lava otherwise | ||||
| 		{name = "bucket:bucket_water", chance = 0.45, | ||||
| 			types = {"sandstone", "desert", "ice"}}, | ||||
| 		{name = "bucket:bucket_water", chance = 0.45, y = {0, 32768}, | ||||
| 			types = {"normal"}}, | ||||
| 		{name = "bucket:bucket_lava", chance = 0.45, y = {-32768, -1}, | ||||
| 			types = {"normal"}}, | ||||
| 	}) | ||||
| end | ||||
|   | ||||
							
								
								
									
										5
									
								
								mods/bucket/locale/bucket.de.tr
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										5
									
								
								mods/bucket/locale/bucket.de.tr
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,5 @@ | ||||
| # textdomain: bucket | ||||
| Empty Bucket=Leerer Eimer | ||||
| Water Bucket=Wassereimer | ||||
| River Water Bucket=Flusswassereimer | ||||
| Lava Bucket=Lavaeimer | ||||
							
								
								
									
										5
									
								
								mods/bucket/locale/bucket.es.tr
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										5
									
								
								mods/bucket/locale/bucket.es.tr
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,5 @@ | ||||
| # textdomain: bucket | ||||
| Empty Bucket=Cubo vacío | ||||
| Water Bucket=Cubo con agua | ||||
| River Water Bucket=Cubo con agua de río | ||||
| Lava Bucket=Cubo con lava | ||||
							
								
								
									
										5
									
								
								mods/bucket/locale/bucket.fr.tr
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										5
									
								
								mods/bucket/locale/bucket.fr.tr
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,5 @@ | ||||
| # textdomain: bucket | ||||
| Empty Bucket=Seau vide | ||||
| Water Bucket=Seau d'eau | ||||
| River Water Bucket=Seau d'eau de rivière | ||||
| Lava Bucket=Seau de lave | ||||
							
								
								
									
										5
									
								
								mods/bucket/locale/bucket.it.tr
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										5
									
								
								mods/bucket/locale/bucket.it.tr
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,5 @@ | ||||
| # textdomain: bucket | ||||
| Empty Bucket=Secchio vuoto | ||||
| Water Bucket=Secchio d'acqua | ||||
| River Water Bucket=Secchio d'acqua di fiume | ||||
| Lava Bucket=Secchio di lava | ||||
							
								
								
									
										5
									
								
								mods/bucket/locale/bucket.ms.tr
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										5
									
								
								mods/bucket/locale/bucket.ms.tr
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,5 @@ | ||||
| # textdomain: bucket | ||||
| Empty Bucket=Baldi Kosong | ||||
| Water Bucket=Baldi Air | ||||
| River Water Bucket=Baldi Air Sungai | ||||
| Lava Bucket=Baldi Lava | ||||
							
								
								
									
										5
									
								
								mods/bucket/locale/bucket.ru.tr
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										5
									
								
								mods/bucket/locale/bucket.ru.tr
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,5 @@ | ||||
| # textdomain: bucket | ||||
| Empty Bucket=Пустое Ведро | ||||
| Water Bucket=Ведро с Водой | ||||
| River Water Bucket=Ведро с Речной Водой | ||||
| Lava Bucket=Ведро с Лавой | ||||
							
								
								
									
										5
									
								
								mods/bucket/locale/bucket.se.tr
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										5
									
								
								mods/bucket/locale/bucket.se.tr
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,5 @@ | ||||
| # textdomain: bucket | ||||
| Empty Bucket=Tom hink | ||||
| Water Bucket=Vatten hink | ||||
| River Water Bucket=Flodvatten hink | ||||
| Lava Bucket=Lava hink | ||||
							
								
								
									
										5
									
								
								mods/bucket/locale/bucket.zh_CN.tr
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										5
									
								
								mods/bucket/locale/bucket.zh_CN.tr
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,5 @@ | ||||
| # textdomain: bucket | ||||
| Empty Bucket=空桶 | ||||
| Water Bucket=水桶 | ||||
| River Water Bucket=河水桶 | ||||
| Lava Bucket=岩浆桶 | ||||
							
								
								
									
										5
									
								
								mods/bucket/locale/bucket.zh_TW.tr
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										5
									
								
								mods/bucket/locale/bucket.zh_TW.tr
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,5 @@ | ||||
| # textdomain: bucket | ||||
| Empty Bucket=空桶 | ||||
| Water Bucket=水桶 | ||||
| River Water Bucket=河水桶 | ||||
| Lava Bucket=岩漿桶 | ||||
							
								
								
									
										5
									
								
								mods/bucket/locale/template.txt
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										5
									
								
								mods/bucket/locale/template.txt
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,5 @@ | ||||
| # textdomain: bucket | ||||
| Empty Bucket= | ||||
| Water Bucket= | ||||
| River Water Bucket= | ||||
| Lava Bucket= | ||||
							
								
								
									
										4
									
								
								mods/bucket/mod.conf
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										4
									
								
								mods/bucket/mod.conf
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,4 @@ | ||||
| name = bucket | ||||
| description = Minetest Game mod: bucket | ||||
| depends = default | ||||
| optional_depends = dungeon_loot | ||||
							
								
								
									
										0
									
								
								mods/bucket/textures/bucket.png
									
									
									
									
									
										
										
										Executable file → Normal file
									
								
							
							
						
						
									
										0
									
								
								mods/bucket/textures/bucket.png
									
									
									
									
									
										
										
										Executable file → Normal file
									
								
							| Before Width: | Height: | Size: 205 B After Width: | Height: | Size: 205 B | 
| @@ -1,2 +0,0 @@ | ||||
| default | ||||
| flowers | ||||
| @@ -1,8 +1,13 @@ | ||||
| -- butterflies/init.lua | ||||
|  | ||||
| -- Load support for MT game translation. | ||||
| local S = minetest.get_translator("butterflies") | ||||
|  | ||||
| -- register butterflies | ||||
| local butter_list = { | ||||
| 	{"white", "White"}, | ||||
| 	{"red", "Red"}, | ||||
| 	{"violet", "Violet"} | ||||
| 	{"white",  S("White Butterfly")}, | ||||
| 	{"red",    S("Red Butterfly")}, | ||||
| 	{"violet", S("Violet Butterfly")} | ||||
| } | ||||
|  | ||||
| for i in ipairs (butter_list) do | ||||
| @@ -10,7 +15,7 @@ for i in ipairs (butter_list) do | ||||
| 	local desc = butter_list[i][2] | ||||
|  | ||||
| 	minetest.register_node("butterflies:butterfly_"..name, { | ||||
| 		description = desc.." Butterfly", | ||||
| 		description = desc, | ||||
| 		drawtype = "plantlike", | ||||
| 		tiles = {{ | ||||
| 			name = "butterflies_butterfly_"..name.."_animated.png", | ||||
| @@ -56,10 +61,9 @@ for i in ipairs (butter_list) do | ||||
| 	}) | ||||
|  | ||||
| 	minetest.register_node("butterflies:hidden_butterfly_"..name, { | ||||
| 		description = "Hidden "..desc.." Butterfly", | ||||
| 		drawtype = "airlike", | ||||
| 		inventory_image = "insects_butterfly_"..name..".png", | ||||
| 		wield_image =  "insects_butterfly_"..name..".png", | ||||
| 		inventory_image = "butterflies_butterfly_"..name..".png", | ||||
| 		wield_image =  "butterflies_butterfly_"..name..".png", | ||||
| 		paramtype = "light", | ||||
| 		sunlight_propagates = true, | ||||
| 		walkable = false, | ||||
| @@ -98,7 +102,7 @@ minetest.register_decoration({ | ||||
| 	place_offset_y = 2, | ||||
| 	sidelen = 80, | ||||
| 	fill_ratio = 0.005, | ||||
| 	biomes = {"grassland", "deciduous_forest", "floatland_grassland"}, | ||||
| 	biomes = {"grassland", "deciduous_forest"}, | ||||
| 	y_max = 31000, | ||||
| 	y_min = 1, | ||||
| 	decoration = { | ||||
|   | ||||
							
								
								
									
										4
									
								
								mods/butterflies/locale/butterflies.de.tr
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										4
									
								
								mods/butterflies/locale/butterflies.de.tr
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,4 @@ | ||||
| # textdomain: butterflies | ||||
| White Butterfly=Weißer Schmetterling | ||||
| Red Butterfly=Roter Schmetterling | ||||
| Violet Butterfly=Violetter Schmetterling | ||||
							
								
								
									
										4
									
								
								mods/butterflies/locale/butterflies.es.tr
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										4
									
								
								mods/butterflies/locale/butterflies.es.tr
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,4 @@ | ||||
| # textdomain: butterflies | ||||
| White Butterfly=Mariposa blanca | ||||
| Red Butterfly=Mariposa roja | ||||
| Violet Butterfly=Mariposa violeta | ||||
							
								
								
									
										4
									
								
								mods/butterflies/locale/butterflies.fr.tr
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										4
									
								
								mods/butterflies/locale/butterflies.fr.tr
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,4 @@ | ||||
| # textdomain: butterflies | ||||
| White Butterfly=Papillon blanc | ||||
| Red Butterfly=Papillon rouge | ||||
| Violet Butterfly=Papillon violet | ||||
							
								
								
									
										4
									
								
								mods/butterflies/locale/butterflies.it.tr
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										4
									
								
								mods/butterflies/locale/butterflies.it.tr
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,4 @@ | ||||
| # textdomain: butterflies | ||||
| White Butterfly=Farfalla bianca | ||||
| Red Butterfly=Farfalla rossa | ||||
| Violet Butterfly=Farfalla viola | ||||
							
								
								
									
										4
									
								
								mods/butterflies/locale/butterflies.ms.tr
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										4
									
								
								mods/butterflies/locale/butterflies.ms.tr
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,4 @@ | ||||
| # textdomain: butterflies | ||||
| White Butterfly=Rama-Rama Putih | ||||
| Red Butterfly=Rama-Rama Merah | ||||
| Violet Butterfly=Rama-Rama Ungu | ||||
							
								
								
									
										4
									
								
								mods/butterflies/locale/butterflies.ru.tr
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										4
									
								
								mods/butterflies/locale/butterflies.ru.tr
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,4 @@ | ||||
| # textdomain: butterflies | ||||
| White Butterfly=Белая Бабочка | ||||
| Red Butterfly=Красная Бабочка | ||||
| Violet Butterfly=Фиолетовая Бабочка | ||||
							
								
								
									
										4
									
								
								mods/butterflies/locale/butterflies.se.tr
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										4
									
								
								mods/butterflies/locale/butterflies.se.tr
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,4 @@ | ||||
| # textdomain: butterflies | ||||
| White Butterfly=Vit fjäril | ||||
| Red Butterfly=Röd fjäril | ||||
| Violet Butterfly=Violett fjäril | ||||
							
								
								
									
										4
									
								
								mods/butterflies/locale/butterflies.zh_CN.tr
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										4
									
								
								mods/butterflies/locale/butterflies.zh_CN.tr
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,4 @@ | ||||
| # textdomain: butterflies | ||||
| White Butterfly=白蝴蝶 | ||||
| Red Butterfly=红蝴蝶 | ||||
| Violet Butterfly=紫蝴蝶 | ||||
							
								
								
									
										4
									
								
								mods/butterflies/locale/butterflies.zh_TW.tr
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										4
									
								
								mods/butterflies/locale/butterflies.zh_TW.tr
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,4 @@ | ||||
| # textdomain: butterflies | ||||
| White Butterfly=白蝴蝶 | ||||
| Red Butterfly=紅蝴蝶 | ||||
| Violet Butterfly=紫蝴蝶 | ||||
							
								
								
									
										4
									
								
								mods/butterflies/locale/template.txt
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										4
									
								
								mods/butterflies/locale/template.txt
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,4 @@ | ||||
| # textdomain: butterflies | ||||
| White Butterfly= | ||||
| Red Butterfly= | ||||
| Violet Butterfly= | ||||
							
								
								
									
										3
									
								
								mods/butterflies/mod.conf
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										3
									
								
								mods/butterflies/mod.conf
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,3 @@ | ||||
| name = butterflies | ||||
| description = Minetest Game mod: Butterflies | ||||
| depends = default, flowers | ||||
| @@ -1,3 +1,8 @@ | ||||
| -- carts/cart_entity.lua | ||||
|  | ||||
| -- support for MT game translation. | ||||
| local S = carts.get_translator | ||||
|  | ||||
| local cart_entity = { | ||||
| 	initial_properties = { | ||||
| 		physical = false, -- otherwise going uphill breaks | ||||
| @@ -383,7 +388,7 @@ end | ||||
| minetest.register_entity("carts:cart", cart_entity) | ||||
|  | ||||
| minetest.register_craftitem("carts:cart", { | ||||
| 	description = "Cart (Sneak+Click to pick up)", | ||||
| 	description = S("Cart") .. "\n" .. S("(Sneak+Click to pick up)"), | ||||
| 	inventory_image = minetest.inventorycube("carts_cart_top.png", "carts_cart_side.png", "carts_cart_side.png"), | ||||
| 	wield_image = "carts_cart_side.png", | ||||
| 	on_place = function(itemstack, placer, pointed_thing) | ||||
| @@ -409,7 +414,7 @@ minetest.register_craftitem("carts:cart", { | ||||
| 		end | ||||
|  | ||||
| 		minetest.sound_play({name = "default_place_node_metal", gain = 0.5}, | ||||
| 			{pos = pointed_thing.above}) | ||||
| 			{pos = pointed_thing.above}, true) | ||||
|  | ||||
| 		if not (creative and creative.is_enabled_for | ||||
| 				and creative.is_enabled_for(placer:get_player_name())) then | ||||
|   | ||||
| @@ -1,2 +0,0 @@ | ||||
| default | ||||
| player_api | ||||
| @@ -1,7 +1,12 @@ | ||||
| -- carts/init.lua | ||||
|  | ||||
| -- Load support for MT game translation. | ||||
| local S = minetest.get_translator("carts") | ||||
|  | ||||
| carts = {} | ||||
| carts.modpath = minetest.get_modpath("carts") | ||||
| carts.railparams = {} | ||||
| carts.get_translator = S | ||||
|  | ||||
| -- Maximal speed of the cart in m/s (min = -1) | ||||
| carts.speed_max = 7 | ||||
| @@ -14,3 +19,10 @@ carts.path_distance_max = 3 | ||||
| dofile(carts.modpath.."/functions.lua") | ||||
| dofile(carts.modpath.."/rails.lua") | ||||
| dofile(carts.modpath.."/cart_entity.lua") | ||||
|  | ||||
| -- Register rails as dungeon loot | ||||
| if minetest.global_exists("dungeon_loot") then | ||||
| 	dungeon_loot.register({ | ||||
| 		name = "carts:rail", chance = 0.35, count = {1, 6} | ||||
| 	}) | ||||
| end | ||||
|   | ||||
							
								
								
									
										6
									
								
								mods/carts/locale/carts.de.tr
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										6
									
								
								mods/carts/locale/carts.de.tr
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,6 @@ | ||||
| # textdomain: carts | ||||
| Cart=Lore | ||||
| (Sneak+Click to pick up)=(Schleichen u. Klicken zum Aufheben) | ||||
| Rail=Schiene | ||||
| Powered Rail=Antriebsschiene | ||||
| Brake Rail=Bremsschiene | ||||
							
								
								
									
										6
									
								
								mods/carts/locale/carts.es.tr
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										6
									
								
								mods/carts/locale/carts.es.tr
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,6 @@ | ||||
| # textdomain: carts | ||||
| Cart=Vagoneta | ||||
| (Sneak+Click to pick up)=(Agacharse+Clic para recoger) | ||||
| Rail=Raíl | ||||
| Powered Rail=Raíl energizado | ||||
| Brake Rail=Raíl de frenado | ||||
							
								
								
									
										6
									
								
								mods/carts/locale/carts.fr.tr
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										6
									
								
								mods/carts/locale/carts.fr.tr
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,6 @@ | ||||
| # textdomain: carts | ||||
| Cart=Chariot | ||||
| (Sneak+Click to pick up)=(Se baisser + clic pour ramasser) | ||||
| Rail=Rail | ||||
| Powered Rail=Rail de traction | ||||
| Brake Rail=Rail de freinage | ||||
							
								
								
									
										6
									
								
								mods/carts/locale/carts.it.tr
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										6
									
								
								mods/carts/locale/carts.it.tr
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,6 @@ | ||||
| # textdomain: carts | ||||
| Cart=Vagone | ||||
| (Sneak+Click to pick up)=(Strisciare+Click per raccoglierlo) | ||||
| Rail=Binario | ||||
| Powered Rail=Binario alimentato | ||||
| Brake Rail=Binario freno | ||||
							
								
								
									
										6
									
								
								mods/carts/locale/carts.ms.tr
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										6
									
								
								mods/carts/locale/carts.ms.tr
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,6 @@ | ||||
| # textdomain: carts | ||||
| Cart=Pedati | ||||
| (Sneak+Click to pick up)=(Selinap+Klik untuk ambil balik) | ||||
| Rail=Landasan | ||||
| Powered Rail=Landasan Berkuasa | ||||
| Brake Rail=Landasan Brek | ||||
							
								
								
									
										6
									
								
								mods/carts/locale/carts.ru.tr
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										6
									
								
								mods/carts/locale/carts.ru.tr
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,6 @@ | ||||
| # textdomain: carts | ||||
| Cart=Вагонетка | ||||
| (Sneak+Click to pick up)=(Пригнитесь и кликните по вагонетке, чтобы забрать) | ||||
| Rail=Рельса | ||||
| Powered Rail=Механизированная Рельса | ||||
| Brake Rail=Рельса с тормозом | ||||
Some files were not shown because too many files have changed in this diff Show More
		Reference in New Issue
	
	Block a user