#Stackable beds datapack

1 messages · Page 1 of 1 (latest)

barren reef
#

Im making a datapack that makes beds stack and right now im trying to figure out how to trigger the function to convert non-stackable beds to stackable ones once they get added to your inventory but im not sure how to make it feel normal and not move the beds around arbitrarily. Any ideas

wintry charmBOT
#

<@&1201956957406109788>

Someone will come and help soon!

💬 While you wait, take this time to provide more context and details.

🙇 If nobody has answered you by <t:1723247025:t>, feel free to use the Summon Helpers button to ping our helper team.

✅ Once your question has been resolved (or you no longer need it), please click Resolve Question or run /resolve

humble talon
#

I think you shoudl be able to use item modifiers

barren reef
#

What are those?

humble talon
#

Files that you put in your datapack that modify items and that you can call with commands

barren reef
#

So is it just a function or is it like a json that states how items behave?

humble talon
#

It's a json file that defines how to modify the item when it is called

#

For example, I think you could have an item modifier that sets the count of an item to one

#

I haven't used them so I can't help you much, but I think they should be the best option

barren reef
#

Alright ill look into that

barren reef
humble talon
#

As I said I don't know them well, but from what I have in mind item modifiers modify the items, so they shouldn't move in slot

barren reef
#

Now that I think of it I might be able to modify the bed loot tables to make them drop stackable beds so i dont have to modify the items at all (aside from pre-existing beds in item form)

humble talon
#

I think it should be possible

olive talon