python-minecraft-clone icon indicating copy to clipboard operation
python-minecraft-clone copied to clipboard

Code for episode 14

Open obiwac opened this issue 3 years ago • 21 comments

To note: this was originally intended to be episode 13. Now, this will be episode 14, and episode 13 will be about general code cleanup and optimization.

Includes:

  • [x] ~OBJ model loader (could possibly be split into a separate tutorial?).~ (Instead, there's currently a converter script to convert Bedrock models to MCPY block model files. I might change my mind on this again though...)
  • [x] A bunch of entities, defined in an entity descriptor file (data/entities.mcpy). They can be spawned by pressing P.
  • [x] ~An instanced rendering system for rendering entities.~ (In the end, the bottleneck is by far from computing physics & collisions for entities, not from draw calls. Also incompatible with animation model.)
  • [x] Specific mob shaders for lighting them correctly ~(may end up in a future episode)~.
  • [ ] The ability to save/load entities.
  • [x] Extremely basic mob AI.
  • [x] Mob animations.
  • [ ] Use correct textures lol #98
  • [ ] Sort out normals, because they're incorrect. See https://github.com/NovAti0n/MOOdle/pull/16

The different entities include the player, pigs, zombies, skeletons, creepers, ~spiders, sheep, giants, slimes,~ and cows.

Will merge when the episode comes out on my YouTube channel!

obiwac avatar Feb 04 '22 16:02 obiwac

yay

drakeerv avatar Mar 17 '22 17:03 drakeerv

Can you please add a menu and infinite worlds too?

Atten007 avatar Apr 28 '22 11:04 Atten007

And maybe multiplayer?

Atten007 avatar Apr 28 '22 11:04 Atten007

Can you please add a menu and infinite worlds too?

Infinite worlds are quite trivial to do, the problem is rather with chunk generation performance. I don't know if menus will be covered by a tutorial per se, but the one on 2D interface elements will come soon (right after episode 13 on mobs).

And maybe multiplayer?

That's planned, but not for the moment ;)

obiwac avatar Apr 28 '22 13:04 obiwac

This pull request introduces 18 alerts when merging 5f57e913a13e311a3df30af56b26b9abc5a09d01 into 8ee716aea159f25732d5cb2aa4af1218c82fa4ad - view on LGTM.com

new alerts:

  • 7 for Wrong number of arguments in a class instantiation
  • 4 for Wrong number of arguments in a call
  • 3 for Unused local variable
  • 3 for Unused import
  • 1 for Module imports itself

lgtm-com[bot] avatar Jul 24 '22 15:07 lgtm-com[bot]

This pull request introduces 15 alerts when merging 38293266477fbaffbc7804fca455cb54c3b93d47 into 8ee716aea159f25732d5cb2aa4af1218c82fa4ad - view on LGTM.com

new alerts:

  • 7 for Wrong number of arguments in a class instantiation
  • 4 for Wrong number of arguments in a call
  • 3 for Unused import
  • 1 for Module imports itself

lgtm-com[bot] avatar Jul 24 '22 15:07 lgtm-com[bot]

This pull request introduces 15 alerts and fixes 1 when merging f07f5245efa4b632978a92f7fd16d3aa7eb82d80 into 8ee716aea159f25732d5cb2aa4af1218c82fa4ad - view on LGTM.com

new alerts:

  • 6 for Wrong number of arguments in a class instantiation
  • 5 for Wrong number of arguments in a call
  • 3 for Unused import
  • 1 for Module imports itself

fixed alerts:

  • 1 for Unused import

lgtm-com[bot] avatar Jul 24 '22 16:07 lgtm-com[bot]

alr nerd

obiwac avatar Jul 25 '22 11:07 obiwac

This pull request introduces 15 alerts and fixes 1 when merging 030642dfdfb16965b95d1404026b4e20eaf4c0dd into 8ee716aea159f25732d5cb2aa4af1218c82fa4ad - view on LGTM.com

new alerts:

  • 6 for Wrong number of arguments in a class instantiation
  • 5 for Wrong number of arguments in a call
  • 3 for Unused import
  • 1 for Module imports itself

fixed alerts:

  • 1 for Unused import

lgtm-com[bot] avatar Jul 25 '22 12:07 lgtm-com[bot]

chill nerd bot we have pycharm

abhra2020-smart avatar Dec 09 '22 16:12 abhra2020-smart

how about a villager mob?

happyleibniz avatar Sep 06 '23 15:09 happyleibniz

maybe you can set a trading system

happyleibniz avatar Sep 06 '23 15:09 happyleibniz

yeah that would be fun, once a UI system is in place! maybe to be added in the community directory because that's a bit out of scope for the episodes.

obiwac avatar Sep 07 '23 16:09 obiwac

Obiwac didn't add a bottom texture or smt is true :) i checked the texture folder :>

happyleibniz avatar Sep 08 '23 10:09 happyleibniz

of the torch i mean

happyleibniz avatar Sep 08 '23 10:09 happyleibniz