Skip to content

Commit

Permalink
added GoldenApple
Browse files Browse the repository at this point in the history
changed saddle recipe
  • Loading branch information
DonRaffae committed Jan 8, 2020
1 parent c8e1447 commit 0f10b7b
Show file tree
Hide file tree
Showing 4 changed files with 39 additions and 2 deletions.
20 changes: 20 additions & 0 deletions CraftPlus.iml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
<?xml version="1.0" encoding="UTF-8"?>
<module org.jetbrains.idea.maven.project.MavenProjectsManager.isMavenModule="true" type="JAVA_MODULE" version="4">
<component name="NewModuleRootManager" LANGUAGE_LEVEL="JDK_11">
<output url="file://$MODULE_DIR$/target/classes" />
<output-test url="file://$MODULE_DIR$/target/test-classes" />
<content url="file://$MODULE_DIR$">
<sourceFolder url="file://$MODULE_DIR$/src/main/java" isTestSource="false" />
<sourceFolder url="file://$MODULE_DIR$/src/main/resources" type="java-resource" />
<excludeFolder url="file://$MODULE_DIR$/target" />
</content>
<orderEntry type="inheritedJdk" />
<orderEntry type="sourceFolder" forTests="false" />
<orderEntry type="library" scope="PROVIDED" name="Maven: org.spigotmc:spigot-api:1.14-R0.1-SNAPSHOT" level="project" />
<orderEntry type="library" scope="PROVIDED" name="Maven: commons-lang:commons-lang:2.6" level="project" />
<orderEntry type="library" scope="PROVIDED" name="Maven: com.google.guava:guava:21.0" level="project" />
<orderEntry type="library" scope="PROVIDED" name="Maven: com.google.code.gson:gson:2.8.0" level="project" />
<orderEntry type="library" scope="PROVIDED" name="Maven: net.md-5:bungeecord-chat:1.13-SNAPSHOT" level="project" />
<orderEntry type="library" scope="PROVIDED" name="Maven: org.yaml:snakeyaml:1.23" level="project" />
</component>
</module>
3 changes: 2 additions & 1 deletion src/main/java/aldrigos/mc/craftplus/CraftPlusPlugin.java
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,8 @@ public void onEnable(){
recipes.getGoldHorseArmor(),
recipes.getDiamondHorseArmor(),
recipes.getQuartz(),
recipes.getTotem()
recipes.getTotem(),
recipes.getGoldApple()
);

getServer().getPluginManager().registerEvents(new ShovelListener(), this);
Expand Down
16 changes: 16 additions & 0 deletions src/main/java/aldrigos/mc/craftplus/Recipes.java
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ public Recipe getSaddle(){
);

r.shape("lll",
"l l",
"tst");
r.setIngredient('l', Material.LEATHER);
r.setIngredient('s', Material.LEAD);
Expand Down Expand Up @@ -166,4 +167,19 @@ public Recipe getTotem(){

return r;
}

public Recipe getGoldApple(){
var r = new ShapedRecipe(
new NamespacedKey(p, "goldenapple"),
new ItemStack(Material.GOLDEN_APPLE)
);

r.shape("ggg",
"gag",
"ggg");
r.setIngredient('g', Material.GOLD_BLOCK);
r.setIngredient('a', Material.APPLE);

return r;
}
}
2 changes: 1 addition & 1 deletion src/main/resources/plugin.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
main: aldrigos.mc.craftplus.CraftPlusPlugin
name: CraftPlus
version: '0.1.0.1'
version: '0.1.1.0'
description: Add more recipes!
load: POSTWORLD
author: Aldrigo Raffaele
Expand Down

0 comments on commit 0f10b7b

Please sign in to comment.