#Removing Create Train Tracks Except For one
23 messages · Page 1 of 1 (latest)
Once your ticket has been resolved, please close it with </ticket close:1054771505520717835> command!
try not using an array for the not condition
also id not ID
actually the array is fine.
try ```js
ServerEvents.recipes(event => {
event.remove({ output: '#create:tracks', not: { id: "railways:track_phantom" }});
})
ServerEvents.recipes(event => {
event.remove({ output: '#create:tracks', not: { id: "railways:track_phantom" }});
event.remove({ output: Item.of('minecraft:potion', '{Potion:"apotheosis:flying"} }});
})
Correct?
It seem to remove all train tracks but not keep phantom tracks
oh wait
ServerEvents.recipes(event => {
event.remove({ output: '#create:tracks', not: { output: "railways:track_phantom" }});
})
Question what is wrong with the second remove event?
you need some js basic knowledge
This worked flawlessy thank youu!
il study that then
❌js Item.of('minecraft:potion', '{Potion:"..."} }}); // ----------------------------------------^-- ⭕```js
Item.of('minecraft:potion', '{Potion:"..."}') }});
// ----------------------------------------^^--
I see there was a missing )
and the '
changing the item.of to item'of? no wait that
hmm
ServerEvents.recipes(event => {
event.remove({ output: '#create:tracks', not: { output: "railways:track_phantom" }});
event.remove({ Item.of('minecraft:potion', '{Potion:"apotheosis:flight"}') }});
})
this is what i typed
ServerEvents.recipes(event => {
event.remove({ output: '#create:tracks', not: { output: 'railways:track_phantom' } });
event.remove({ output: Item.of('minecraft:potion', { Potion: 'apotheosis:flight' })
});
});