Don't want to? Just make sure the mob you use doesn't drop items (i.e. This works best with gamerule domobdrops set to false, as it gives you more options. Use different entities to have different color potions! You have a lot of options. He is useless now as we have used all the commands on him that we want. Now a chain conditional always active command block with the command:įinally, say goodbye to our bat. speed 30 0 = Speed I for 30 seconds, night_vision 120 4 = Night Vision V for 2 minutes). Remember the first number is how long each effect lasts, mine is 45 seconds each. You can have more effects if you want, or just one. What's actually happening here, though? We're merely adding a second effect to our potion. That is my second effect! If you don't know about this easter egg, follow this tutorial and you can see what happens when we mix these effects. Now a chain conditional always active command block with the command:Įxecute Potion"] ~ ~ ~ effect blindness 45 255 We then give this effect to the nearest player within 6 blocks of our entity. Now a chain conditional always active command block with the command:Įxecute Potion"] ~ ~ ~ effect night_vision 45 255 Notice we skip a /testfor - We have condensed it as this command will only return true if we find a bat by this name. We do this as not to see the entity, as this will hide the death animation when we /kill it later. Place a repeating always active command block with the command:Įffect Potion"] invisibility 9999 255 true Now that we've established the specifics, it's easy going from here. When a spawn egg is given a custom name, the entity it spawns is given that name. Let's get a bat spawn egg and name it "Blackout Potion". We will now know when the player "drinks" our potion whenever our entitiy has spawned. Spawn eggs are one of the most useful things in commands, as they allow us to tell when a player has right-clicked/tapped. This assumes you have a basic knowledge of chain command blocks and conditionals. A forewarning: This is a little bit a stretch of the term "potion", as our "potion" will be instantly consumed.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. Archives
December 2022
Categories |