All users will need to merge their Minecraft Forum account with a new or existing Twitch account starting October 23rd. You can merge your accounts by clicking here. Have questions? Learn more here.
Dismiss
  • 0

    posted a message on Eclipses?

    As most of you know, an eclipse has recently occurred in the U.S. (I don't know about the rest of the world).

    It reminded me of the idea of eclipses, and I figured it would be interesting to happen in Minecraft.

    Background knowledge on total solar eclipses: The moon blocks our view of the sun, and it creates an effect of temporary darkness. They're amazing, rare events.


    TYPE OF ECLIPSE:

    They would be total solar eclipses. Not lunar eclipses, or partial solar eclipses! This means it will COMPLETELY block our view of the sun, not just somewhat.

    It wouldn't be worth it to have eclipses like that, as they aren't nearly as good as total solar eclipses.


    HOW OFTEN:

    The eclipse would happen every 100 in game days, which makes sense; they're even rarer in real life.

    But, as an exception, it would happen after 35 days since the player created his/ her world, assuming that the last eclipse since the player created their world was 65 days ago. I chose to include this so the player would be excited to see the eclipse

    Posted in: Suggestions
  • 0

    posted a message on How to "/testfor" a min. amount of items?

    I have a computer (without Minecraft) as well as a mobile device. As I'm trying to create shops where a player can buy items for a certain amount of emeralds, would it be possible to install a shop mod/ plug-in or whatever they call it? Does that stuff still work in multiplayer?

    Posted in: Commands, Command Blocks and Functions
  • 0

    posted a message on Having Problems With Command Blocks? I Can Help!

    I'm creating a shop. I need to test for a minimum amount of an item (with a command block).


    For example, I'll need test whether or not a player has at least 5 diamonds (to be able to purchase an item).


    I know how to test if they have diamonds in the first place, but I can't figure out how to do a minimum amount!


    By the way, I'm using Pocket Edition, Beta v1.2.0.18, so the "/timestamp" command does not function yet.


    I am new to commands, and only know the basics, because they only just released a couple months ago on pocket edition. Please help! If the "/testfor" command cannot function like that, then I would appreciate it if you could help create my shop via a different method. Thank you.


    Here is a list of commands on the MCPE wiki: http://minecraftpocketedition.wikia.com/wiki/Commands/List_of_Commands

    Posted in: Commands, Command Blocks and Functions
  • 0

    posted a message on How to "/testfor" a min. amount of items?

    I'm creating a shop. I need to test for a minimum amount of an item (with a command block).


    For example, I'll need test whether or not a player has at least[/i] 5 diamonds (to be able to purchase an item).


    I know how to test if they have [/i]diamonds in the first place, but I can't figure out how to do a minimum amount!


    By the way, I'm using Pocket Edition, Beta v1.2.0.18, so the "/timestamp" command does not function yet.


    I am new to commands, and only the basics, because they only just released a couple months ago on pocket edition. Please help! If the "/testfor" command cannot function like that, then I would appreciate it if you could help create my shop via a different method. Thank you.


    Here is a list of commands on the MCPE wiki: http://minecraftpocketedition.wikia.com/wiki/Commands/List_of_Commands

    Posted in: Commands, Command Blocks and Functions
  • 0

    posted a message on How to "/testfor" a min. amount of an item?

    I'm creating a shop. I need to test for a minimum amount of an item (with a command block).


    For example, I'll need test whether or not a player has at least 5 diamonds (to be able to purchase an item).


    I know how to test if they have diamonds in the first place, but I can't figure out how to do a minimum amount!


    By the way, I'm using Pocket Edition, Beta v1.2.0.18, so the "/timestamp" command does not function yet.


    I am new to commands, and only the basics, because they only just released a couple months ago on pocket edition. Please help! If the "/testfor" command cannot function like that, then I would appreciate it if you could help create my shop via a different method. Thank you.


    Here is a list of commands on the MCPE wiki: http://minecraftpocketedition.wikia.com/wiki/Commands/List_of_Commands


    Sorry if I posted in the wrong category!

    Posted in: Commands, Command Blocks and Functions
  • 0

    posted a message on Help with creating shop?

    I am using MCPE beta v1.2.0.18

    Yes, pocket edition now includes commands and command blocks. However, it lacks the /timestamp command.


    Anyways, I used to create my shop. Everything seemed to be working fine, when at the end of the video, he mentions that "I recommend only making something cost 1 of an item, or else you can buy the product as long as you have any of the item."


    What this issue basically is, example:
    10 arrows cost 2 emeralds. But as long as you have emeralds in the first place, you can buy it regardless. So you can still buy all of the 10 arrows with only 1 emerald, as well as 2 or more.


    And I can't just make everything cost 1 emerald, that would be ridiculous.



    If you don't want to watch the video, then I'll just write down everything about the command blocks (although the video would be easier):


    The first command block is activated by a button. It is "Impulse," "Unconditional," and "Needs Redstone."

    The command: /clear @p emerald 0 5


    A comparator is to the right of the first command block. The long (two-sided) side is facing it.


    An observer is in front of the first command block. The red hole side is the side facing away from it.


    Redstone comes out of the red hole side of the observer. It then splits into parts, like the figure below depicts:

    l l

    - - -

    l


    The two ends of the redstone go into two redstone repeaters. The redstone repeaters have not been changed since it was created. The long ends touches the redstone, the short ends touches the command blocks ahead.


    The command block ahead is activated when the repeater gets a signal. It is "Impulse," "Unconditional," and "Needs Redstone."

    /testforblock 2476 5 21 powered_comparator

    2476 (X), 5 (Y), 21 (Z) is just the coords. for where the comparator is. This tests whether it is powered; it powers when it gets a signal from the first command block.


    The other command block ahead is activated the opposite of the last one; it's the same except it tests for the comparator being not powered.

    /testforblock 2476 5 21 unpowered_comparator

    The comparator only powers when it has successfully taken emeralds (5, 4, 3, 2, or 1) from my inv. That's why it only works properly with 1 emerald.


    Chain blocks run off of the last two command blocks mentioned. This one runs off of the one that tests for a powered comparator. It is "Chain," "Conditional," and "Always Active."

    /give @p apple 10

    If it has taken (any amount of) emeralds from the inv., the comparator powers, and if that powers, it will know it because of the test and run this chain block, giving me 10 apples.


    This one runs off of the one that tests for a unpowered comparator. It is "Chain," "Conditional," and "Always Active."

    /msg @p Purchase failed!

    It just tells the player that it did not work.


    There is also a third chain command block that runs off of the command that gives the player 10 apples:

    /msg @p Purchase successful!


    Yes, there's a lot, but it's mainly because I had to describe EVERYTHING. Again, watching the video might be easier.


    Can anybody help me modify this, or give me a completely different system?


    Is there a way to "/testfor" a minimum amount of emeralds in the players inv., not just if they have one?

    Posted in: Commands, Command Blocks and Functions
  • To post a comment, please or register a new account.