Im trying to make it so the when the item is used it creates a hud element, is this is wrong how do i create a hud element on use
minetest.register_craftitem("Village Standings", {
description = "View Standing With Encountered Villages",
inventory_image = "villageStandingBook.png"
stack_max = 1
on_use = function(player){
player:hud_add({
hud_elem_type = "image",
scale = {x=67%, y=80%},
text = "sanding_paper.png",
alignment = {x=0,y=0},
offset = {x=0,y=100},
})