Skip to content

Add farming of wheat, growing mushrooms, spreading/dying fire#4

Open
jilleb wants to merge 90 commits into
yyy257:masterfrom
jilleb:master
Open

Add farming of wheat, growing mushrooms, spreading/dying fire#4
jilleb wants to merge 90 commits into
yyy257:masterfrom
jilleb:master

Conversation

@jilleb

@jilleb jilleb commented Apr 30, 2025

Copy link
Copy Markdown

These changes will make the hoe item useful, as it will allow the player to use a hoe on grass and dirt surfaces, and turn them into farmland. Using right click with any hoe will convert, as long as there's air above the block.

I haven't played the real Minecraft, so I hope this is kind of accurate. But it is a step in a direction where we can do actual farming and create food.

@jilleb

jilleb commented May 1, 2025

Copy link
Copy Markdown
Author

I added:

  • Flint & Steel can set flammable blocks on fire
  • Fire progresses to other flammable blocks, but there's a random element to it, and the fire can go out
  • Plant seeds, on farmland
  • Grow crops after seeds are planted
  • Grow mushrooms, in a dark place on dirt

@jilleb

jilleb commented May 1, 2025

Copy link
Copy Markdown
Author

Planting seeds on farmland, to grow crops:
1746124698

Fire progressing, burning things down:
1746068330
1746068414

@jilleb jilleb changed the title Add function to use hoe on dirt/grass to convert it to farmland Add farming of wheat, growing mushrooms, spreading/dying fire May 2, 2025
@jilleb

jilleb commented May 7, 2025

Copy link
Copy Markdown
Author

Bed placement and usage is now added as well.
image

When you rightclick the bed, time will skip 12 hours.

jilleb added 7 commits May 7, 2025 23:25
For usage with TNT detonation
first draft version, can probably be done in a nicer way
Uses ray casting logic now, just like Minecraft
Set #define GFX_3D_ELEMENTS in gfx_settings.h to get the 3D billboards and such back.
@jilleb

jilleb commented May 9, 2025

Copy link
Copy Markdown
Author

TNT now explodes.
Explosion uses raycasting to determine which blocks to destroy. Digging hardness is used to decide if the block is strong enough to withstand the explosion, and explosion impact will decrease after hitting a harder block. After exploding (which looks quite ugly at the moment) ,1/3 of all destroyed blocks will leave a drop, just like original Minecraft.

I might make a less advanced explosion mechanism... tested with a sphere-like explosion impact, but that was very cartoonish...

For now I'll leave it at this. There's probably a ton of performance improvements that can be made...
favex

And I also added a gfx_setting to enable 3d billboards and such again, so we can turn them on/off, depending on the needs and preference.

@jilleb

jilleb commented Jun 5, 2025

Copy link
Copy Markdown
Author

image
Minecart model, built from scratch :-)

Entity bounding boxes visible, and can be interacted with (note the "use" feature, still to be filled in with actual functionality:
image

jilleb added 26 commits June 5, 2025 22:23
todo: refactor so all movement stuff goes to a file with helper functions
Rails direction now isn't determined during each render cycle but on placement and when neighbouring blocks are changed.

Slopes are now also possible.
Things still go wrong in the corners and slopes, but a fix is on the way :-)
@coldog2013-bit

Copy link
Copy Markdown

MAKE IT COMPATIBILE WITH REAL HARDWARE AND MAKE IT BUILDABLE FOR WII!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants