#how to disable fabricae ex nihilo salt collection?

24 messages · Page 1 of 1 (latest)

low dust
#

how it works is you right click sand with a glass bottle and it becomes a bottle of salt
the sand doesn't get removed
and I can't find a good example of preventing that kind of interaction

random dawnBOT
#

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

low dust
#

I still have no idea what's wrong

BlockEvents.rightClicked('minecraft:sand', event => {

  if (event.item.id == 'minecraft:glass_bottle') {
    event.cancel()
  }
  //  return
  // event.cancel()  event.block.id == 'minecraft:sand' && 

})
low dust
#

I still haven't found what I need to do it

viscid wren
#

probably silly mods not listening to event results

#

check the mods code

#

oh, and alse

#

??ctc

frigid finchBOT
# viscid wren ??ctc

The thing you are trying to do can probably be achieved using the mods config, without anything extra!
Most mods have at least one config located at instance/config.
Some mods also have serverconfigs, found at instance/saves/worldname/serverconfig. You can copy any files in here to the defaultconfigs folder to automatically apply them to new worlds!

low dust
#

there isn't a config for salt collection

old kettle
#

it sounds like it's been hardcoded

viscid wren
#

mixin worry

#

welcome to WHY DO PEOPLE MIXIN WHEN THERE ARE PERFECTLY FINE EVENTS

#

if cancelling the event doesnt work there is nothing you can do

old kettle
#

you should probably make an issue to add a config option to disable it

#

or generally a way to disable it

low dust
#
ServerEvents.recipes(event => {

  event.custom({
    "type": "lychee:block_interacting",
    "item_in": {
      "item": "minecraft:glass_bottle"
    },
    "block_in": "minecraft:sand",
    "post": [
      {
        "type": "prevent_default"
      }
    ]
  })

})

works if you are close enough to have the block outline show

#

but there is a tiny bit of distance where the block outline doesn't show
but you can collect salt

low dust
low dust
#

nooooooooo

#

create deployers still collect salt with the lychee recipe

#

I can make the salt useless easily
but it's not the same as completely disabling it