Mods / ExtraCode

Category: #Library #QoL
Author: jayu
Side: Both
Created: Sep 24th at 5:12 PM
Last modified: Oct 23rd at 8:30 PM
Downloads: 190
Follow Unfollow 6

Latest file for v1.19.8:
ExtraCode.dll 1-click install


Buy Me a Coffee at ko-fi.com

This mod is a library and adds no content to the game

This mod's purpose is to make content modder's lives easier by providing a set of very moddable classes and behaviours, with focus on flexibility. Please do offer suggestions on what your needs are, especially things that could make it easier to implement hardcoded vanilla stuff.

Please check the example mod for usage. I won't write documentation for now, so an example mod is a great solution because it is what I use for testing, allowing me to use it both to test and as an example for users.

Currently available classes:

  • [Block Behaviour] BreakSpawner: Spawn entities when broken, allows to configure multiple entity codes, set their relative chances, or a required tool for the effect to be in place (allows wildcards selectors). Check example mod for usage.
  • [Block Behaviour] InfestedBlock: Inherits from BreakSpawner, resembles minecraft's infested rock by breaking the block when a connected infested block is broken. Allows wildcards selectors for what nearby infested blocks will trigger the effect. Break delay for each block can be set.
  • [Block Behaviour] DropsWhenBrokenWith: Allows to set multiple custom drops based on the tool used to break the block (allows wildcards).
  • [Block Behaviour] CustomDrinkSpeed: Allows to set custom drink speed for containers.
  • [Item] ItemMetalBloom: Generic metal bloom item, to make items like irom blooms that need to be smithed on an anvil to refine

Additionally the current attributes exist:

  • "blisterSteelLike": ingot will behave like blister steel when placed on an anvil to be worked when this attribute is set to true.

Additional tweaks:

  • Can define metal worldproperties (still need to be called block/metal) in any custom domain, can also json patch vanilla metal worldproperties, which is impossible in vanilla since they load before patches (not strictly needed because of the first)

Version For Game version Downloads Release date Changelog Download 1-click mod install*
v1.2.0 53 Oct 23rd at 8:30 PM Show ExtraCode.dll Install now
v1.1.1 45 Oct 17th at 1:49 PM Show ExtraCode.dll Install now
v1.1.0 36 Oct 16th at 10:28 PM Show ExtraCode.dll Install now
v1.0.0 55 Sep 24th at 5:43 PM Show ExtraCode.dll Install now

1 Comments (oldest first | newest first)

💬 MoonlitShade, Sep 24th at 5:56 PM

Thanks for making my suggestions a reality! I have plans for this :P

(edit comment delete)