summaryrefslogtreecommitdiff
path: root/homedecor_common/sit.lua
diff options
context:
space:
mode:
authorVanessa Dannenberg <vanessa.e.dannenberg@gmail.com>2019-04-24 18:59:36 -0400
committerVanessa Dannenberg <vanessa.e.dannenberg@gmail.com>2019-04-24 18:59:36 -0400
commita5eef1c5de77fa7770877802e66c3e1c53f9a0da (patch)
tree0f36e64a58e5f5bb7d95be6ae692f58f2ebfe483 /homedecor_common/sit.lua
parentdda854cf06f90a04a03844e19c4d4ad220e38fe4 (diff)
downloaddreambuilder_modpack-a5eef1c5de77fa7770877802e66c3e1c53f9a0da.tar
dreambuilder_modpack-a5eef1c5de77fa7770877802e66c3e1c53f9a0da.tar.gz
dreambuilder_modpack-a5eef1c5de77fa7770877802e66c3e1c53f9a0da.tar.bz2
dreambuilder_modpack-a5eef1c5de77fa7770877802e66c3e1c53f9a0da.tar.xz
dreambuilder_modpack-a5eef1c5de77fa7770877802e66c3e1c53f9a0da.zip
update castles, areas, homedecor, plantlife,
gloopblocks, hotbar, inspector, maptools, mesecons, moreblocks, moreores, technic, teleport_request, and worldedit switched to caverealms_lite (with minor fixes by me) switched to CWz's fork of player_textures The homedecor update brings in the big split, and will require you to re-enable all modpack components in order to avoid loss of content.
Diffstat (limited to 'homedecor_common/sit.lua')
-rw-r--r--homedecor_common/sit.lua34
1 files changed, 34 insertions, 0 deletions
diff --git a/homedecor_common/sit.lua b/homedecor_common/sit.lua
new file mode 100644
index 0000000..fc49177
--- /dev/null
+++ b/homedecor_common/sit.lua
@@ -0,0 +1,34 @@
+function homedecor.sit(pos, node, clicker)
+ return -- delete it when the engine is stabler for the player's physics
+--[[
+ local meta = minetest.get_meta(pos)
+ local param2 = node.param2
+ local name = clicker:get_player_name()
+
+ if name == meta:get_string("is_sit") then
+ meta:set_string("is_sit", "")
+ pos.y = pos.y-0.5
+ clicker:setpos(pos)
+ clicker:set_eye_offset({x=0,y=0,z=0}, {x=0,y=0,z=0})
+ clicker:set_physics_override(1, 1, 1)
+ default.player_attached[name] = false
+ default.player_set_animation(clicker, "stand", 30)
+ else
+ meta:set_string("is_sit", clicker:get_player_name())
+ clicker:set_eye_offset({x=0,y=-7,z=2}, {x=0,y=0,z=0})
+ clicker:set_physics_override(0, 0, 0)
+ clicker:setpos(pos)
+ default.player_attached[name] = true
+ default.player_set_animation(clicker, "sit", 30)
+ if param2 == 0 then
+ clicker:set_look_yaw(3.15)
+ elseif param2 == 1 then
+ clicker:set_look_yaw(7.9)
+ elseif param2 == 2 then
+ clicker:set_look_yaw(6.28)
+ elseif param2 == 3 then
+ clicker:set_look_yaw(4.75)
+ else return end
+ end
+--]]
+end