mirror of
https://github.com/minetest-mods/i3.git
synced 2025-06-28 06:40:17 +02:00
Add API to manage waypoints
This commit is contained in:
12
tests/test_waypoints.lua
Normal file
12
tests/test_waypoints.lua
Normal file
@ -0,0 +1,12 @@
|
||||
core.after(5, function()
|
||||
i3.add_waypoint("Test", {
|
||||
player = "singleplayer",
|
||||
pos = {x = 0, y = 2, z = 0},
|
||||
color = 0xffff00,
|
||||
-- image = "heart.png",
|
||||
})
|
||||
|
||||
core.after(5, function()
|
||||
i3.remove_waypoint("singleplayer", "Test")
|
||||
end)
|
||||
end)
|
Reference in New Issue
Block a user