Redrield
Last Activity:
Jul 28, 2017 at 8:04 AM
Joined:
Sep 12, 2015
Messages:
2,341
Resources:
8
Positive ratings received:
1,125

Post Ratings

Received: Given:
Like 203 24
Agree 523 98
Funny 118 40
Winner 111 49
Informative 45 1
Friendly 27 3
Useful 38 3
Optimistic 51 39
Creative 9 1

Awarded Medals 2

Gender:
Male
Birthday:
May 17, 2002 (Age: 15)
Location:
Earth

Share This Page

Redrield

Male, 15, from Earth

Redrield was last seen:
Jul 28, 2017 at 8:04 AM
    1. darkshadow22mc
      darkshadow22mc
      Hi! I have a question. How could I detect if the block under a player is a sandstone slab? I have this basic code:


      Player eP = e.getPlayer();
      Material beP = new Location(eP.getWorld(), eP.getLocation().getX(), eP.getLocation().getY(), eP.getLocation().getZ()).
      getBlock().getType();
      ---
      else if(!(beP == Material.STONE_SLAB2 || beP == Material.AIR || beP == Material.SANDSTONE)){
      1. Redrield
        Redrield
        Try Material mat = p.getWorld().getBlockAt(p.getLocation().subtract(0, 1, 0)).getType();
        Apr 23, 2016
      2. darkshadow22mc
        darkshadow22mc
        Nope,don't work:
        Material beP = new Location(eP.getWorld(), eP.getLocation().getX(), eP.getLocation().getY(), eP.getLocation().getZ()).
        getBlock().getType();
        Material mat = eP.getWorld().getBlockAt(eP.getLocation().subtract(0, 1, 0)).getType();
        --
        else if(!(beP == mat || beP == Material.AIR || beP == Material.SANDSTONE)){
        Apr 23, 2016
    2. avighnash
      avighnash
      You are one talented developer.
    3. _Cory_
      _Cory_
      Your signature doesn't need the conditional statement.
      1. JoeDon16 likes this.
    4. Squallz
      Squallz
      Omg Reddddd rip BDMC
    5. v7killstreaker
  • Loading...
  • Loading...
  • About

    Gender:
    Male
    Birthday:
    May 17, 2002 (Age: 15)
    Location:
    Earth

    Signature

    My plugins | My blog | Plugin Commissions
    Code (Text):
    val op = Redrield.activeThread.threadOpener
    try {
        helpOP(op)
    }catch(e: WantsSpoonfeedingException) { op.sendMessage("Will a fork do?") }
  • Loading...
  • Loading...