Cubyz icon indicating copy to clipboard operation
Cubyz copied to clipboard

[Ore] Resin

Open Argmaster opened this issue 7 months ago • 19 comments

This is a proposal to add resin ore to the game.

In game properties:

  • naturally spawns as an ore on coniferous tree logs.

Modifiers

  • sticky - When you mine a block with a tool that has sticky modifier it does not drop item, instead item is placed directly into your inventory. #172

Spawn rules

  • 0 < Z < 4000

Related to: #1269

Argmaster avatar Apr 21 '25 18:04 Argmaster

I still think tree tappers are something to consider so that resin is something you have to work towards, instead of just finding on a tree. Then we could expand it to other trees, like harvesting sap or syrup from deciduous trees.

careeoki avatar Apr 21 '25 22:04 careeoki

I agree with Carrie. Plus there's the idea of truffles, where you have to go digging around trees to find them.

ikabod-kee avatar Apr 21 '25 22:04 ikabod-kee

Truffles and tapping are fundamentally different mechanics, first one is still basically searching for ores with strange spawn style, while the other is basically farming, you place a tap and you wait. I don't say it is bad, Its just something that is not yet present anywhere in Cubyz, so we are opening new domain - farming - and we don't have tools in engine for that yet.

Argmaster avatar Apr 21 '25 22:04 Argmaster

Yeah, yet. So let's wait on this addition.

ikabod-kee avatar Apr 21 '25 22:04 ikabod-kee

Actually, there might be a clever way to get this done and handle dropping items when inventory is full using #1251 BlockDropLocation set to player position instead of broken block. We need to check tho if we need to remove velocity in such case so drops don't escape instead of getting picked up.

Argmaster avatar Apr 24 '25 00:04 Argmaster

Oh yes, that's a great idea.

IntegratedQuantum avatar Apr 24 '25 14:04 IntegratedQuantum

However what happens if another player stands in the same location?

IntegratedQuantum avatar Apr 24 '25 14:04 IntegratedQuantum

We can no longer place resin ore on logs, so we need a different solution.

careeoki avatar Jun 03 '25 17:06 careeoki

I think we should have carpet-like resin stains.

Argmaster avatar Jun 03 '25 18:06 Argmaster

We could also do a carpet rotation, but it's directly on top of the block instead of being 1 pixel away from it. (don't worry I can fix the z-fighting)

IntegratedQuantum avatar Jun 03 '25 18:06 IntegratedQuantum

Or we could also give rotation modes more bits and some control over the model.

IntegratedQuantum avatar Jun 03 '25 18:06 IntegratedQuantum

Logs were supposed to also support stair rotation, we would need a lot of bits

Argmaster avatar Jun 03 '25 18:06 Argmaster

And the last option would be to remap the old log variant back to rotation data 0.

IntegratedQuantum avatar Jun 03 '25 18:06 IntegratedQuantum

Logs were supposed to also support stair rotation, we would need a lot of bits

We could afford an extra 32 I think.

IntegratedQuantum avatar Jun 03 '25 18:06 IntegratedQuantum

But where do we store all the 4294967296 possible combinations of the data?

Argmaster avatar Jun 03 '25 18:06 Argmaster

At this point we'd have to make model loading more dynamic, instead of as static as it is right now.

IntegratedQuantum avatar Jun 03 '25 19:06 IntegratedQuantum

We could also do a carpet rotation, but it's directly on top of the block instead of being 1 pixel away from it. (don't worry I can fix the z-fighting)

This would be good enough i think

careeoki avatar Jun 03 '25 19:06 careeoki

Updated my tree tapping issue #1384 with what I was suggesting on saturday (a seperate sappy log block)

careeoki avatar Jun 09 '25 18:06 careeoki

giant underground resin mushroom like mold-bulb O | |

thelonesnail avatar Jun 09 '25 19:06 thelonesnail