1
0
Fork 0
mirror of https://github.com/luanti-org/luanti.git synced 2025-08-26 18:21:04 +00:00

Rename minetest.* to core.* in devtest

This commit is contained in:
Lars Müller 2024-10-28 15:57:54 +01:00 committed by GitHub
parent d849d51c2d
commit 88c7a54e08
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
78 changed files with 914 additions and 914 deletions

View file

@ -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,
})