Fix the bug that baby (non-monster) mobs cant jump over blocks #3093

Merged
ancientmarinerdev merged 1 commits from CyberMango/MineClone2:dev/mango/fix_baby_mobs_jump into master 2022-12-11 03:17:02 +01:00
Member

Fixes #2313

Simply removed a line that specifies they shouldnt do that.
That line seems to originate from commit 8a5fc728ad from 6 years ago by Wuzzy, and was copied from a mod at the time called "mobs_mc" that was added on that very commit.

Steps for testing:

  1. Create an empty flat world with a few long lines on the ground at the height of 1 block.
  2. Spawn a few baby mobs of a type you may choose, for example a cow:
    a) type command /grantme all
    b) type /spawn_mob cow 6 times
    c) feed the cows with wheat to make them breed and spawn baby cows.
  3. Hold wheat to lure baby cows towards you.
  4. walk over a line of 1 block height (make sure not to walk too fast, and also to make enough distance from the baby cow to make it "want" to jump over the block).
  5. Watch if the babies are able to jump over a block to reach you
  6. Optional: increase the constant "HORNY_TIME" from file "breeding.lua" to extend the time babies remain babies.
Fixes #2313 Simply removed a line that specifies they shouldnt do that. That line seems to originate from commit 8a5fc728ad from 6 years ago by Wuzzy, and was copied from a mod at the time called "mobs_mc" that was added on that very commit. Steps for testing: 1) Create an empty flat world with a few long lines on the ground at the height of 1 block. 2) Spawn a few baby mobs of a type you may choose, for example a cow: a) type command /grantme all b) type /spawn_mob cow 6 times c) feed the cows with wheat to make them breed and spawn baby cows. 3) Hold wheat to lure baby cows towards you. 4) walk over a line of 1 block height (make sure not to walk too fast, and also to make enough distance from the baby cow to make it "want" to jump over the block). 5) Watch if the babies are able to jump over a block to reach you 6) Optional: increase the constant "HORNY_TIME" from file "breeding.lua" to extend the time babies remain babies.
CyberMango added 1 commit 2022-12-10 19:13:10 +01:00
f7f2b97b13 Fixed #2313 - baby mobs cant jump over blocks.
Simply removed a line that specifies they shouldnt do that.

Looks good and tested. Thanks for fixing this. Really appreciated :).

Looks good and tested. Thanks for fixing this. Really appreciated :).
ancientmarinerdev approved these changes 2022-12-11 03:16:40 +01:00
ancientmarinerdev merged commit 055432c1f7 into master 2022-12-11 03:17:02 +01:00
ancientmarinerdev added this to the 0.82.0 - Bamburgered milestone 2022-12-11 23:44:24 +01:00
Sign in to join this conversation.
No reviewers
No project
No Assignees
2 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: VoxeLibre/VoxeLibre#3093
No description provided.