Jump to content
View in the app

A better way to browse. Learn more.

Forge Forums

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Featured Replies

Posted

how to make that when, bull will charge at enemy and block will be in his way, he will just destroy it, and any other blocks in hi's way, except obsidian and bedrock

Proud mod developer of:

 

Mob Armor mod

Block monster mod

Clay Living Dolls mod

Much More Spiders mod

Elemental cows reborn

Mr gorilla mod

This would cool but would be very difficult.  It is difficult because normally all entities use "path finding" to move between locations or to move towards and attack target.  So you'd have to first find a way to get the entity to "want" to move through the blocks.  Secondly, in addition to path finding, there are other methods that prevent an actual collision -- an entity simply can't move into most blocks so it can't really "collide" with a block.

 

I can think of a couple of approaches but I think they would be pretty difficult.  For example, you could replace the blocks between the entity and its target with some custom blocks that allow path finding to go through them, then as the entity went through them you could destroy them.

 

Another approach would be to take full control of the entity's movement when it was "angry" (i.e. had a non-null attack target) and have it go straight at the target and try to destroy the vanilla blocks just before the entity collides with them.

Check out my tutorials here: http://jabelarminecraft.blogspot.com/

  • Author

so how to make it, because i wanna to bull be a mob type that charges into enemy and if misses and hits a block destroys it, or when he charges block beneath him will be destroyed

Proud mod developer of:

 

Mob Armor mod

Block monster mod

Clay Living Dolls mod

Much More Spiders mod

Elemental cows reborn

Mr gorilla mod

Done this before .

 

Method 1 .

 

Look at EntityAILeapAtTarget you can make your own AI and based it to it .

instead of adding motionY how about motionX only .

make a boolean that must be within range to execute.

 

Method 2. (My method)

 

Use PathEntitty + AAPool.expand thingy

  • Author

how to use that thingy ? im new :/

Proud mod developer of:

 

Mob Armor mod

Block monster mod

Clay Living Dolls mod

Much More Spiders mod

Elemental cows reborn

Mr gorilla mod

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

Important Information

By using this site, you agree to our Terms of Use.

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.