File: init.lua

package info (click to toggle)
minetest 0.4.15%2Brepack-1~bpo8%2B1
  • links: PTS, VCS
  • area: main
  • in suites: jessie-backports
  • size: 31,200 kB
  • sloc: cpp: 110,598; xml: 77,537; ansic: 4,149; sh: 851; makefile: 788; python: 659; java: 484
file content (20 lines) | stat: -rw-r--r-- 464 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20

carts = {}
carts.modpath = minetest.get_modpath("carts")
carts.railparams = {}

-- Maximal speed of the cart in m/s (min = -1)
carts.speed_max = 7
-- Set to -1 to disable punching the cart from inside (min = -1)
carts.punch_speed_max = 5


dofile(carts.modpath.."/functions.lua")
dofile(carts.modpath.."/rails.lua")

-- Support for non-default games
if not default.player_attached then
	default.player_attached = {}
end

dofile(carts.modpath.."/cart_entity.lua")