mirror of
https://github.com/luanti-org/luanti.git
synced 2025-10-14 00:55:20 +02:00
Rename minetest.*
to core.*
in devtest
This commit is contained in:
@@ -18,7 +18,7 @@ local phasearmor = {
|
||||
}
|
||||
local max_phase = 12
|
||||
|
||||
minetest.register_entity("testentities:armorball", {
|
||||
core.register_entity("testentities:armorball", {
|
||||
initial_properties = {
|
||||
hp_max = 20,
|
||||
physical = false,
|
||||
@@ -33,7 +33,7 @@ minetest.register_entity("testentities:armorball", {
|
||||
_phase = 7,
|
||||
|
||||
on_activate = function(self, staticdata)
|
||||
minetest.log("action", "[testentities] armorball.on_activate")
|
||||
core.log("action", "[testentities] armorball.on_activate")
|
||||
self.object:set_armor_groups(phasearmor[self._phase])
|
||||
self.object:set_sprite({x=0, y=self._phase})
|
||||
end,
|
||||
@@ -56,6 +56,6 @@ minetest.register_entity("testentities:armorball", {
|
||||
if not name then
|
||||
return
|
||||
end
|
||||
minetest.chat_send_player(name, "time_from_last_punch="..string.format("%.3f", time_from_last_punch).."; damage="..tostring(damage))
|
||||
core.chat_send_player(name, "time_from_last_punch="..string.format("%.3f", time_from_last_punch).."; damage="..tostring(damage))
|
||||
end,
|
||||
})
|
||||
|
Reference in New Issue
Block a user