generated from Anuken/MindustryJavaModTemplate
-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
=
committed
Jul 31, 2024
1 parent
d8c129d
commit 3241af9
Showing
11 changed files
with
49 additions
and
56 deletions.
There are no files selected for viewing
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
package sw.content.blocks; | ||
|
||
import mindustry.content.*; | ||
import mindustry.type.*; | ||
import mindustry.world.*; | ||
import mindustry.world.blocks.storage.*; | ||
import sw.content.*; | ||
|
||
import static mindustry.type.ItemStack.*; | ||
|
||
public class SWStorage { | ||
public static Block | ||
compactContainer, | ||
coreScaffold; | ||
|
||
public static void load() { | ||
compactContainer = new StorageBlock("compact-container") {{ | ||
requirements(Category.effect, with( | ||
SWItems.nickel, 40, | ||
SWItems.iron, 50, | ||
Items.silicon, 30 | ||
)); | ||
size = 2; | ||
health = 500; | ||
coreMerge = false; | ||
}}; | ||
|
||
coreScaffold = new CoreBlock("core-scaffold") {{ | ||
requirements(Category.effect, with( | ||
SWItems.nickel, 1000, | ||
Items.graphite, 800 | ||
)); | ||
size = 3; | ||
health = 2000; | ||
alwaysUnlocked = true; | ||
unitType = SWUnitTypes.lambda; | ||
itemCapacity = 5000; | ||
unitCapModifier = 12; | ||
}}; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters