local name = player:get_player_name()
client_version_channels[name] = minetest.mod_channel_join(name..":client_version_channel")
client_has_clientmod[name] = nil
- minetest.after(3, function()
- if not client_has_clientmod[name] then
+ minetest.after(5, function()
+ if client_has_clientmod[name] then
+ client_has_clientmod[name] = nil
+ else
minetest.chat_send_player(name, minetest.colorize("orange", "It seems like you don't have Crafter client installed."
.. " You will not be able to use all features of this server without the clientmod."
.. " Please dowload it here: https://github.com/EliasFleckenstein03/crafter_client"))
- else
- client_has_clientmod[name] = nil
end
end)
end)
"button[5,3.5;1,1;inventory.back;back]" --back button
local output
local recipe
-local usable_recipe
+local usable_table
local function create_craft_formspec(item)
--don't do air
if item == "" then
else
craft_inv = create_craft_formspec(item)
if craft_inv and craft_inv ~= "" then
- minetest.show_formspec(name, id, empty_armor_slots(player)..tmi_master_inventory["page_"..temp_pool.page]..craft_inv..cheat_button(name))
+ minetest.show_formspec(name, id, tmi_master_inventory["page_"..temp_pool.page]..craft_inv..cheat_button(name))
minetest.sound_play("lever", {to_player = name,gain=0.7})
end
end
entity.wielder = name
- object:set_attach(player, "Right_Hand", vector.new(0,0,0), vector.new(0,0,0))
+ object:set_attach(player, "Right_Hand", vector.new(0,0,0), vector.new(0, 0, 0))
temp_pool.wield_item = object
end
itemname = stack:is_known() and stack:get_name() or "unknown"
def = minetest.registered_nodes[itemname]
+ tooldef = minetest.registered_tools[itemname]
self.object:set_properties({
textures = {itemname},
wield_item = self.itemstring,
glow = def and def.light_source,
})
+
+ local parent, bone, offset, rotation, forced_visible = self.object:get_attach()
+
+ if not parent then
+ return
+ end
+
+ if tooldef then
+ rotation = vector.new(90, 45, 90)
+ else
+ rotation = vector.new(0, 0, 0)
+ end
+
+ self.object:set_attach(parent, bone, offset, rotation, forced_visible)
end
minetest.register_entity("player_api:item", {
self.object:remove()
end
end,
-})
\ No newline at end of file
+})
- Equip armor with rightclick
- Shift-click fuel into furnace
- Throwing eggs
-- 3d person visuals: Fix invalid rotation of wield tools
-- Sprinting
- Rebalancing of ore generation probabilities and tool speeds
- More sophisticated particle effects
- Season effects (only affecting audiovisuals like textures and music)