j'ai créé un article personnalisé, je ne vois aucune erreur avec son code. le problème c'est que ça ne marche pas..
#how do i fix this item?
1 messages · Page 1 of 1 (latest)
Send your code
j'avais prévu ça, tu es venu très vite
importer {monde} depuis '@minecraft/server'
fonction fattack (joueur)
player.runCommandAsync('exécuter à @a[tag=hell,hasitem={item=blaze_powder}] exécuter des dégâts @a[tag=!hell,r=5] 7 entité de feu @s[tag=!hell]')
player.runCommandAsync('execute at @a[tag=hell,hasitem={item=blaze_powder,location=slot.weapon.mainhand}] exécutez exécutez à @a[tag=!hell,r=5] exécutez des particules minecraft:basic_flame_particle ~~~')
player.runCommandAsync('exécuter à @a[r=5] exécuter playsound random.fizz @a[tag=hell,hasitem={item=blaze_powder.location=slot.weapon.mainhand}]')
player.runCommandAsync('clear @a[tag=hell,hasitem={item=blaze_powder,location=slot.weapon.mainhand}] blaze_powder 0 1')
world.afterEvents.itemUse.subscribe((données) => {
const joueur = data.source
élément const = data.itemStack
if (data.itemStack.typeId === "minecraft:blaze_powder" && item.nameTag === "§r§4Buring Breath")
grosse attaque (joueur)
}
)
was planning on it, you came very fast
import { world } from '@minecraft/server'
function fattack(player) {
player.runCommandAsync('execute at @a[tag=hell,hasitem={item=blaze_powder}] run damage @a[tag=!hell,r=5] 7 fire entity @s[tag=!hell]')
player.runCommandAsync('execute at @a[tag=hell,hasitem={item=blaze_powder,location=slot.weapon.mainhand}] run execute at @a[tag=!hell,r=5] run particle minecraft:basic_flame_particle ~~~')
player.runCommandAsync('execute at @a[r=5] run playsound random.fizz @a[tag=hell,hasitem={item=blaze_powder.location=slot.weapon.mainhand}]')
player.runCommandAsync('clear @a[tag=hell,hasitem={item=blaze_powder,location=slot.weapon.mainhand}] blaze_powder 0 1') }
world.afterEvents.itemUse.subscribe((data) => {
const player = data.source
const item = data.itemStack
if (data.itemStack.typeId === "minecraft:blaze_powder" && item.nameTag === "§r§4Buring Breath")
fattack(player)
}
)
Oui
O putin
Ta pas créer ta fonction
Function le nom de ta fonction () {
Ta fonction
}