Add CrystalAura
parent
8e3c5788bc
commit
1c6755a09d
9
init.lua
9
init.lua
|
@ -54,7 +54,16 @@ minetest.register_globalstep(function(dtime)
|
|||
end
|
||||
end
|
||||
end
|
||||
|
||||
if minetest.settings:get_bool("crystalaura") then
|
||||
for _, obj in ipairs(minetest.get_nearby_objects(7)) do
|
||||
if obj:get_item_textures() == "mcl_end_crystal.png" then
|
||||
obj:punch()
|
||||
end
|
||||
end
|
||||
end
|
||||
end)
|
||||
|
||||
minetest.register_cheat("CrystalPvP", "Combat", "crystal_pvp")
|
||||
minetest.register_cheat("AutoTotem", "Combat", "autototem")
|
||||
minetest.register_cheat("CrystalAura", "Combat", "crystalaura")
|
||||
|
|
|
@ -1,2 +1,3 @@
|
|||
crystalpvp (CrystalPvP) bool false
|
||||
autototem (AutoTotem) bool false
|
||||
crystalaura (CrystalAura) bool false
|
||||
|
|
Loading…
Reference in New Issue