Skip to content

Commit

Permalink
first release
Browse files Browse the repository at this point in the history
  • Loading branch information
JasperChaseTOQ committed Jun 22, 2022
1 parent 39d8eaf commit da803f9
Show file tree
Hide file tree
Showing 5 changed files with 190 additions and 90 deletions.
5 changes: 5 additions & 0 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -77,5 +77,10 @@
<artifactId>InfinityLib</artifactId>
<version>1.3.9</version>
</dependency>
<dependency>
<groupId>com.google.code.findbugs</groupId>
<artifactId>jsr305</artifactId>
<version>3.0.2</version>
</dependency>
</dependencies>
</project>
84 changes: 0 additions & 84 deletions src/main/java/me/CHANGEME/slimefunaddon/ExampleAddon.java

This file was deleted.

Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
package me.jasperchasetoq.mobsimulationplus;

import io.github.thebusybiscuit.slimefun4.api.SlimefunAddon;

import io.github.thebusybiscuit.slimefun4.libraries.dough.config.Config;

import org.bukkit.plugin.java.JavaPlugin;

public class MobSimulationPlus extends JavaPlugin implements SlimefunAddon {

@Override
public void onEnable() {
MobSimulationPlusItemsSetup.setup(this);
// Read something from your config.yml
Config cfg = new Config(this);

if (cfg.getBoolean("options.auto-update")) {
// You could start an Auto-Updater for example
}

}




@Override
public void onDisable() {
// Logic for disabling the plugin...
}

@Override
public String getBugTrackerURL() {
// You can return a link to your Bug Tracker instead of null here
return null;
}

@Override
public JavaPlugin getJavaPlugin() {
/*
* You will need to return a reference to your Plugin here.
* If you are using your main class for this, simply return "this".
*/
return this;
}

}
Original file line number Diff line number Diff line change
@@ -0,0 +1,134 @@
package me.jasperchasetoq.mobsimulationplus;

import io.github.mooy1.infinityexpansion.items.mobdata.MobData;
import io.github.mooy1.infinityexpansion.items.mobdata.MobDataCard;
import io.github.mooy1.infinityexpansion.items.mobdata.MobDataTier;
import io.github.thebusybiscuit.slimefun4.api.items.SlimefunItemStack;
import io.github.thebusybiscuit.slimefun4.implementation.SlimefunItems;
import org.bukkit.Material;
import org.bukkit.inventory.ItemStack;

import javax.annotation.Nonnull;

