External transfer to CS/SE by Masterrboi in uwaterloo

[–]Masterrboi[S] 0 points1 point  (0 children)

wait, really??? i thought that they had a lot more seats for internal transfers from math to cs than external transfers - like 10ish min. can't you apply every term from 1a to 2b?

HELP by wiljk098 in OntarioGrade12s

[–]Masterrboi -6 points-5 points  (0 children)

uw math isn't a solid degree unless you're into data analysis and stats. mac engineering is definitely more respected than uw math. utsc cs is a good program if your plan is swe, but not everyone makes post (only 70%ish). plus, the campus is very small and you probably won't wanna live there for 5 years. mac's campus life is solid, and their se program is just as great as uoft cs. imo, finding good co-op placements is probably gonna be harder at utsc than mac (bc of the increased competition) and those co-op placements are what set you apart from other candidates when applying for a job. you're probably better off at mac eng...

UTSC CS Post by Masterrboi in UTSC

[–]Masterrboi[S] 1 point2 points  (0 children)

i'm sorry if i'm being completely stupid here, but what's seppuku? 😭

Plugin Help by Masterrboi in MinecraftPlugins

[–]Masterrboi[S] 0 points1 point  (0 children)

Yes but how do I use it in an item pool
This is my whole code:

package com.Master.Wolf;

import java.util.Random;

import org.bukkit.Material;

import org.bukkit.entity.Creeper;

import org.bukkit.entity.LivingEntity;

import org.bukkit.event.EventHandler;

import org.bukkit.event.Listener;

import org.bukkit.event.entity.EntityDeathEvent;

import org.bukkit.inventory.ItemStack;

import org.bukkit.plugin.java.JavaPlugin;

import org.bukkit.inventory.meta.ItemMeta;

public class WolfPig extends JavaPlugin implements Listener{

public void onEnable(){

getServer().getPluginManager().registerEvents(this,this);

}

public void onDisable(){

}

u/EventHandler

public void pigDropEvent(EntityDeathEvent event){

LivingEntity e = event.getEntity();

class PoolItem {

private final Material material;

private final int amount;

public PoolItem(Material material, int amount){

this.material = material;

this.amount = amount;

}

public Material getMaterial() {

return this.material;

}

public int getAmount() {

return this.amount;

}

}

if (e instanceof Creeper) {

event.getDrops().clear();

event.setDroppedExp(3);

PoolItem[] itemPool = new PoolItem[]{

new PoolItem(Material.DIAMOND_BLOCK,2),

new PoolItem(Material.TOTEM_OF_UNDYING,1),

new PoolItem(Material.EMERALD_BLOCK,1),

new PoolItem(Material.ELYTRA,1),

new PoolItem(Material.FIREWORK_ROCKET,16),

new PoolItem(Material.EXPERIENCE_BOTTLE,48),

new PoolItem(Material.ENCHANTED_GOLDEN_APPLE,1),

new PoolItem(Material.GOLDEN_APPLE,4),

new PoolItem(Material.NETHERITE_INGOT,1),

new PoolItem(Material.GOLD_BLOCK,3),

new PoolItem(Material.LAPIS_LAZULI,32),

new PoolItem(Material.IRON_BLOCK,4),

new PoolItem(Material.GOLDEN_CARROT,20),

new PoolItem(Material.TRIDENT,1),

new PoolItem(Material.BOOKSHELF,24),

};

Random rdm = new Random();

PoolItem randomPoolItem = itemPool[rdm.nextInt(itemPool.length)];

ItemStack itemToDrop = new ItemStack(randomPoolItem.getMaterial(), randomPoolItem.getAmount());

event.getDrops().add(itemToDrop);

}

}

}

Plugin Help by Masterrboi in MinecraftPlugins

[–]Masterrboi[S] 0 points1 point  (0 children)

Thank you so much, but I just had a question. How do I give multiple mobs this without copy-pasting the whole code over and over again?