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:
parent
d849d51c2d
commit
88c7a54e08
78 changed files with 914 additions and 914 deletions
|
@ -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,
|
||||
})
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue