Skip to content

Instantly share code, notes, and snippets.

@LatvianModder
Created November 30, 2019 14:12
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save LatvianModder/d1e50a87381174466b9d441d2d09bb72 to your computer and use it in GitHub Desktop.
Save LatvianModder/d1e50a87381174466b9d441d2d09bb72 to your computer and use it in GitHub Desktop.
KubeJS 1.12.2 Recipes
// This script replaces beacon recipe with new one
// Listen to Crafing Table recipe event
events.listen('recipes.crafting_table', function (event) {
// Remove Beacon recipe
event.removeID('minecraft:beacon')
// Add new Beacon recipe. new_beacon is the ID of recipe, minecraft:beacon is the item
event.addShaped('new_beacon', 'minecraft:beacon', ['CGC', 'GSG', 'CGC'], {
G: 'ore:blockGlass', // And blockGlass
S: 'ore:netherStar', // Any netherStar
C: [{ item: 'minecraft:coal', data: 1 }, 'minecraft:carrot'] // Charcoal or carrot
})
})
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment