From d5b0b49396c817227cd155b4b4d42db1d342d57a Mon Sep 17 00:00:00 2001 From: Andrew-71 Date: Thu, 11 Apr 2024 12:19:22 +0300 Subject: [PATCH] Add basic whitewash --- TODO.md | 2 +- .../su/a71/new_soviet/registration/NSE_Items.java | 3 +++ .../new_soviet/models/item/whitewash_item.json | 6 ++++++ .../assets/new_soviet/textures/item/whitewash.png | Bin 0 -> 378 bytes 4 files changed, 10 insertions(+), 1 deletion(-) create mode 100644 src/main/resources/assets/new_soviet/models/item/whitewash_item.json create mode 100644 src/main/resources/assets/new_soviet/textures/item/whitewash.png diff --git a/TODO.md b/TODO.md index 58da4ef..a34cfd8 100644 --- a/TODO.md +++ b/TODO.md @@ -21,7 +21,7 @@ * Yellow-red linoleum - missing * Beige linoleum - missing * Whitewash birch door - missing - * Po-2 wall and crate...? - missing +* Po-2 wall and crate...? - missing * Rusty blue iron bars - missing * Most wallpaper - missing * Whitewash window - missing diff --git a/src/main/java/su/a71/new_soviet/registration/NSE_Items.java b/src/main/java/su/a71/new_soviet/registration/NSE_Items.java index 93a8d13..5a0621b 100644 --- a/src/main/java/su/a71/new_soviet/registration/NSE_Items.java +++ b/src/main/java/su/a71/new_soviet/registration/NSE_Items.java @@ -22,6 +22,8 @@ public class NSE_Items extends NSE_BaseRegistration { // Actually works on wood public static final Item SCREWDRIVER = new Item(new Item.Settings()); + public static final Item WHITEWASH_ITEM = new Item(new Item.Settings()); + public static final FoodComponent CONCENTRATE_FC = (new FoodComponent.Builder()).hunger(5).saturationModifier(1.0F).alwaysEdible().build(); public static final Item CONCENTRATE = new Item(new Item.Settings().food(CONCENTRATE_FC)); public static final FoodComponent COCONUT_FC = (new FoodComponent.Builder()).hunger(4).saturationModifier(1.2F).statusEffect(new StatusEffectInstance(StatusEffects.REGENERATION, 100, 1), 1.0F).statusEffect(new StatusEffectInstance(StatusEffects.ABSORPTION, 2400, 0), 1.0F).alwaysEdible().build(); @@ -63,6 +65,7 @@ public class NSE_Items extends NSE_BaseRegistration { registerItem("concentrate", () -> CONCENTRATE, NSE_ITEMS_TAB); registerItem("antenna", () -> ANTENNA, NSE_ITEMS_TAB); registerItem("screwdriver", () -> SCREWDRIVER, NSE_ITEMS_TAB); + registerItem("whitewash_item", () -> WHITEWASH_ITEM, NSE_ITEMS_TAB); registerItem("makhorka", ()-> MAKHORKA, NSE_ITEMS_TAB); registerItem("cigarette", ()-> CIGARETTE, NSE_ITEMS_TAB); registerItem("duchess_cigarette", ()-> DUCHESS_CIGARETTE, NSE_ITEMS_TAB); diff --git a/src/main/resources/assets/new_soviet/models/item/whitewash_item.json b/src/main/resources/assets/new_soviet/models/item/whitewash_item.json new file mode 100644 index 0000000..42186b5 --- /dev/null +++ b/src/main/resources/assets/new_soviet/models/item/whitewash_item.json @@ -0,0 +1,6 @@ +{ + "parent": "item/generated", + "textures": { + "layer0": "new_soviet:item/whitewash" + } +} \ No newline at end of file diff --git a/src/main/resources/assets/new_soviet/textures/item/whitewash.png b/src/main/resources/assets/new_soviet/textures/item/whitewash.png new file mode 100644 index 0000000000000000000000000000000000000000..a2657762a719a4bc88b367a15ac41b950d88fcf6 GIT binary patch literal 378 zcmV-=0fqjFP)Px$G)Y83R5*>TlQC-oF&Ks)OWg{BbLr3uN4HzzcH@m*99=u~N0ghSqd%ZS5jn71 zmu@<`T|f?(av&XQXE{M!0;ba)iHVbax4ilCyk9;NI8zOuDTL5IUrOoJTSj#-%QAkq z+uFZwwE*aLyC*>iA@p>y)LLu3E=#>GOKqz1ri-OEJG?X@_qR87qB1;23P7IcwI4+h$zZ_ycx=^QIF|x~Ah6b-lL-KWB%$4Ip9YwTrXKozukQe| zEb|ss9RO@L8$Uow*_hAg02D>x1yutyACfbJ<7*rz9?JqqDI3G#(1EO0D{ngd!)H2M Ye-