mirror of
https://git.minetest.land/VoxeLibre/VoxeLibre.git
synced 2024-11-26 04:21:07 +01:00
add random horse speed per mc wiki
This commit is contained in:
parent
4fa1c445cc
commit
5378d8eba7
1 changed files with 7 additions and 0 deletions
|
@ -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 a new issue