[SPIGOT-5667] Can't add recipe without a datapack containing a recipe. Created: 09/Apr/20  Updated: 10/Apr/20  Resolved: 10/Apr/20

Status: Resolved
Project: Spigot
Component/s: None
Affects Version/s: None
Fix Version/s: None

Type: Bug Priority: Minor
Reporter: Ryan Breuer Assignee: Unassigned
Resolution: Fixed Votes: 0
Labels: bug, spigot
Environment:

OS: Win 10
Java: 1.8.0_181
Versions Tested:

  • Spigot 1.15.2,
  • CraftBukkit 1.15.2 CraftBukkit version git-Bukkit-f7d6ad5 (MC: 1.15.2) (Implementing API version 1.15.2-R0.1-SNAPSHOT)

Attachments: File DatapackWithOneRecipe.rar     Text File Recipe TestPlugin NullPointerException-1.txt     File TestPlugin.jar    
Version: This server is running CraftBukkit version git-Spigot-a03b1fd-f7d6ad5 (MC: 1.15.2) (Implementing API version 1.15.2-R0.1-SNAPSHOT)
Guidelines Read: Yes

 Description   

It appears that a datapack of some kind (either the vanilla datapack or a new one with a single recipe) is required to exist on the server in order for Spigot/CraftBukkit to be able to add a recipe.

Source for Test Plugin with a single recipe add.

 

Default server setup with TestPlugin:

  1. Add TestPlugin
  2. Restart Server

= Plugin's recipe added successfully

Vanilla Datapack disabled:

  1. Add TestPlugin
  2. Run "/datapack disable vanilla"
  3. Restart Server

= TestPlugin's recipe does not work. See attached NullPointerException

I would expect this to still add the recipe.

Single recipe datapack only:

  1. Add TestPlugin
  2. Run "/datapack disable vanilla"
  3. Extract DatapackWithOneRecipe.rar to <Server>/world/datapacks/
  4. Restart Server

= TestPlugin's recipe works.

 



 Comments   
Comment by Ryan Breuer [ 10/Apr/20 ]

While I understand it may not be recommended to disable it, it is a feature that is currently supported and it would be nice to be able to support that for those users wishing to do so.

Comment by md_5 [ 10/Apr/20 ]

Issue has been resolved, but I once again caution you at disabling the Vanilla datapack without a complete replacement. You will break lots of things in the server, mobs, blocks, etc

Comment by md_5 [ 10/Apr/20 ]

The vanilla datapack is not designed to be disabled.... Removing it will break a lot of server functionality aside from recipes

Generated at Sat Dec 13 11:48:19 UTC 2025 using Jira 10.3.13#10030013-sha1:56dd970ae30ebfeda3a697d25be1f6388b68a422.