Posted May 17, 201411 yr So I have my portal block and it operates, but how do I make it give off a sound when you are near it?
May 17, 201411 yr world.playSound(#) or player.(Don't remember but I believe it's the same.) You put this where the portal ticks.
May 17, 201411 yr Author world.playSound(#) or player.(Don't remember but I believe it's the same.) You put this where the portal ticks. Won't this make it start the sound every tick?
May 17, 201411 yr Yes. It always does, but you have be close enough to it (you can set it in the fields)
May 17, 201411 yr Author Yes. It always does, but you have be close enough to it (you can set it in the fields) But then if you are close to it you'll just hear the sound constantly starting, not playing once it ends.
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.