#Tinkers Construct(melting of armor)

32 messages · Page 1 of 1 (latest)

distant imp
#

Please help me. I want to add melting armor from ice and fire mod. The code runs without errors, but the recipes do not appear. Can you help please. My code below
function melting(event) {

      event.custom({
          "type": "tconstruct:melting",
              "ingredient": {
              "tag": "iceandfire:armor_copper_metal_helmet"
          },
          "result": {
              "fluid": "tconstruct:molten_copper",
                  "amount": 90
          },
          "temperature": 790,
              "time": 75
      })
  }
ripe shellBOT
#

Once your ticket has been resolved, please close it with </ticket close:1054771505520717835> command!

real delta
#

uh

#

is that all the code you have?

#

because functions do not run on their own

shut bobcatBOT
#

You can write your code in a codeblock by typing it between the codeblock delimiters:

```js :arrow_left:
onEvent('recipes', e => {
e.smelting('minecraft:glass', '#forge:sand').xp(.1)
})
``` :arrow_left:

As an example, :arrow_up: will look like this:

onEvent('recipes', e => {
  e.smelting('minecraft:glass', '#forge:sand').xp(.1)
})
shut bobcatBOT
#

Please send your server.txt log file.
You can find it here: minecraft/logs/kubejs/server.txt

distant imp
# real delta uh

I left this piece of code, but it still does not work, although KubeJS doesn't give errors.
event.custom({ "type": "tconstruct:melting", "ingredient": { "tag": "iceandfire:armor_copper_metal_helmet" }, "result": { "fluid": "tconstruct:molten_copper", "amount": 90 }, "temperature": 790, "time": 75 })

real delta
distant imp
#

yes , i'm sure

real delta
#

what do your logs say

shut bobcatBOT
#

Please send your server.txt log file.
You can find it here: minecraft/logs/kubejs/server.txt

real delta
#

oh i see

#

you put tag and not item as the ingredient

#
onEvent('recipes', event => {
    event.custom({
          "type": "tconstruct:melting",
          "ingredient": {
              "item": "iceandfire:armor_copper_metal_helmet"
              },
              "result": {
                  "fluid": "tconstruct:molten_copper",
                  "amount": 90
              },
          "temperature": 790,
          "time": 75
    })
})
#

try that

distant imp
#

I'll try now

distant imp
#

Thank you very much

distant imp
# real delta oh i see

I`m very sorry, but I have another problem. If I understand correctly, amount is responsible for the amount of fluid that I will get when melted copper helmet , but no matter what value I set, I get 1 ingot.

real delta
#

90 mb is 1 ingot

#

hold shift over the "1 ingot" tooltip and you'll see how many mb it is

#

because amount is in mb

#

and did you make sure to save the file?

distant imp
#

I saved the file several times. and I set the amount to 720 and more, but I still received 1 ingot

real delta
#

what does your code look like?

real delta
#

yes but i need to see what the file looks like

distant imp
shut bobcatBOT
#

Paste version of script.js from @distant imp

distant imp
#

I found out what the problem is

#

Вut thanks anyway. You helped me a lot