3 Commits

Author SHA1 Message Date
1aec5b88a1 Delete depends.txt, add mod.conf 2022-07-06 23:35:35 +02:00
64ccb6950e Replace deprecated getyaw method by get_yaw 2021-04-04 17:18:22 +02:00
003b950abc Replace deprecated setyaw method by set_yaw 2021-04-04 16:55:44 +02:00
7 changed files with 15 additions and 11 deletions

View File

@ -122,7 +122,7 @@ end
-- maidroid.maidroid.get_look_direction returns a normalized vector that is -- maidroid.maidroid.get_look_direction returns a normalized vector that is
-- the maidroid's looking direction. -- the maidroid's looking direction.
function maidroid.maidroid.get_look_direction(self) function maidroid.maidroid.get_look_direction(self)
local yaw = self.object:getyaw() local yaw = self.object:get_yaw()
return vector.normalize{x = -math.sin(yaw), y = 0.0, z = math.cos(yaw)} return vector.normalize{x = -math.sin(yaw), y = 0.0, z = math.cos(yaw)}
end end
@ -135,7 +135,7 @@ end
-- maidroid.maidroid.set_yaw_by_direction sets the maidroid's yaw -- maidroid.maidroid.set_yaw_by_direction sets the maidroid's yaw
-- by a direction vector. -- by a direction vector.
function maidroid.maidroid.set_yaw_by_direction(self, direction) function maidroid.maidroid.set_yaw_by_direction(self, direction)
self.object:setyaw(math.atan2(direction.z, direction.x) - math.pi / 2) self.object:set_yaw(math.atan2(direction.z, direction.x) - math.pi / 2)
end end
-- maidroid.maidroid.get_wield_item_stack returns the maidroid's wield item's stack. -- maidroid.maidroid.get_wield_item_stack returns the maidroid's wield item's stack.

View File

@ -1 +0,0 @@
default

4
maidroid/mod.conf Normal file
View File

@ -0,0 +1,4 @@
name = maidroid
title = Maidroid
description = Provide maid robots
depends = default

View File

@ -1,2 +0,0 @@
maidroid
pdisc?

5
maidroid_core/mod.conf Normal file
View File

@ -0,0 +1,5 @@
name = maidroid_core
title = Maidroid Core
description = Provide cores for maidroid
depends = maidroid
optional_depends = pdisc

View File

@ -1,6 +0,0 @@
bucket
default
dye
wool
maidroid
maidroid_core

4
maidroid_tool/mod.conf Normal file
View File

@ -0,0 +1,4 @@
name = maidroid_tool
title = Maidroid Tool
description = Provide tools for Maidroids
depends = bucket,default,dye,wool,maidroid,maidroid_core