1
0
Fork 0

add random horse speed per mc wiki

turtlestriderbeefox
epCode 2022-10-28 01:57:15 +00:00 committed by cora
parent 4fa1c445cc
commit 5378d8eba7
1 changed files with 7 additions and 0 deletions

View File

@ -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