#So my ore hammer gets completely used
55 messages · Page 1 of 1 (latest)
Once your ticket has been resolved, please close it with </ticket close:1054771505520717835> command!
yeah you don't set a max Damage at the registry
set the max Damage at the registry
Yea that doesnt say anything about taking durability away that i see
yeah because you can't take durability in a recipe if the item doen't have a maxDamage that is the first thing you need
Doesnt say about maxDamage
You can write your code in a codeblock by typing it between the codeblock delimiters:
Note that these are backticks, not apostrophes
```js :arrow_left:
ServerEvents.recipes(event => {
event.smelting('minecraft:glass', '#forge:sand').xp(.1)
})
``` :arrow_left:
This example will look like this:
ServerEvents.recipes(event => {
event.smelting('minecraft:glass', '#forge:sand').xp(.1)
})
and sometimes coding are a: just try and see it if it's working thing 😉
if it's not working send your code and the log because we can't see what you do and what error appears
Paste version of main.js, startup.log from @agile raptor
Paste version of recipe.js from @agile raptor
did you look at the wiki how the syntax for the registry looks like ?
StartupEvents.registry('item', event => {
event.create('ore_hammer').displayName('ยง9Ore Hammer').maxDamage(100)
})
Oh
Why 100
Wouldnt 1 be each individual durability
it's a example
Oh :ok
That worked i think ty
Nope
Still perma uses it
Hm
it loads fine but still uses the entire thing up
Paste version of recipe.js, main.js, startup.log from @agile raptor
.maxDamage() is the maximum durability of your item. Meaning it breaks after you damage it that number. Set your durability to something greater than 1 and you will get that number of uses.
Oh wait