Posted November 3, 20231 yr Hello there! I'm trying to apply an effect to the player if its pet is near a beacon. any way I can do this?
November 6, 20231 yr Can you explain the conditions under which an effect should be added to the player? But the TickEvent.Player should be a good point to start.
November 6, 20231 yr Author The way I'm doing it is so the "pet" gives the effect. But it's only gonna be near a beacon. And it's to the owner.
November 6, 20231 yr Then you have to search for a player and a beacon in a certain area, you can use an AABB and a BlockPos.Mutable for Blocks. The level has methods to get entities under certain conditions, e.g. getEntities or something like that.
November 6, 20231 yr Author 19 minutes ago, Luis_ST said: Then you have to search for a player and a beacon in a certain area I'm just wan'ting to find the beacon. 19 minutes ago, Luis_ST said: You can use an AABB and a BlockPos.Mutable for Blocks. What's AABB?
November 6, 20231 yr 5 hours ago, ChickenSpeed12 said: I'm just wan'ting to find the beacon. Did you have tried anything? 5 hours ago, ChickenSpeed12 said: What's AABB? It's Vanilla's implementation of a 3-demotional area, use your ide to take a look at the class
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.