while true do
local event, data = os.pullEvent("player_death")
print(("say %s die, because %s "):format(data.name, data.source)) --谁死了, 伤害源是什么
if data.tags then --如果有标签
print("killer is "..data.name) --杀手是谁
print("killerhas tags %s"..table.concat(data.tags, ", ")) --杀手的标签
end
end
Developer information
Projects on Modrinth are automatically available through a Maven repository for use with JVM build tools such as Gradle.
maven { name = "Modrinth"; url = "https://api.modrinth.com/maven" }