Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

NPC falling through the world when using shoot command #419

Closed
mythan opened this issue Sep 14, 2013 · 5 comments
Closed

NPC falling through the world when using shoot command #419

mythan opened this issue Sep 14, 2013 · 5 comments
Labels
Bug Denizen is misbehaving.

Comments

@mythan
Copy link

mythan commented Sep 14, 2013

I'm not sure if this one is worth spending a lot of energy on, but if you shoot an NPC up into the air it'll fall through the ground when it's supposed to land. I thought it was client side, but by using a proximity trigger it confirmed the NPC wasn't there anymore.

I've tried with and without an origin and get the same result.

If it doesn't happen on the first attempt, just click them again:

"Shoot Up":
  type: assignment

  interact scripts:
  - 5 High Jump

  actions:
    on assignment:
    - trigger name:click toggle:true
    - trigger name:proximity toggle:true radius:2

"High Jump":
  type: interact
  steps:
    1:
      proximity trigger:
        entry:
          script:
          - chat "<npc.id> is here.."
      click trigger:
        script:
        - define y <npc.location.y.add[10]>
        - shoot <npc> "destination:<npc.location.x>,%y%,<npc.location.z>,world"
@Morphan1
Copy link
Contributor

I uh... Had a bow that shot pigs stacked on top of each other, and I'm pretty sure the only reason they stayed above ground was because of the ones on top of the pig on the bottom. I have no idea what the problem is, but a pile of pigs swimming through land is pretty strange

@mcmonkey4eva
Copy link
Member

@mythan -

        - define y <npc.location.y.add[10]>
        - shoot <npc> "destination:<npc.location.x>,%y%,<npc.location.z>,world"

should just be
- shoot <npc> destination:<npc.location.add[0,10,0]>

Also, I've seen this happen on another server, but can't seem to replicate it on my own server...
Lemme update...
Nope. Can't make it happen again. 0.o

@mythan
Copy link
Author

mythan commented Sep 15, 2013

Updated the line to what you suggested mcmonkey, but yes..still getting the same result. First jump fine, second jump straight through the ground.

@mythan
Copy link
Author

mythan commented Sep 15, 2013

I don't know if this relates, but when I do shoot entities:primed_tnt origin:<npc> destination:<player.location> sometimes the tnt explodes, but most of the time it just disappears. Could this relate to this issue?

NPC's and primed_tnt are both entities.

@davidcernat
Copy link
Contributor

NPCs and most entities don't fall into the ground for me at all, but cows for instance do. Regardless, it's a weird Minecraft physics bug.

If you don't use a script with it, the Shoot command literally does nothing to the entity itself except for setting its velocity one single time in this line:

lastEntity.setVelocity(v3);

I'll look into it more once we dVectors are implemented, but I'm not sure there is much that can be done.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Denizen is misbehaving.
Projects
None yet
Development

No branches or pull requests

4 participants