Skip to content
This repository has been archived by the owner on Oct 22, 2022. It is now read-only.

adding "Carryable" to any block #1

Closed
radiocrack opened this issue May 2, 2018 · 1 comment
Closed

adding "Carryable" to any block #1

radiocrack opened this issue May 2, 2018 · 1 comment
Labels

Comments

@radiocrack
Copy link

Hi Copygirl, Elwood here

Not an issue but a question

I was looking at how you patched chests and baskets. Can the "Carryable" attribute be added to any block or just containers?

I was thinking I could add the attribute to the carcass block in my animal products mod. Then carry the carcass on my back.

I would need to somehow use the jsonpatch "test" to make sure the CarryCapacity mod is loaded. Then i could use patch to add the Carryable attribute optionally to my carcass block.

@copygirl
Copy link
Owner

copygirl commented May 3, 2018

You can add the behavior that allows picking up a block to any block. In fact, if I disable the behavior requirement, you can pick up grass, loose stones, even water!

You already saw my carryable.json patch, but I figure I'll mention it for anyone else seeing this issue. The behavior name doesn't use a domain so don't use "carrycapacity:Carryable".

I think you are correct in that a test operation checking whether /behaviors/0/name for the chest or basket is "Carryable" should do what you want, but I'm a little worried the JsonPatch library didn't do this correctly... again.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

2 participants