Spigot RecipeRemover 1.1

Actually remove vanilla recipes such as hoppers

  1. RoboMWM submitted a new resource:

    RecipeRemover - Actually remove vanilla recipes

    Read more about this resource...
     
  2. SlimeDog

    Patron

    This is a great idea.

    Rather than assume: RR hides the recipes, rather than removes them? If RR is disabled, the vanilla recipes are visible and active?
     
  3. Nope, it removes from server. RR does nothing onDisable. It will however balk onEnable if players are on the server. Technically, its job is done after it's onEnable method returns (it doesn't register any listeners).

    The recipe removals persist until the server is restarted (or until some other plugin calls Server#resetRecipes, though that will break any online player's session unless no custom recipes have been added).
     
  4. SlimeDog

    Patron

    So vanilla recipes are restored when the server is restarted with RR is disabled. Thanks.
     
  5. Yes - or rather, when RR isn't loaded/in the plugins folder (unless you somehow prevent the server from enabling the plugin on startup).
     
    • Informative Informative x 1
  6. Hello my mc 1.12.2 I have this error (hopper by default too)

    Code (Text):
    [10:55:30] [Server thread/ERROR]: Parsing error loading built-in advancement minecraft:recipes/decorations/end_crystal
    com.google.gson.JsonSyntaxException: Unknown recipe 'minecraft:end_crystal'
        at net.minecraft.server.v1_12_R1.AdvancementRewards$a.a(AdvancementRewards.java:157) ~[spigot-1.12.2.jar:git-Spigot-4bd94dc-f4ca180]
        at net.minecraft.server.v1_12_R1.AdvancementRewards$a.deserialize(AdvancementRewards.java:173) ~[spigot-1.12.2.jar:git-Spigot-4bd94dc-f4ca180]
        at net.minecraft.server.v1_12_R1.AdvancementRewards$a.deserialize(AdvancementRewards.java:1) ~[spigot-1.12.2.jar:git-Spigot-4bd94dc-f4ca180]
        at com.google.gson.internal.bind.TreeTypeAdapter.read(TreeTypeAdapter.java:69) ~[spigot-1.12.2.jar:git-Spigot-4bd94dc-f4ca180]
        at com.google.gson.Gson.fromJson(Gson.java:887) ~[spigot-1.12.2.jar:git-Spigot-4bd94dc-f4ca180]
        at com.google.gson.Gson.fromJson(Gson.java:952) ~[spigot-1.12.2.jar:git-Spigot-4bd94dc-f4ca180]
        at com.google.gson.internal.bind.TreeTypeAdapter$GsonContextImpl.deserialize(TreeTypeAdapter.java:162) ~[spigot-1.12.2.jar:git-Spigot-4bd94dc-f4ca180]
        at net.minecraft.server.v1_12_R1.ChatDeserializer.a(SourceFile:439) ~[spigot-1.12.2.jar:git-Spigot-4bd94dc-f4ca180]
        at net.minecraft.server.v1_12_R1.ChatDeserializer.a(SourceFile:455) ~[spigot-1.12.2.jar:git-Spigot-4bd94dc-f4ca180]
        at net.minecraft.server.v1_12_R1.Advancement$SerializedAdvancement.a(Advancement.java:195) ~[spigot-1.12.2.jar:git-Spigot-4bd94dc-f4ca180]
        at net.minecraft.server.v1_12_R1.AdvancementDataWorld$1.a(AdvancementDataWorld.java:43) ~[spigot-1.12.2.jar:git-Spigot-4bd94dc-f4ca180]
        at net.minecraft.server.v1_12_R1.AdvancementDataWorld$1.deserialize(AdvancementDataWorld.java:47) ~[spigot-1.12.2.jar:git-Spigot-4bd94dc-f4ca180]
        at com.google.gson.internal.bind.TreeTypeAdapter.read(TreeTypeAdapter.java:69) ~[spigot-1.12.2.jar:git-Spigot-4bd94dc-f4ca180]
        at net.minecraft.server.v1_12_R1.ChatDeserializer.a(SourceFile:492) ~[spigot-1.12.2.jar:git-Spigot-4bd94dc-f4ca180]
        at net.minecraft.server.v1_12_R1.ChatDeserializer.a(SourceFile:532) ~[spigot-1.12.2.jar:git-Spigot-4bd94dc-f4ca180]
        at net.minecraft.server.v1_12_R1.AdvancementDataWorld.a(AdvancementDataWorld.java:167) [spigot-1.12.2.jar:git-Spigot-4bd94dc-f4ca180]
        at net.minecraft.server.v1_12_R1.AdvancementDataWorld.reload(AdvancementDataWorld.java:64) [spigot-1.12.2.jar:git-Spigot-4bd94dc-f4ca180]
        at net.minecraft.server.v1_12_R1.AdvancementDataWorld.<init>(AdvancementDataWorld.java:56) [spigot-1.12.2.jar:git-Spigot-4bd94dc-f4ca180]
        at net.minecraft.server.v1_12_R1.WorldServer.b(WorldServer.java:108) [spigot-1.12.2.jar:git-Spigot-4bd94dc-f4ca180]
        at org.bukkit.craftbukkit.v1_12_R1.CraftServer.createWorld(CraftServer.java:905) [spigot-1.12.2.jar:git-Spigot-4bd94dc-f4ca180]
        at org.bukkit.Bukkit.createWorld(Bukkit.java:454) [spigot-1.12.2.jar:git-Spigot-4bd94dc-f4ca180]
        at org.bukkit.WorldCreator.createWorld(WorldCreator.java:261) [spigot-1.12.2.jar:git-Spigot-4bd94dc-f4ca180]
        at com.onarandombox.MultiverseCore.utils.WorldManager.doLoad(WorldManager.java:466) [Multiverse-Core-2.5.0.jar:?]
        at com.onarandombox.MultiverseCore.utils.WorldManager.doLoad(WorldManager.java:447) [Multiverse-Core-2.5.0.jar:?]
        at com.onarandombox.MultiverseCore.utils.WorldManager.doLoad(WorldManager.java:422) [Multiverse-Core-2.5.0.jar:?]
        at com.onarandombox.MultiverseCore.utils.WorldManager.loadWorlds(WorldManager.java:725) [Multiverse-Core-2.5.0.jar:?]
        at com.onarandombox.MultiverseCore.MultiverseCore.onEnable(MultiverseCore.java:312) [Multiverse-Core-2.5.0.jar:?]
        at org.bukkit.plugin.java.JavaPlugin.setEnabled(JavaPlugin.java:264) [spigot-1.12.2.jar:git-Spigot-4bd94dc-f4ca180]
        at org.bukkit.plugin.java.JavaPluginLoader.enablePlugin(JavaPluginLoader.java:337) [spigot-1.12.2.jar:git-Spigot-4bd94dc-f4ca180]
        at org.bukkit.plugin.SimplePluginManager.enablePlugin(SimplePluginManager.java:403) [spigot-1.12.2.jar:git-Spigot-4bd94dc-f4ca180]
        at org.bukkit.craftbukkit.v1_12_R1.CraftServer.enablePlugin(CraftServer.java:381) [spigot-1.12.2.jar:git-Spigot-4bd94dc-f4ca180]
        at org.bukkit.craftbukkit.v1_12_R1.CraftServer.enablePlugins(CraftServer.java:330) [spigot-1.12.2.jar:git-Spigot-4bd94dc-f4ca180]
        at net.minecraft.server.v1_12_R1.MinecraftServer.t(MinecraftServer.java:422) [spigot-1.12.2.jar:git-Spigot-4bd94dc-f4ca180]
        at net.minecraft.server.v1_12_R1.MinecraftServer.l(MinecraftServer.java:383) [spigot-1.12.2.jar:git-Spigot-4bd94dc-f4ca180]
        at net.minecraft.server.v1_12_R1.MinecraftServer.a(MinecraftServer.java:338) [spigot-1.12.2.jar:git-Spigot-4bd94dc-f4ca180]
        at net.minecraft.server.v1_12_R1.DedicatedServer.init(DedicatedServer.java:272) [spigot-1.12.2.jar:git-Spigot-4bd94dc-f4ca180]
        at net.minecraft.server.v1_12_R1.MinecraftServer.run(MinecraftServer.java:545) [spigot-1.12.2.jar:git-Spigot-4bd94dc-f4ca180]
        at java.lang.Thread.run(Thread.java:745) [?:1.8.0_72]
     
  7. Got them too..
     
  8. These errors are harmless, as I mentioned in the overview page, unless you care about players obtaining these advancements.

    I guess it's time to make a big fat bold size 72 statement about this now.
     
    • Funny Funny x 2
  9. Can you show the log (or at least the part where RR is enabling and reporting removal of recipes)?
     
  10. I made a pastebin for you
    https://pastebin.com/2m0VpnTX
     
  11. Oh, the error is pointed out to you lol.

    You need a space between the dash and the value.
     
  12. The log is the same
    but only the under part not the error
     
  13. Try searching the log for the recipe that's not removed? Try also with just reciperemover installed - I'm guessing another plugin is probably calling Server#resetRecipes, which reinstates the vanilla recipes. (All I know is that it is indeed working for me.)
     
  14. its only this
    https://pastebin.com/XPihKadx

    i test it with only world guard and world edit

    https://pastebin.com/V9xMqaWi
     
    • Agree Agree x 1
  15. yes all recipes are craftable

    When i delete the config and make a new the HOPPER is disabled.
    But when i add all the other recipes the hopper is craftable
     
  16. That's interesting... I haven't really attempted removing more than just a couple recipes, so I wonder if the server does anything interesting on the removal of some/all recipes...

    Perhaps you can try just disabling a few at a time? Also, you probably don't want to have "Air" in that list.
     
    • Agree Agree x 1