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.

robertcarr22

Members
  • Joined

  • Last visited

Everything posted by robertcarr22

  1. I am trying out a few things and have code that when you right click with a wand item it knocks back the entity your pointing at. I now want a circle of particles to appear as if its a spell hit. here is the code i have for spawning the particles: http://gist.github.com/robertcarr22/52acc1d813e1fe68b910 All the spawning of the particles work its just making them move out circularly
  2. oh… arg that means i need to think of another way of doing this any suggestions on how to get a bounding box so that the entity the player is pointing at gets selected? EDIT: nevermind figured something out!
  3. Right okay I tried this code out: https://gist.github.com/robertcarr22/21f97f33584c3e0b8468 and it works well in the south east direction but doesn't work at all in any other direction. This is probably because I've don't the maths for the bounding box wrong but Im not entirely sure.. EDIT: Seems to be with the calculation of where the player is looking not the bounding box Okay it actually seems to be something wrong with detecting entities in the box. It detects entities in the bounding box when facing south east but not any other direction. I can't figure out what is going wrong
  4. Thanks for this but i don't need to separate the client and server anymore I'm having a different problem
  5. Right okay I tried this code out: https://gist.github.com/robertcarr22/21f97f33584c3e0b8468 and it works well in the south east direction but doesn't work at all in any other direction. This is probably because I've don't the maths for the bounding box wrong but Im not entirely sure.. EDIT: Seems to be with the calculation of where the player is looking not the bounding box
  6. never heard of that method… what are the 2 params you put in the getEntitiesWithinAABB method? and where does that code get used?
  7. Ahhhh i see! Is there anyway to find the entity a player is looking at that will work on server side?
  8. Previous issue solved. Scroll down for current issue

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.