Coder Social home page Coder Social logo

Comments (3)

LofiMonk avatar LofiMonk commented on June 11, 2024

https://minecraft.gamepedia.com/Sitting

It's like the wolf. So when a wolf is tamed it doesn't really attack things unless you attack first or are attacked first, with a few exceptions. The guard bots on the other hand will attack any baddies that come near them. That's the reason it is the way it is. But I can see how that can be annoying. Since this is kind of default behavior for minecraft there may be ways around it. Worth looking into.

from bot-topia.

Subw00fer avatar Subw00fer commented on June 11, 2024

https://minecraft.gamepedia.com/Sitting

"It's like the wolf. So when a wolf is tamed it doesn't really attack things unless you attack first or are attacked first, with a few exceptions. The guard bots on the other hand will attack any baddies that come near them. That's the reason it is the way it is."

You may be misunderstanding. The issue is not that it is attacking while in "stay," the issue is that it seems to be going from "stay" to "follow the owner and teleport to them" after it attacks, instead of staying in the area it is "stay'd" in.

from bot-topia.

LofiMonk avatar LofiMonk commented on June 11, 2024

I understand. What I'm saying is to keep them from teleporting we would have to remove their behavior that makes them attack hostile mobs that the player has not attacked yet.

  • So it's a trade off. Either the guard bot defends the player before the player attacks or is attacked by a hostile mob. This is what causes the guard bot to teleport after you tell it to sit.
  • Or the guard bot only attacks mobs that has attacked the player or the player attacks. This will keep the bots from teleporting after you tell it to sit. but the guard bot wont really be guarding when in sit.

One alternative I've thought of is adding a family to the guard bot that will make hostile mobs hostile to the bot... but the results would be the same... if the guard bot is attacked while sitting and attempts to defend itself it would still teleport.

I'm keeping this issue open for now because It think it deserves some discussion.

from bot-topia.

Related Issues (13)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.