mirror of
https://github.com/minetest/minetest_game.git
synced 2024-11-14 05:50:19 +01:00
1e691c4429
This is all the working code from SmallJoker's boost_cart, poored into a more suitable form for minetest_game. - Mesecons and moreores stuff was removed entirely. - Textures were all renamed and moved out of default/ - Updated license, readme.txt, attribution - Changed code license to MIT, left artwork at CC0 - removed default:rail and made aliases for it - :carts:rail is now carts:rail. - localized entity def - removed copper rail entirely - startstop rail was removed, as well as detector rail - remodeled to b3d using stujones11 excellent blend model, but sizes of cart adjusted to make pixel sizes consistent (0.625) everywhere. - slightly more complex texture map for the cart (front/side visibly different) - rail parameters are passed as a separate def table, and stored in a private list. This avoids having to call `get_meta` on every node. In return, we need the node name, though. - adds metal sounds (based on default metal sound function) and cart moving sound. - reduced cart speeds to max 7, 5 by pushing. - Added on_step() rail event handler, gets called when a cart is on a rail. - Added various rebased updates from upstream (thanks Krock) - Included a fix that removes the 'reverse jiggle' when stopping. - Included reworked textures by sofar. The mod namespace is still public, but I'm NOT declaring it an API. I'd rather see it localized instead, for now. Any public interface in this code is *experimental* at best, and should be considered non-stable and unsupported for now.
78 lines
4.0 KiB
Lua
78 lines
4.0 KiB
Lua
-- mods/default/aliases.lua
|
|
|
|
-- Aliases to support loading worlds using nodes following the old naming convention
|
|
-- These can also be helpful when using chat commands, for example /giveme
|
|
minetest.register_alias("stone", "default:stone")
|
|
minetest.register_alias("stone_with_coal", "default:stone_with_coal")
|
|
minetest.register_alias("stone_with_iron", "default:stone_with_iron")
|
|
minetest.register_alias("dirt_with_grass", "default:dirt_with_grass")
|
|
minetest.register_alias("dirt_with_grass_footsteps", "default:dirt_with_grass_footsteps")
|
|
minetest.register_alias("dirt", "default:dirt")
|
|
minetest.register_alias("sand", "default:sand")
|
|
minetest.register_alias("gravel", "default:gravel")
|
|
minetest.register_alias("sandstone", "default:sandstone")
|
|
minetest.register_alias("clay", "default:clay")
|
|
minetest.register_alias("brick", "default:brick")
|
|
minetest.register_alias("tree", "default:tree")
|
|
minetest.register_alias("jungletree", "default:jungletree")
|
|
minetest.register_alias("junglegrass", "default:junglegrass")
|
|
minetest.register_alias("leaves", "default:leaves")
|
|
minetest.register_alias("cactus", "default:cactus")
|
|
minetest.register_alias("papyrus", "default:papyrus")
|
|
minetest.register_alias("bookshelf", "default:bookshelf")
|
|
minetest.register_alias("glass", "default:glass")
|
|
minetest.register_alias("wooden_fence", "default:fence_wood")
|
|
minetest.register_alias("rail", "carts:rail")
|
|
minetest.register_alias("ladder", "default:ladder_wood")
|
|
minetest.register_alias("wood", "default:wood")
|
|
minetest.register_alias("mese", "default:mese")
|
|
minetest.register_alias("cloud", "default:cloud")
|
|
minetest.register_alias("water_flowing", "default:water_flowing")
|
|
minetest.register_alias("water_source", "default:water_source")
|
|
minetest.register_alias("lava_flowing", "default:lava_flowing")
|
|
minetest.register_alias("lava_source", "default:lava_source")
|
|
minetest.register_alias("torch", "default:torch")
|
|
minetest.register_alias("sign_wall", "default:sign_wall_wood")
|
|
minetest.register_alias("furnace", "default:furnace")
|
|
minetest.register_alias("chest", "default:chest")
|
|
minetest.register_alias("locked_chest", "default:chest_locked")
|
|
minetest.register_alias("cobble", "default:cobble")
|
|
minetest.register_alias("mossycobble", "default:mossycobble")
|
|
minetest.register_alias("steelblock", "default:steelblock")
|
|
minetest.register_alias("sapling", "default:sapling")
|
|
minetest.register_alias("apple", "default:apple")
|
|
|
|
minetest.register_alias("WPick", "default:pick_wood")
|
|
minetest.register_alias("STPick", "default:pick_stone")
|
|
minetest.register_alias("SteelPick", "default:pick_steel")
|
|
minetest.register_alias("MesePick", "default:pick_mese")
|
|
minetest.register_alias("WShovel", "default:shovel_wood")
|
|
minetest.register_alias("STShovel", "default:shovel_stone")
|
|
minetest.register_alias("SteelShovel", "default:shovel_steel")
|
|
minetest.register_alias("WAxe", "default:axe_wood")
|
|
minetest.register_alias("STAxe", "default:axe_stone")
|
|
minetest.register_alias("SteelAxe", "default:axe_steel")
|
|
minetest.register_alias("WSword", "default:sword_wood")
|
|
minetest.register_alias("STSword", "default:sword_stone")
|
|
minetest.register_alias("SteelSword", "default:sword_steel")
|
|
|
|
minetest.register_alias("Stick", "default:stick")
|
|
minetest.register_alias("paper", "default:paper")
|
|
minetest.register_alias("book", "default:book")
|
|
minetest.register_alias("lump_of_coal", "default:coal_lump")
|
|
minetest.register_alias("lump_of_iron", "default:iron_lump")
|
|
minetest.register_alias("lump_of_clay", "default:clay_lump")
|
|
minetest.register_alias("steel_ingot", "default:steel_ingot")
|
|
minetest.register_alias("clay_brick", "default:clay_brick")
|
|
minetest.register_alias("snow", "default:snow")
|
|
|
|
-- 'mese_block' was used for a while for the block form of mese
|
|
minetest.register_alias("default:mese_block", "default:mese")
|
|
|
|
-- Aliases for corrected pine node names
|
|
minetest.register_alias("default:pinetree", "default:pine_tree")
|
|
minetest.register_alias("default:pinewood", "default:pine_wood")
|
|
|
|
minetest.register_alias("default:ladder", "default:ladder_wood")
|
|
minetest.register_alias("default:sign_wall", "default:sign_wall_wood")
|