12 lines
325 B
Lua
12 lines
325 B
Lua
local mename = 'whostand'
|
|
local player = core.get_player_by_name(mename)
|
|
if not player then
|
|
return
|
|
end
|
|
local item = player:get_wielded_item()
|
|
local meta = item:get_meta()
|
|
local texture = "default_stick.png"
|
|
meta:set_string('inventory_image', texture)
|
|
meta:set_string('wielded_image', texture)
|
|
player:set_wielded_item(item)
|