CustomPotion - RedWirePlatinumTwo/RedWiresMinecraftMod GitHub Wiki

Parameters

  • [potiontype] - The type of potion to create.
  • [effects] - The effect(s) to add to the potion. Can be multiple if separated by a comma (ex: strength,speed).

Optional Parameters

  • [seconds/infinite] - Defines the time to give the effect(s). Default is 30s, max 2,147,483,646.
  • [amplifier] - The amplifier to give to the effect(s), max 124.
  • [showParticles] - Defines if the potion should show the potion particles when applied.
  • [customName] - Simply gives the potion a name, works the same way as re-naming something with an Anvil.
  • [R] [G] [B] - Changes the color of the potion to the given RGB value.

Description

  • You can make custom potions without using this specific command, this just makes potion-making simpler.
  • Requires cheats: yes.

Change History

  • 5.5.0: Introduced command.
  • 5.5.2: Improved command, allowing effects from other (forge) mods to be used with potions.
  • 5.5.3: Decreased amplifier cap from 255 -> 127. (byte value moment)
  • 5.5.3: Namespaces for effects are no longer required.
  • 5.5.4: Decreased amplifier cap from 127 -> 124.
  • 6.0.0: if a custom name isn't specified, the name of the potion given will be based on the effects (using potion name if possible).
  • 7.0.0: Removed the RGB command args because the current neoforge version doesn't have an easy way to set custom potion colors.
  • 9.0.0: Re-added the RGB command args.
  • 11.1.10:
  • The custompotion command first parameter has been changed to a list with only potion, splash_potion, and lingering_potion instead of a number from 1-3 representing each item respectively. Additionally, hideParticles will now properly hide particles (It was changing the ambient field the entire time)
  • Both custompotion and forceeffect have a slightly improved result message + a failure message if the string effect list is invalid.
  • 11.1.11: Added an extra failure message for custompotion if anyone attempts to put in a non-potion id like a moron to prevent misuse.