aboutsummaryrefslogtreecommitdiff
path: root/games/minimal/mods/experimental
diff options
context:
space:
mode:
authorPerttu Ahola <celeron55@gmail.com>2012-03-31 13:50:25 +0300
committerPerttu Ahola <celeron55@gmail.com>2012-03-31 13:50:25 +0300
commitdc70f50b5901732f928c439060dcbbcc6a5dfeb7 (patch)
treef1f69273b321476124023832b70ef9bd15b3d5ee /games/minimal/mods/experimental
parente297c739139ad0116ebdcda7a8dc5884d89f5a96 (diff)
downloadminetest-dc70f50b5901732f928c439060dcbbcc6a5dfeb7.tar.gz
minetest-dc70f50b5901732f928c439060dcbbcc6a5dfeb7.tar.bz2
minetest-dc70f50b5901732f928c439060dcbbcc6a5dfeb7.zip
initial_properties field in entity definition
Diffstat (limited to 'games/minimal/mods/experimental')
-rw-r--r--games/minimal/mods/experimental/init.lua21
1 files changed, 11 insertions, 10 deletions
diff --git a/games/minimal/mods/experimental/init.lua b/games/minimal/mods/experimental/init.lua
index 55ea64132..11f32b3f9 100644
--- a/games/minimal/mods/experimental/init.lua
+++ b/games/minimal/mods/experimental/init.lua
@@ -409,16 +409,17 @@ minetest.register_alias("TNT", "experimental:tnt")
--
minetest.register_entity("experimental:dummyball", {
- -- Static definition
- hp_max = 20,
- physical = false,
- collisionbox = {-0.4,-0.4,-0.4, 0.4,0.4,0.4},
- visual = "sprite",
- visual_size = {x=1, y=1},
- textures = {"experimental_dummyball.png"},
- spritediv = {x=1, y=3},
- initial_sprite_basepos = {x=0, y=0},
- -- Dynamic variables
+ initial_properties = {
+ hp_max = 20,
+ physical = false,
+ collisionbox = {-0.4,-0.4,-0.4, 0.4,0.4,0.4},
+ visual = "sprite",
+ visual_size = {x=1, y=1},
+ textures = {"experimental_dummyball.png"},
+ spritediv = {x=1, y=3},
+ initial_sprite_basepos = {x=0, y=0},
+ },
+
phase = 0,
phasetimer = 0,