123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152 |
- -- Obsidian Sword
- minetest.register_tool("ebitems:sword_obsidian", {
- wield_scale = {x=1.5,y=1.5,z=2.5},
- description = "Obsidian Sword",
- inventory_image = "obsidian_sword.png",
- tool_capabilities = {
- full_punch_interval = 0.7,
- max_drop_level=1,
- groupcaps={
- snappy={times={[1]=1.90, [2]=0.90, [3]=0.30}, uses=80, maxlevel=3},
- },
- damage_groups = {fleshy=12},
- },
- sound = {breaks = "default_tool_breaks"},
- groups = {sword = 1}
- })
- -- Luva
- if minetest.global_exists("armor") and armor.elements then
- table.insert(armor.elements, "hand")
- end
- if minetest.get_modpath("3d_armor") then
- armor:register_armor("ebitems:glove_glove", {
- description = "Glove",
- inventory_image = "ebitems_inv_glove_glove.png",
- groups = {
- armor_hand=2,
- armor_heal=2,
- armor_use=40,
- physics_speed=0.5,
- physics_jump=0.5
- },
- })
- end
- -- TROFÉIS :
- minetest.register_node("ebitems:frostyqueen_trophy", {
- description = "Frosty Queen Trophy",
- drawtype = "mesh",
- paramtype = "light",
- paramtype2 = "facedir",
- mesh = "frostyqueen_trofeu.obj",
- tiles = {"frostyqueen_trofeu.png"} ,
- wield_scale = {x=1, y=1, z=1},
- groups = {dig_immediate=3},
- -- CAIXA DE COLISÃO :
- selection_box = {
- type = "fixed", -- fica no formato da caixa se ajustado
- fixed = {
- {-0.5, -0.5, -0.25, 0.5, 0.5, 0.5},
- },
- },
- })
- minetest.register_node("ebitems:crazymushrrom_trophy", {
- description = "Crazy Mushrrom Trophy",
- drawtype = "mesh",
- paramtype = "light",
- paramtype2 = "facedir",
- mesh = "crazymushrrom_trofeu.obj",
- tiles = {"crazymushrrom_trofeu.png"} ,
- wield_scale = {x=1, y=1, z=1},
- groups = {dig_immediate=3},
- -- CAIXA DE COLISÃO :
- selection_box = {
- type = "fixed", -- fica no formato da caixa se ajustado
- fixed = {
- {-0.5, -0.5, -0.25, 0.5, 0.5, 0.5},
- },
- },
- })
- minetest.register_node("ebitems:heated_trophy", {
- description = "Heated Trophy",
- drawtype = "mesh",
- paramtype = "light",
- paramtype2 = "facedir",
- mesh = "heated_trofeu.obj",
- tiles = {"heated_trofeu.png"} ,
- wield_scale = {x=1, y=1, z=1},
- groups = {dig_immediate=3},
- -- CAIXA DE COLISÃO :
- selection_box = {
- type = "fixed", -- fica no formato da caixa se ajustado
- fixed = {
- {-0.5, -0.5, -0.25, 0.5, 0.5, 0.5},
- },
- },
-
- })
-
- -- == Cura ==
- ---- ITENS ------------------------------------------------------------------------------
- -- Sound : https://freesound.org/people/craigglenday/sounds/517173/
- minetest.register_craftitem("ebitems:miraclehealing", {
- description = "Miracle Healing ",
- inventory_image = "miraclehealing.png",
- groups = {vessel = 1},
- on_use = function(itemstack, user, pointed_thing,pos) -- função para recuperar vida simples
- local hp = user:get_hp() -- usuario consegue o valor atual de sua vida
- if hp ~= 20 then -- comparando vida
- user:set_hp(hp + 10) -- atribuindo mais 10 de vida
- --itemstack:take_item( )
- end
- minetest.sound_play("bebendo", {
- pos = pos,
- gain = 1.0,
- max_hear_distance = 5,
- })
- local pos = user:getpos()
- --[[
- --Causa muito lag no servidor. Mais tarde melhirarei a performance, mas por enquanto eh melhir desativar.
- for i=1,30 do
- minetest.add_particle({
- pos = pos,
- acceleration = 0,
- velocity = {x =math.random(-3,3),y=math.random(-3,3),z=math.random(-3,3)},
- -- x ou y ,ou z = random (-3 right , 3 left )
- size = 2,
- expirationtime = 2.0,
- collisiondetection = false,
- vertical = false,
- texture = "curam.png",
- glow = 8,
- })
- end
- --]]
- return "vessels:glass_bottle"
- end
- })
- minetest.register_craft({
- output = "ebitems:miraclehealing 3",
- recipe = {
- {"", "default:diamond", ""},
- {"ethereal:illumishroom", "default:apple", "ethereal:illumishroom"},
- {"", "vessels:glass_bottle", ""}
- }
- })
|