public class MobSimulationPlusItemsSetup {

private MobSimulationPlusItemsSetup() {
}

public static void setup(@Nonnull MobSimulationPlus plugin)
{
new MobDataCard("Phantom", MobDataTier.ADVANCED, new ItemStack[]{
new ItemStack(Material.PHANTOM_MEMBRANE, 32), new ItemStack(Material.PHANTOM_MEMBRANE, 32), new ItemStack(Material.PHANTOM_MEMBRANE, 32),
new ItemStack(Material.PHANTOM_MEMBRANE, 32), MobData.EMPTY_DATA_CARD, new ItemStack(Material.PHANTOM_MEMBRANE, 32),
new ItemStack(Material.PHANTOM_MEMBRANE, 32), new ItemStack(Material.PHANTOM_MEMBRANE, 32), new ItemStack(Material.PHANTOM_MEMBRANE, 32),
})
.addDrop(Material.PHANTOM_MEMBRANE, 1)
.addDrop(Material.ELYTRA, 2500)
.register(plugin);
new MobDataCard("Chicken+", MobDataTier.ADVANCED, new ItemStack[]{
new ItemStack(Material.EGG, 16), new ItemStack(Material.EGG, 16), new ItemStack(Material.EGG, 16),
new ItemStack(Material.EGG, 16), MobData.CHICKEN, new ItemStack(Material.EGG, 16),
new ItemStack(Material.EGG, 16), new ItemStack(Material.EGG, 16), new ItemStack(Material.EGG, 16)
})
.addDrop(Material.CHICKEN, 1)
.addDrop(Material.FEATHER, 1)
.addDrop(Material.EGG, 1)
.register(plugin);
new MobDataCard("Rainbow Sheep", MobDataTier.ADVANCED, new ItemStack[]{
new SlimefunItemStack(SlimefunItems.RAINBOW_WOOL, 16), new SlimefunItemStack(SlimefunItems.RAINBOW_WOOL, 16), new SlimefunItemStack(SlimefunItems.RAINBOW_WOOL, 16),
new SlimefunItemStack(SlimefunItems.RAINBOW_WOOL, 16), MobData.SHEEP, new SlimefunItemStack(SlimefunItems.RAINBOW_WOOL, 16),
new SlimefunItemStack(SlimefunItems.RAINBOW_WOOL, 16), new SlimefunItemStack(SlimefunItems.RAINBOW_WOOL, 16), new SlimefunItemStack(SlimefunItems.RAINBOW_WOOL, 16)
})
.addDrop(Material.WHITE_WOOL, 1)
.addDrop(Material.ORANGE_WOOL, 1)
.addDrop(Material.MAGENTA_WOOL, 1)
.addDrop(Material.LIGHT_BLUE_WOOL, 1)
.addDrop(Material.YELLOW_WOOL, 1)
.addDrop(Material.LIME_WOOL, 1)
.addDrop(Material.PINK_WOOL, 1)
.addDrop(Material.GRAY_WOOL, 1)
.addDrop(Material.LIGHT_GRAY_WOOL, 1)
.addDrop(Material.CYAN_WOOL, 1)
.addDrop(Material.PURPLE_WOOL, 1)
.addDrop(Material.BLUE_WOOL, 1)
.addDrop(Material.BROWN_WOOL, 1)
.addDrop(Material.GREEN_WOOL, 1)
.addDrop(Material.RED_WOOL, 1)
.addDrop(Material.BLACK_WOOL, 1)
.register(plugin);
new MobDataCard("Pig", MobDataTier.PASSIVE, new ItemStack[]{
new ItemStack(Material.PORKCHOP, 32), new ItemStack(Material.CARROT_ON_A_STICK, 1), new ItemStack(Material.COOKED_PORKCHOP, 32),
new ItemStack(Material.SADDLE, 1), MobData.EMPTY_DATA_CARD, new ItemStack(Material.SADDLE, 1),
new ItemStack(Material.COOKED_PORKCHOP, 32), new ItemStack(Material.CARROT_ON_A_STICK, 1), new ItemStack(Material.PORKCHOP, 32),
})
.addDrop(Material.PORKCHOP, 1)
.addDrop(Material.COOKED_PORKCHOP, 1)
.addDrop(Material.CARROT, 50)
.addDrop(Material.SADDLE, 750)
.register(plugin);
new MobDataCard("Zombified Piglin", MobDataTier.NEUTRAL, new ItemStack[]{
new ItemStack(Material.ROTTEN_FLESH, 64), new ItemStack(Material.CARROT, 64), new ItemStack(Material.GOLD_INGOT, 64),
new ItemStack(Material.GOLDEN_SWORD, 1), MobData.EMPTY_DATA_CARD, new ItemStack(Material.GOLDEN_SWORD, 1),
new ItemStack(Material.GOLD_INGOT, 64), new ItemStack(Material.CARROT, 64), new ItemStack(Material.ROTTEN_FLESH, 64),
})
.addDrop(Material.GOLD_NUGGET, 1)
.addDrop(SlimefunItems.STRANGE_NETHER_GOO, 1000)

.register(plugin);
new MobDataCard("Piglin", MobDataTier.ADVANCED, new ItemStack[]{
new ItemStack(Material.GOLD_BLOCK, 64), new ItemStack(Material.GOLDEN_CARROT, 64), new ItemStack(Material.GOLD_BLOCK, 64),
new ItemStack(Material.ENCHANTED_GOLDEN_APPLE, 1), MobData.EMPTY_DATA_CARD, new ItemStack(Material.ENCHANTED_GOLDEN_APPLE, 1),
new ItemStack(Material.GOLD_BLOCK, 64), new ItemStack(Material.GOLDEN_CARROT, 64), new ItemStack(Material.GOLD_BLOCK, 64),
})
.addDrop(Material.GOLD_INGOT, 1)
.addDrop(Material.GOLDEN_SWORD, 25)
.addDrop(Material.CROSSBOW, 50)
.addDrop(SlimefunItems.STRANGE_NETHER_GOO, 10)

.register(plugin);
new MobDataCard("Pillager", MobDataTier.HOSTILE, new ItemStack[]{
new ItemStack(Material.EMERALD, 64), new ItemStack(Material.BLACK_BANNER, 16), new ItemStack(Material.EMERALD, 64),
new ItemStack(Material.CROSSBOW, 1), MobData.EMPTY_DATA_CARD, new ItemStack(Material.CROSSBOW, 1),
new ItemStack(Material.EMERALD, 64), new ItemStack(Material.BLACK_BANNER, 16), new ItemStack(Material.EMERALD, 64),
})
.addDrop(Material.EMERALD, 1)
.addDrop(Material.CROSSBOW, 10)

.register(plugin);
new MobDataCard("Vindicator", MobDataTier.HOSTILE, new ItemStack[]{
new ItemStack(Material.EMERALD, 64), new ItemStack(Material.BLACK_BANNER, 16), new ItemStack(Material.EMERALD, 64),
new ItemStack(Material.IRON_AXE, 1), MobData.EMPTY_DATA_CARD, new ItemStack(Material.IRON_AXE, 1),
new ItemStack(Material.EMERALD, 64), new ItemStack(Material.BLACK_BANNER, 16), new ItemStack(Material.EMERALD, 64),
})
.addDrop(Material.EMERALD, 1)
.addDrop(Material.IRON_AXE, 10)

.register(plugin);
new MobDataCard("Evoker", MobDataTier.HOSTILE, new ItemStack[]{
new ItemStack(Material.EMERALD, 64), new ItemStack(Material.BLACK_BANNER, 16), new ItemStack(Material.EMERALD, 64),
new ItemStack(Material.TOTEM_OF_UNDYING, 1), MobData.EMPTY_DATA_CARD, new ItemStack(Material.TOTEM_OF_UNDYING, 1),
new ItemStack(Material.EMERALD, 64), new ItemStack(Material.BLACK_BANNER, 16), new ItemStack(Material.EMERALD, 64),
})
.addDrop(Material.EMERALD, 1)
.addDrop(Material.TOTEM_OF_UNDYING, 100)

.register(plugin);
new MobDataCard("Witch+", MobDataTier.ADVANCED, new ItemStack[]{
new ItemStack(Material.STICK, 64), new ItemStack(Material.GLASS_BOTTLE, 64), new ItemStack(Material.GLOWSTONE, 64),
new ItemStack(Material.GUNPOWDER, 64), MobData.WITCH, new ItemStack(Material.REDSTONE_BLOCK, 64),
new ItemStack(Material.SPIDER_EYE, 64), new ItemStack(Material.SUGAR, 64), new ItemStack(Material.CAULDRON, 64),
})
.addDrop(Material.STICK, 1)
.addDrop(Material.GLASS_BOTTLE, 1)
.addDrop(Material.GLOWSTONE_DUST, 1)
.addDrop(Material.GUNPOWDER, 1)
.addDrop(Material.REDSTONE, 1)
.addDrop(Material.SPIDER_EYE, 1)
.addDrop(Material.SUGAR, 1)
.addDrop(Material.CAULDRON, 10)



.register(plugin);
}
}
11 changes: 5 additions & 6 deletions src/main/resources/plugin.yml
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
## CHANGE this to the name of your plugin.
name: SlimefunAddon
name: MobSimulationPlus

## CHANGE this to your username.
author: CHANGEME
author: JasperChaseTOQ

## CHANGE this to a meaninful but short description of your plugin.
description: A generic Slimefun4-Addon

## CHANGE this to the path of the class that extends JavaPlugin.
main: me.CHANGEME.slimefunaddon.ExampleAddon
main: me.jasperchasetoq.mobsimulationplus.MobSimulationPlus

## You can change this to link to your website or repository. You can also remove this line if you want to.
website: https://github.com/Slimefun/Addon-Template
Expand All @@ -18,8 +18,7 @@ website: https://github.com/Slimefun/Addon-Template
version: ${project.version}

## This is the minimum minecraft version required to run your plugin.
api-version: 1.14
api-version: 1.16

## This is required and marks Slimefun as a plugin dependency.
depend:
- Slimefun
depend: [Slimefun, InfinityExpansion]

0 comments on commit da803f9

Please sign in to comment.