Donate
navigation
Untitled Document
Latest topics
» Another New Minecraft Server, TSC 4.0
Mon Mar 12, 2018 8:37 pm by Poiuytas

» New Minecraft Server! #TSC3.0
Wed May 31, 2017 10:56 am by timmie124

» 1.2 = out
Fri Apr 21, 2017 12:54 am by Poiuytas

» BRING BACK THE SERVER
Fri Apr 07, 2017 1:20 am by JugsMcBulge

» NEW RANKING SYSTEM (WIP)
Fri Apr 07, 2017 1:15 am by JugsMcBulge

» El Sleezo's Pawn (Back)
Fri Apr 07, 2017 1:10 am by JugsMcBulge

» not sure if we're still doing this but...
Fri Apr 07, 2017 1:09 am by JugsMcBulge

» bananananana peal
Fri Apr 07, 2017 1:03 am by JugsMcBulge

» banana appeal
Fri Apr 07, 2017 1:02 am by JugsMcBulge


Stuff to put in a plugin I'm making

Page 2 of 2 Previous  1, 2

Go down

Re: Stuff to put in a plugin I'm making

Post by Poiuytas on Sun Oct 20, 2013 12:38 pm

loop857 wrote:
Poiuytas wrote:
TheWeirdo9 wrote:no

you have to make the cow aggressive
Pretty sure it's impossible
as far as you know
Ok, you do it then.

_________________


avatar
Poiuytas
Jack
Jack

Posts : 787
Join date : 2011-11-07
Age : 19
Location : ur mums bum ( ͡° ͜ʖ ͡°)

Back to top Go down

Re: Stuff to put in a plugin I'm making

Post by loop857 on Sun Oct 20, 2013 12:47 pm

Poiuytas wrote:
loop857 wrote:
Poiuytas wrote:
TheWeirdo9 wrote:no

you have to make the cow aggressive
Pretty sure it's impossible
as far as you know
Ok, you do it then.
I dont have a computer looks like its up 2 you
avatar
loop857
lewp968

Posts : 307
Join date : 2011-07-25
Age : 20
Location : usa, michigan

Back to top Go down

Re: Stuff to put in a plugin I'm making

Post by Guest on Sun Oct 20, 2013 2:06 pm

Poiuytas wrote:
TheWeirdo9 wrote:no

you have to make the cow aggressive
Pretty sure it's impossible
Just make a new mob then.

As long as it looks like a cow and makes a moo sound and it's aggressive.

Guest
Guest


Back to top Go down

Re: Stuff to put in a plugin I'm making

Post by Kronmuffin on Sun Oct 20, 2013 2:24 pm

just reskin a zombie or somfin
avatar
Kronmuffin
Admin

Posts : 994
Join date : 2011-06-16
Location : Barry Manalow's Asshole

Back to top Go down

Re: Stuff to put in a plugin I'm making

Post by Poiuytas on Sun Oct 20, 2013 4:23 pm

Kronmuffin wrote:just reskin a zombie or somfin
Because you can do that in a plugin.

_________________


avatar
Poiuytas
Jack
Jack

Posts : 787
Join date : 2011-11-07
Age : 19
Location : ur mums bum ( ͡° ͜ʖ ͡°)

Back to top Go down

Re: Stuff to put in a plugin I'm making

Post by Guest on Sun Oct 20, 2013 9:14 pm

Poiuytas wrote:
Kronmuffin wrote:just reskin a zombie or somfin
Because you can do that in a plugin.
find a way

Guest
Guest


Back to top Go down

Re: Stuff to put in a plugin I'm making

Post by Poiuytas on Mon Oct 21, 2013 10:26 am

Guys, you act as if there's a method like cow.canAttack(true);

_________________


avatar
Poiuytas
Jack
Jack

Posts : 787
Join date : 2011-11-07
Age : 19
Location : ur mums bum ( ͡° ͜ʖ ͡°)

Back to top Go down

Re: Stuff to put in a plugin I'm making

Post by Guest on Mon Oct 21, 2013 11:41 am

you don't have to remake the cow

change some other mob

Guest
Guest


Back to top Go down

Re: Stuff to put in a plugin I'm making

Post by Poiuytas on Mon Oct 21, 2013 11:49 am

TheWeirdo9 wrote:you don't have to remake the cow

