#Tinker Stuff 1.18
11 messages · Page 1 of 1 (latest)
Once your ticket has been resolved, please close it with </ticket close:1054771505520717835> command!
my code are :
for my Fluids
onEvent('fluid.registry', event => {
//Test Ajout Fluid
event.create('blessing_of_volund')
.thickTexture(0x05071a)
.bucketColor(0x05071a)
.displayName('Molten Blessing of VÖLUND');
})```
for my Items
//priority 1000
onEvent('item.registry', event => {
// Créer de Nouveau Item
// Création du Lingot benie de VÖLUND
event.create('blessed_ingot_of_volund')
.displayName('Blessed Ingot of VÖLUND')
.glow(true)
// Création des pépites benie de VÖLUND
event.create('blessed_nugget_of_volund')
.displayName('Blessed Nugget of VÖLUND')
.glow(true)
})```
and the block
// priority: 1000
onEvent('block.registry', event => {
// Créer de Nouveau Blocs
// Création du Bloc benie de VÖLUND
event.create('blessed_block_of_volund')
.material('iron')
.hardness(1.0)
.displayName('Blessed Block of VÖLUND')
.harvestTool('pickaxe',2)
.requiresTool(true)
.glow(true)
})```
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)
})
onEvent('recipes', event => {
//adding recipe for liquid coal
event.custom({
type:'tconstruct:melting',
ingredient: {
"item": "kubejs:blessed_ingot_of_volund"
},
result: {fluid:'kubejs:blessing_of_volund', amount:144},
temperature:1000,
time: 133
});
event.custom({
type:'tconstruct:melting',
ingredient: {
"item": "kubejs:blessed_block_of_volund"
},
result: {fluid:'kubejs:blessing_of_volund', amount:1296},
temperature:1000,
time: 300
});
event.custom({
type:'tconstruct:melting',
ingredient: {
"item": "kubejs:blessed_nugget_of_volund"
},
result: {fluid:'kubejs:blessing_of_volund', amount:16},
temperature:1000,
time: 300
});
});