hooglalways.blogg.se

Mindustry mods github codes
Mindustry mods github codes











mindustry mods github codes
  1. #Mindustry mods github codes how to
  2. #Mindustry mods github codes full

This has been implemented to better support fluid networks or partial consumption in the future.If you want to get the efficiency a block would have had if shouldConsume was true, use potentialEfficiency.If a block's shouldConsume returns false or it has no items, this efficiency is now 0, even if it has power.efficiency has been changed to reflect a block's "real" efficiency, not just power.#THIS IS VERY IMPORTANT AND CAN LEAD TO BIZZARRE BUGS IF YOU DO NOT HANDLE IT PROPERLY reloadTime -> reloadĬhargeEffect/chargeBeginEffect -> moved into bulletĬooldown, restitution -> no direct equivalent, either remove or use cooldownTime and recoilTime instead (see javadoc) Most fields have been renamed to match weapons.

#Mindustry mods github codes how to

  • DrawDefault draws the default block sprites (in this case, the top with its glass cover)įor a variety of examples on how to use DrawBlocks, consult the source code.
  • #Mindustry mods github codes full

  • DrawLiquidTile draws an animated square region of cryofluid liquid, with opacity depending on how full the block is.
  • DrawRegion draws a region named cryofluid-mixer-bottom as the first layer.
  • mindustry mods github codes

  • DrawMulti simply combines multiple draw implementations.
  • Block drawers are now modular, which means you can compose different layers instead of using one specific DrawBlock type.Īs an example, here is how a cryofluid mixer's drawer is implemented:ĭrawer = new DrawMulti( new DrawRegion( "-bottom"), new DrawLiquidTile( Liquids. Many DrawBlock subclasses have been removed, as they are now redundant.
  • ShootMulti: Chain together patterns, so you can have something like a duo that shoots a shotgun out of each barrel.
  • ShootBarrel: Similar to ShootAlternate, but barrels can be at any position or rotation.
  • ShootAlternate: Duo/spectre double barrel shots.
  • ShootSpread: Shotgun of projectiles with configurable spread.
  • The default ShootPattern implementation has no spread, and only supports a firstShotDelay (charging) and shotDelay (delay between shots).
  • mindustry mods github codes

  • Fields like shots, chargeTime and spread have been moved into this object.
  • This pattern controls how, where and when bullets are created.
  • Weapons and turrets now have a ShootPattern shoot field.
  • Why? Because JITPack sucks, but that's a story for another time.įor the absolute latest versions of Mindustry/Arc, replace the commit hashes at the ends with the latest commit hash of the corresponding repository. Note that the jitpack repository is now MindustryJitpack, not Mindustry.













    Mindustry mods github codes