forked from VoxeLibre/VoxeLibre
add random horse speed per mc wiki
This commit is contained in:
parent
4fa1c445cc
commit
5378d8eba7
|
@ -181,6 +181,13 @@ local horse = {
|
|||
on_spawn = update_textures,
|
||||
do_custom = function(self, dtime)
|
||||
|
||||
if not self._horse_speed then
|
||||
self._horse_speed = math.random(486, 1457)/100
|
||||
else
|
||||
minetest.chat_send_all(self._horse_speed)
|
||||
self.run_velocity = self._horse_speed
|
||||
end
|
||||
|
||||
-- set needed values if not already present
|
||||
if not self._regentimer then
|
||||
self._regentimer = 0
|
||||
|
|
Loading…
Reference in New Issue