• There is NO official Otland's Discord server and NO official Otland's server list. The Otland's Staff does not manage any Discord server or server list. Moderators or administrator of any Discord server or server lists have NO connection to the Otland's Staff. Do not get scammed!

House items problem.

Joined
Mar 14, 2020
Messages
139
Solutions
3
Reaction score
11
My house decor items can be removed from the house, how can i do to make that impossible? Like, the player buy a Dummy, he can't take the dummy out of his house, but in my OT he can, how i can fix that?
 
does your dummy have wrapid attribute?
My datapack doesnt have this "eventcallbacks" so where should i look to see if i have this? :e

The unique thing that i found with "wrap" is this attribute:
<attribute key="wrapableTo" value="26054" />
On items.xml

And in my player.lua where is player:eek:nMoveItem doesnt have that.

EDIT: Added that part to player.lua where onMove and now is fixed! thanks again.
 
Last edited:
Should it look like this? 🤔
XML:
<attribute key="wrapid" value="3912" />

Because I am getting error
Code:
[Warning - Items::parseItemNode] Unknown key value: wrapid

TFS 1.3

nope

Lua:
local item = player:addItem(26054, 1) -- creates the decoration kit
if item then
    item:setAttribute("wrapid", 25393) -- set its attribrute to the item id it will turn
end
 
Back
Top