change some other mob
Just retest ute something I look like a ow? There's nothing that attacks that has the same dimensions and shape of a cow.

_________________


avatar
Poiuytas
Jack
Jack

Posts : 787
Join date : 2011-11-07
Age : 19
Location : ur mums bum ( ͡° ͜ʖ ͡°)

Back to top Go down

Re: Stuff to put in a plugin I'm making

Post by Guest on Mon Oct 21, 2013 12:52 pm

reskin a zombie it'll be funny

Guest
Guest


Back to top Go down

Re: Stuff to put in a plugin I'm making

Post by Kronmuffin on Mon Oct 21, 2013 7:17 pm

TheWeirdo9 wrote:reskin a zombie it'll be funny
Royce seconds this
avatar
Kronmuffin
Admin

Posts : 994
Join date : 2011-06-16
Location : Barry Manalow's Asshole

Back to top Go down

Re: Stuff to put in a plugin I'm making

Post by timmie124 on Mon Oct 21, 2013 9:10 pm

actually you could probably do something like this (btw I have no idea what I'm talking about)

if player.input("killercow") {
   @override class cow.mob(new.killercow){
     
 }
}
else

then that new.killercow would pretty much be the class as the baby zombies.

least this is kinda how it would look in udk

_________________


TL;DR: While Iguanas CAN be fed on a mayonnaise only diet, it is hard to do and rarely worth the risk.

avatar
timmie124
Founder

Posts : 1520
Join date : 2011-06-11
Age : 24
Location : santa ana california

http://tscgaming.org

Back to top Go down

Re: Stuff to put in a plugin I'm making

Post by Poiuytas on Mon Oct 21, 2013 9:40 pm

timmie124 wrote:if player.input("killercow") {
   @override class cow.mob(new.killercow){
     
 }
}
else
tim what

_________________


avatar
Poiuytas
Jack
Jack

Posts : 787
Join date : 2011-11-07
Age : 19
Location : ur mums bum ( ͡° ͜ʖ ͡°)

Back to top Go down

Re: Stuff to put in a plugin I'm making

Post by Guest on Mon Oct 21, 2013 10:37 pm

player input killercow though?

that means it's a command

what kind of shit is that

Guest
Guest


Back to top Go down

Re: Stuff to put in a plugin I'm making

Post by Poiuytas on Mon Oct 21, 2013 10:48 pm

This is what I have so far:

Code:
package me.xMrPoi.ellis;

import java.util.logging.Logger;

import org.bukkit.ChatColor;
import org.bukkit.Location;
import org.bukkit.Material;
import org.bukkit.Sound;
import org.bukkit.World;
import org.bukkit.command.Command;
import org.bukkit.command.CommandSender;
import org.bukkit.entity.Cow;
import org.bukkit.entity.Entity;
import org.bukkit.entity.EntityType;
import org.bukkit.entity.Player;
import org.bukkit.event.EventHandler;
import org.bukkit.event.Listener;
import org.bukkit.event.entity.EntityDamageByEntityEvent;
import org.bukkit.event.entity.EntityDamageEvent;
import org.bukkit.event.entity.EntityDeathEvent;
import org.bukkit.inventory.ItemStack;
import org.bukkit.plugin.PluginDescriptionFile;
import org.bukkit.plugin.java.JavaPlugin;

public class main extends JavaPlugin implements Listener{
 public final Logger logger = Logger.getLogger("Minecraft");
 public static main plugin;
 
public void onEnable(){
 PluginDescriptionFile pdfFile = getDescription();
 this.logger.info(pdfFile.getName() + " v. " + pdfFile.getVersion() + " has been enabled");
 getServer().getPluginManager().registerEvents(this, this);
 }
 
public void onDisable(){
 PluginDescriptionFile pdfFile = getDescription();
 this.logger.info(pdfFile.getName() + " has been disabled");
 }
 
@EventHandler
 public void onEntityDamage(EntityDamageEvent event){
 org.bukkit.entity.Entity entity = event.getEntity();
 if(entity instanceof Cow){
 Cow cow = (Cow) entity;
 if(ChatColor.stripColor(cow.getCustomName()).equals("C  Super Cow  C ")){
 int random = (int)(Math.random()*4+1);
 if(random == 1){
 cow.getWorld().playSound(cow.getLocation(), Sound.BURP, 1, 1);
 }
 if(random == 2){
 cow.getWorld().playSound(cow.getLocation(), Sound.BURP, 1, (float) 1.5);
 }
 if(random == 3){
 cow.getWorld().playSound(cow.getLocation(), Sound.BURP, 1, 2);
 }
 if(random == 4){
 }
 }
 }
 }
 
@EventHandler
 public void onEntityDeathDamage(EntityDamageByEntityEvent event){
 org.bukkit.entity.Entity entity = event.getEntity();
 if(!(entity instanceof Cow))
 return;
 Cow cow = (Cow) entity;
 if(!ChatColor.stripColor(cow.getCustomName()).equals("C  Super Cow  C "))
 return;
 if (event.getDamage() < cow.getHealth())
 return;
 Entity damager = event.getDamager();
 if (!(damager instanceof Player))
 return;
 Player player = (Player) damager;
 for(int ind = 0;ind<=10;ind++){
 World world = player.getWorld();
 int x = (int) player.getLocation().getX() + (int)(Math.random()*5-5);
 int y = (int) player.getLocation().getY() + (int)(Math.random()*35+30);
 int z = (int) player.getLocation().getZ() + (int)(Math.random()*5-5);
 Location location = new Location(world , x, y ,z);
 Cow cow1 = (Cow) world.spawnEntity(location, EntityType.COW);
 cow1.setCustomName("Cow Angel");
 cow1.setCustomNameVisible(false);
 }

 
}
 
@EventHandler
 public void onEntityDeath(EntityDeathEvent event){
 org.bukkit.entity.Entity entity = event.getEntity();
 if(entity instanceof Cow){
 Cow cow = (Cow) entity;
 if(ChatColor.stripColor(cow.getCustomName()).equals("C  Super Cow  C ")){
 event.getDrops().add(new ItemStack(Material.LEATHER, (int)(Math.random()*64+20)));
 event.getDrops().add(new ItemStack(Material.COOKED_BEEF, (int)(Math.random()*64+20)));
 event.setDroppedExp(210);
 cow.getWorld().createExplosion(cow.getLocation(), (float)0);
 }else if(cow.getCustomName().equals("Cow Angel")){
 event.getDrops().clear();
 event.setDroppedExp(0);
 cow.getWorld().createExplosion(cow.getLocation(), (float)0);
 }
 }
 }
 
public boolean onCommand(CommandSender sender, Command cmd, String commandLabel, String[] args){
 Player player = (Player) sender;
 
if(commandLabel.equalsIgnoreCase("SuperCow")){
 World world = player.getWorld();
 Cow cow = (Cow) world.spawnEntity(player.getLocation(), EntityType.COW);
 cow.setCustomName(ChatColor.RED + "" + ChatColor.MAGIC + "C " + ChatColor.GOLD + ChatColor.BOLD + " Super Cow " + ChatColor.RED + ChatColor.MAGIC + " C ");
 cow.setMaxHealth((double)200);
 cow.setHealth((double)200);
 }
 return false;
 }
}
or http://pastebin.com/HdnkQffn

_________________


avatar
Poiuytas
Jack
Jack

Posts : 787
Join date : 2011-11-07
Age : 19
Location : ur mums bum ( ͡° ͜ʖ ͡°)

Back to top Go down

Re: Stuff to put in a plugin I'm making

Post by Kronmuffin on Tue Oct 22, 2013 4:19 pm

timmie124 wrote:actually you could probably do something like this (btw I have no idea what I'm talking about)

if player.input("killercow") {
   @override class cow.mob(new.killercow){
     
 }
}
else

then that new.killercow would pretty much be the class as the baby zombies.

least this is kinda how it would look in udk
tim java scrip is different from html
avatar
Kronmuffin
Admin

Posts : 994
Join date : 2011-06-16
Location : Barry Manalow's Asshole

Back to top Go down

Re: Stuff to put in a plugin I'm making

Post by Poiuytas on Tue Oct 22, 2013 4:46 pm

Kronmuffin wrote:
timmie124 wrote:actually you could probably do something like this (btw I have no idea what I'm talking about)

if player.input("killercow") {
   @override class cow.mob(new.killercow){
     
 }
}
else

then that new.killercow would pretty much be the class as the baby zombies.

least this is kinda how it would look in udk
tim java scrip is different from html
It uses normal Java, not JavaScript.

_________________


avatar
Poiuytas
Jack
Jack

Posts : 787
Join date : 2011-11-07
Age : 19
Location : ur mums bum ( ͡° ͜ʖ ͡°)

Back to top Go down

Re: Stuff to put in a plugin I'm making

Post by Kronmuffin on Tue Oct 22, 2013 5:59 pm

Poiuytas wrote:
Kronmuffin wrote:
timmie124 wrote:actually you could probably do something like this (btw I have no idea what I'm talking about)

if player.input("killercow") {
   @override class cow.mob(new.killercow){
     
 }
}
else

then that new.killercow would pretty much be the class as the baby zombies.

least this is kinda how it would look in udk
tim java scrip is different from html
It uses normal Java, not JavaScript.
i knew that i was just letting tim know. i don't think he knew.

and knowing is half the battle.... G.I.JOE!!!!
avatar
Kronmuffin
Admin

Posts : 994
Join date : 2011-06-16
Location : Barry Manalow's Asshole

Back to top Go down

Re: Stuff to put in a plugin I'm making

Post by timmie124 on Tue Oct 22, 2013 7:22 pm

Kronmuffin wrote:
Poiuytas wrote:
Kronmuffin wrote:
timmie124 wrote:actually you could probably do something like this (btw I have no idea what I'm talking about)

if player.input("killercow") {
   @override class cow.mob(new.killercow){
     
 }
}
else

then that new.killercow would pretty much be the class as the baby zombies.

least this is kinda how it would look in udk
tim java scrip is different from html
It uses normal Java, not JavaScript.
i knew that i was just letting tim know. i don't think he knew.

and knowing is half the battle.... G.I.JOE!!!!
it's actually unreal script which is a spin off of java

_________________


TL;DR: While Iguanas CAN be fed on a mayonnaise only diet, it is hard to do and rarely worth the risk.

avatar
timmie124
Founder

Posts : 1520
Join date : 2011-06-11
Age : 24
Location : santa ana california

http://tscgaming.org

Back to top Go down

Re: Stuff to put in a plugin I'm making

Post by Kronmuffin on Tue Oct 22, 2013 8:42 pm

timmie124 wrote:
Kronmuffin wrote:
Poiuytas wrote:
Kronmuffin wrote:
timmie124 wrote:actually you could probably do something like this (btw I have no idea what I'm talking about)

if player.input("killercow") {
   @override class cow.mob(new.killercow){
     
 }
}
else

then that new.killercow would pretty much be the class as the baby zombies.

least this is kinda how it would look in udk
tim java scrip is different from html
It uses normal Java, not JavaScript.
i knew that i was just letting tim know. i don't think he knew.

and knowing is half the battle.... G.I.JOE!!!!
it's actually unreal script which is a spin off of java
the more you know, and knowledge is power!
avatar
Kronmuffin
Admin

Posts : 994
Join date : 2011-06-16
Location : Barry Manalow's Asshole

Back to top Go down

Re: Stuff to put in a plugin I'm making

Post by Poiuytas on Wed Oct 23, 2013 8:20 am

Kronmuffin wrote:
timmie124 wrote:
Kronmuffin wrote:
Poiuytas wrote:
Kronmuffin wrote:
timmie124 wrote:actually you could probably do something like this (btw I have no idea what I'm talking about)

if player.input("killercow") {
   @override class cow.mob(new.killercow){
     
 }
}
else

then that new.killercow would pretty much be the class as the baby zombies.

least this is kinda how it would look in udk
tim java scrip is different from html
It uses normal Java, not JavaScript.
i knew that i was just letting tim know. i don't think he knew.

and knowing is half the battle.... G.I.JOE!!!!
it's actually unreal script which is a spin off of java
the more you know, and knowledge is power!
Kron's words of wisdom.

_________________


avatar
Poiuytas
Jack
Jack

Posts : 787
Join date : 2011-11-07
Age : 19
Location : ur mums bum ( ͡° ͜ʖ ͡°)

Back to top Go down

Re: Stuff to put in a plugin I'm making

Post by Sponsored content


Sponsored content


Back to top Go down

Page 2 of 2 Previous  1, 2

Back to top


 
Permissions in this forum:
You cannot reply to topics in this forum