EMC Gaming Regulations

Discussion in 'Products, Businesses, & Services Archives' started by Dark_Liz, Feb 7, 2012.

Thread Status:
Not open for further replies.
  1. And I have another one that I care not to share atm.... but all game mechanics....

    I havent decided to......

    You know what - use sheep.... figure it out from there....
  2. Well how will you feed them both wheat at the same time? I don't think it's a game of luck so much as it's which you chose to feed wheat to first.

    -Mike
  3. Yeah. I like your idea gtabmx :)
    Sound cool. :D
    Trust him. He's an engineer ;) (i guess.lol)
  4. My idea on how it could work is by shearing them. I think they drop a random number (from 1 to 3) of wool.
  5. im thinking he means, breed two sheep of different colour and bet on the colour of the offspring :)
  6. ah right. that might work too. however the number of wool dropped is also a truly random element that might be used for games. thinking of "sheep slots" here. only issue would be scamming due to lags while shearing.
  7. Yes, but the color of the offspring is the color of the parent that you fed wheat to first.

    -Mike
  8. i'm fairly certain it's 50/50 chance.

    Code:
        protected EntityAnimal spawnBabyAnimal(EntityAnimal entityanimal)
        {
            EntitySheep entitysheep = (EntitySheep)entityanimal;
            EntitySheep entitysheep1 = new EntitySheep(worldObj);
            if (rand.nextBoolean())
            {
                entitysheep1.setFleeceColor(getFleeceColor());
            }
            else
            {
                entitysheep1.setFleeceColor(entitysheep.getFleeceColor());
            }
            return entitysheep1;
        }
    lolkold likes this.
  9. Hmm, wiki says "Breeding two sheep will produce a baby sheep of the same color as one of the parents, the color is more likely to be that of the parent fed wheat first." I've never breed any animals before in Minecraft.

    -Mike
  10. Actually, now this I look over that code, it looks like there is a 50/50 chance of it getting a random color between the two or taking the color from the parent from which it spawned (the one fed the wheat). So it wouldn't be exactly 50/50 on the color outcome, more like 75% same color as parent with wheat, and 25% other parent.

    -Mike
  11. no, it's 50/50. it either takes the fleece colour from it's spawning parent, or from the sheep that is passed as an argument, which I assume is it's other parent.

    this code was from the client version that comes with MCP I don't know if it's different in multiplayer or not.
  12. I don't understand the code that well since its somewhat out of context, but I thought that if nextBoolean is true, then it takes a random between parents, if false, it takes from spawning parent.

    -Mike
  13. it's a subroutine of the entitysheep class, if boolean = true then it takes the fleece colour from itself, ie. this.getFleeceColor() in java the "this" is implied.
  14. Oh, then yes, it would be 50/50. Someone should update the minecraft wiki!

    -Mike
  15. Uhh. I guess justin will be interested in this :D
    (and me too)
    Programming stuff :D
  16. *Le Sigh* the Empire is now forming a government...I must remain in the shadows now :/ why can't people just stop taking advantage of people? *le sigh* :/

    that aside these ideas for mini-games is pretty nice and creative!! +5 everyone
    lolkold and gtabmx like this.
  17. thx for some ideas for my casino how do we make the random red stone game?
  18. Nice.. to see you got my sheep worked out :)

    Now if you want to see the 'game' part - send me a msg - still not open to public long term...
    and I'm taking an EMC break.
  19. I think these are good regulations and they were definately necessary!
  20. Or rather than examining code, one could just check the answer in-game.

    That answer is: it's random. At least after a few breedings.

    (The code also says 50/50 though)
Thread Status:
Not open for further replies.