Compare commits
2 commits
4873b24911
...
586a39977b
Author | SHA1 | Date | |
---|---|---|---|
586a39977b | |||
b37e62cc47 |
|
@ -48,4 +48,8 @@ This version focuses on QOL and bug fixes
|
|||
* Technical changes
|
||||
* Simplified recipe data generation
|
||||
* Deleted various unused files - code, textures and models
|
||||
* Bumped Fabric API, loader and mappings versions
|
||||
* Bumped Fabric API, loader and mappings versions
|
||||
|
||||
### Changelog 0.3 -> 0.4
|
||||
* Added a new antenna item to improve radio electronics recipes
|
||||
* Changed texture of dirt road
|
16
TODO.md
|
@ -25,9 +25,15 @@ TODO --
|
|||
=== VERSION SPECIFIC ===
|
||||
## 0.3
|
||||
Goals left - QOL
|
||||
* All missing recipes
|
||||
* Better feedback - particles, noises
|
||||
* Fix post lamps hit-boxes
|
||||
* Missing warning stripes
|
||||
* All missing recipes ~+-
|
||||
* Better feedback - particles, noises ~+-
|
||||
* Fix post lamps hit-boxes ~+-
|
||||
|
||||
## 0.4
|
||||
* Implement antenna everywhere
|
||||
* Add patterns
|
||||
* Implement new concrete
|
||||
* TV rework #3 (new colours, second static, ...?)
|
||||
* More landmines, land mine base item, create integration for it
|
||||
* Rework cigarette (code and some functionality)
|
||||
* More landmines, land mine base item, create integration for it
|
||||
* Missing warning stripes
|
||||
|
|
|
@ -34,6 +34,7 @@ public class NewSovietClient implements ClientModInitializer {
|
|||
BlockRenderLayerMap.INSTANCE.putBlock(NSE_Custom.TV, RenderLayer.getCutout());
|
||||
BlockRenderLayerMap.INSTANCE.putBlock(NSE_Custom.RED_TV, RenderLayer.getCutout());
|
||||
BlockRenderLayerMap.INSTANCE.putBlock(NSE_Custom.BROWN_TV, RenderLayer.getCutout());
|
||||
BlockRenderLayerMap.INSTANCE.putBlock(NSE_Custom.GREEN_TV, RenderLayer.getCutout());
|
||||
|
||||
BlockRenderLayerMap.INSTANCE.putBlock(NSE_Custom.RADIO_RECEIVER, RenderLayer.getCutout());
|
||||
|
||||
|
|
|
@ -0,0 +1,39 @@
|
|||
{
|
||||
"parent": "minecraft:new_soviet/root",
|
||||
"criteria": {
|
||||
"got_antenna": {
|
||||
"conditions": {
|
||||
"items": [
|
||||
{
|
||||
"items": [
|
||||
"new_soviet:antenna"
|
||||
]
|
||||
}
|
||||
]
|
||||
},
|
||||
"trigger": "minecraft:inventory_changed"
|
||||
}
|
||||
},
|
||||
"display": {
|
||||
"announce_to_chat": true,
|
||||
"background": "minecraft:textures/gui/advancements/backgrounds/adventure.png",
|
||||
"description": {
|
||||
"translate": "advancement.new_soviet.antenna.desc"
|
||||
},
|
||||
"frame": "task",
|
||||
"hidden": false,
|
||||
"icon": {
|
||||
"item": "new_soviet:antenna"
|
||||
},
|
||||
"show_toast": true,
|
||||
"title": {
|
||||
"translate": "advancement.new_soviet.antenna.name"
|
||||
}
|
||||
},
|
||||
"requirements": [
|
||||
[
|
||||
"got_antenna"
|
||||
]
|
||||
],
|
||||
"sends_telemetry_event": true
|
||||
}
|
|
@ -1,6 +1,18 @@
|
|||
{
|
||||
"parent": "minecraft:recipes/root",
|
||||
"criteria": {
|
||||
"has_antenna": {
|
||||
"conditions": {
|
||||
"items": [
|
||||
{
|
||||
"items": [
|
||||
"new_soviet:antenna"
|
||||
]
|
||||
}
|
||||
]
|
||||
},
|
||||
"trigger": "minecraft:inventory_changed"
|
||||
},
|
||||
"has_brown_dye": {
|
||||
"conditions": {
|
||||
"items": [
|
||||
|
@ -25,12 +37,24 @@
|
|||
},
|
||||
"trigger": "minecraft:inventory_changed"
|
||||
},
|
||||
"has_iron_nugget": {
|
||||
"has_iron_ingot": {
|
||||
"conditions": {
|
||||
"items": [
|
||||
{
|
||||
"items": [
|
||||
"minecraft:iron_nugget"
|
||||
"minecraft:iron_ingot"
|
||||
]
|
||||
}
|
||||
]
|
||||
},
|
||||
"trigger": "minecraft:inventory_changed"
|
||||
},
|
||||
"has_iron_trapdoor": {
|
||||
"conditions": {
|
||||
"items": [
|
||||
{
|
||||
"items": [
|
||||
"minecraft:iron_trapdoor"
|
||||
]
|
||||
}
|
||||
]
|
||||
|
@ -58,7 +82,9 @@
|
|||
},
|
||||
"requirements": [
|
||||
[
|
||||
"has_iron_nugget",
|
||||
"has_iron_ingot",
|
||||
"has_iron_trapdoor",
|
||||
"has_antenna",
|
||||
"has_glass_pane",
|
||||
"has_redstone",
|
||||
"has_brown_dye",
|
||||
|
|
|
@ -0,0 +1,100 @@
|
|||
{
|
||||
"parent": "minecraft:recipes/root",
|
||||
"criteria": {
|
||||
"has_antenna": {
|
||||
"conditions": {
|
||||
"items": [
|
||||
{
|
||||
"items": [
|
||||
"new_soviet:antenna"
|
||||
]
|
||||
}
|
||||
]
|
||||
},
|
||||
"trigger": "minecraft:inventory_changed"
|
||||
},
|
||||
"has_glass_pane": {
|
||||
"conditions": {
|
||||
"items": [
|
||||
{
|
||||
"items": [
|
||||
"minecraft:glass_pane"
|
||||
]
|
||||
}
|
||||
]
|
||||
},
|
||||
"trigger": "minecraft:inventory_changed"
|
||||
},
|
||||
"has_green_dye": {
|
||||
"conditions": {
|
||||
"items": [
|
||||
{
|
||||
"items": [
|
||||
"minecraft:green_dye"
|
||||
]
|
||||
}
|
||||
]
|
||||
},
|
||||
"trigger": "minecraft:inventory_changed"
|
||||
},
|
||||
"has_iron_ingot": {
|
||||
"conditions": {
|
||||
"items": [
|
||||
{
|
||||
"items": [
|
||||
"minecraft:iron_ingot"
|
||||
]
|
||||
}
|
||||
]
|
||||
},
|
||||
"trigger": "minecraft:inventory_changed"
|
||||
},
|
||||
"has_iron_trapdoor": {
|
||||
"conditions": {
|
||||
"items": [
|
||||
{
|
||||
"items": [
|
||||
"minecraft:iron_trapdoor"
|
||||
]
|
||||
}
|
||||
]
|
||||
},
|
||||
"trigger": "minecraft:inventory_changed"
|
||||
},
|
||||
"has_redstone": {
|
||||
"conditions": {
|
||||
"items": [
|
||||
{
|
||||
"items": [
|
||||
"minecraft:redstone"
|
||||
]
|
||||
}
|
||||
]
|
||||
},
|
||||
"trigger": "minecraft:inventory_changed"
|
||||
},
|
||||
"has_the_recipe": {
|
||||
"conditions": {
|
||||
"recipe": "new_soviet:green_tv"
|
||||
},
|
||||
"trigger": "minecraft:recipe_unlocked"
|
||||
}
|
||||
},
|
||||
"requirements": [
|
||||
[
|
||||
"has_iron_ingot",
|
||||
"has_iron_trapdoor",
|
||||
"has_antenna",
|
||||
"has_glass_pane",
|
||||
"has_redstone",
|
||||
"has_green_dye",
|
||||
"has_the_recipe"
|
||||
]
|
||||
],
|
||||
"rewards": {
|
||||
"recipes": [
|
||||
"new_soviet:green_tv"
|
||||
]
|
||||
},
|
||||
"sends_telemetry_event": false
|
||||
}
|
|
@ -1,6 +1,18 @@
|
|||
{
|
||||
"parent": "minecraft:recipes/root",
|
||||
"criteria": {
|
||||
"has_antenna": {
|
||||
"conditions": {
|
||||
"items": [
|
||||
{
|
||||
"items": [
|
||||
"new_soviet:antenna"
|
||||
]
|
||||
}
|
||||
]
|
||||
},
|
||||
"trigger": "minecraft:inventory_changed"
|
||||
},
|
||||
"has_glass_pane": {
|
||||
"conditions": {
|
||||
"items": [
|
||||
|
@ -13,12 +25,24 @@
|
|||
},
|
||||
"trigger": "minecraft:inventory_changed"
|
||||
},
|
||||
"has_iron_nugget": {
|
||||
"has_iron_ingot": {
|
||||
"conditions": {
|
||||
"items": [
|
||||
{
|
||||
"items": [
|
||||
"minecraft:iron_nugget"
|
||||
"minecraft:iron_ingot"
|
||||
]
|
||||
}
|
||||
]
|
||||
},
|
||||
"trigger": "minecraft:inventory_changed"
|
||||
},
|
||||
"has_iron_trapdoor": {
|
||||
"conditions": {
|
||||
"items": [
|
||||
{
|
||||
"items": [
|
||||
"minecraft:iron_trapdoor"
|
||||
]
|
||||
}
|
||||
]
|
||||
|
@ -58,7 +82,9 @@
|
|||
},
|
||||
"requirements": [
|
||||
[
|
||||
"has_iron_nugget",
|
||||
"has_iron_ingot",
|
||||
"has_iron_trapdoor",
|
||||
"has_antenna",
|
||||
"has_glass_pane",
|
||||
"has_redstone",
|
||||
"has_red_dye",
|
||||
|
|
|
@ -1,6 +1,18 @@
|
|||
{
|
||||
"parent": "minecraft:recipes/root",
|
||||
"criteria": {
|
||||
"has_antenna": {
|
||||
"conditions": {
|
||||
"items": [
|
||||
{
|
||||
"items": [
|
||||
"new_soviet:antenna"
|
||||
]
|
||||
}
|
||||
]
|
||||
},
|
||||
"trigger": "minecraft:inventory_changed"
|
||||
},
|
||||
"has_glass_pane": {
|
||||
"conditions": {
|
||||
"items": [
|
||||
|
@ -13,12 +25,24 @@
|
|||
},
|
||||
"trigger": "minecraft:inventory_changed"
|
||||
},
|
||||
"has_iron_nugget": {
|
||||
"has_iron_ingot": {
|
||||
"conditions": {
|
||||
"items": [
|
||||
{
|
||||
"items": [
|
||||
"minecraft:iron_nugget"
|
||||
"minecraft:iron_ingot"
|
||||
]
|
||||
}
|
||||
]
|
||||
},
|
||||
"trigger": "minecraft:inventory_changed"
|
||||
},
|
||||
"has_iron_trapdoor": {
|
||||
"conditions": {
|
||||
"items": [
|
||||
{
|
||||
"items": [
|
||||
"minecraft:iron_trapdoor"
|
||||
]
|
||||
}
|
||||
]
|
||||
|
@ -58,7 +82,9 @@
|
|||
},
|
||||
"requirements": [
|
||||
[
|
||||
"has_iron_nugget",
|
||||
"has_iron_ingot",
|
||||
"has_iron_trapdoor",
|
||||
"has_antenna",
|
||||
"has_glass_pane",
|
||||
"has_redstone",
|
||||
"has_orange_dye",
|
||||
|
|
|
@ -0,0 +1,48 @@
|
|||
{
|
||||
"parent": "minecraft:recipes/root",
|
||||
"criteria": {
|
||||
"has_iron_ingot": {
|
||||
"conditions": {
|
||||
"items": [
|
||||
{
|
||||
"items": [
|
||||
"minecraft:iron_ingot"
|
||||
]
|
||||
}
|
||||
]
|
||||
},
|
||||
"trigger": "minecraft:inventory_changed"
|
||||
},
|
||||
"has_iron_nugget": {
|
||||
"conditions": {
|
||||
"items": [
|
||||
{
|
||||
"items": [
|
||||
"minecraft:iron_nugget"
|
||||
]
|
||||
}
|
||||
]
|
||||
},
|
||||
"trigger": "minecraft:inventory_changed"
|
||||
},
|
||||
"has_the_recipe": {
|
||||
"conditions": {
|
||||
"recipe": "new_soviet:antenna"
|
||||
},
|
||||
"trigger": "minecraft:recipe_unlocked"
|
||||
}
|
||||
},
|
||||
"requirements": [
|
||||
[
|
||||
"has_iron_ingot",
|
||||
"has_iron_nugget",
|
||||
"has_the_recipe"
|
||||
]
|
||||
],
|
||||
"rewards": {
|
||||
"recipes": [
|
||||
"new_soviet:antenna"
|
||||
]
|
||||
},
|
||||
"sends_telemetry_event": false
|
||||
}
|
21
src/main/generated/data/new_soviet/recipes/antenna.json
Normal file
|
@ -0,0 +1,21 @@
|
|||
{
|
||||
"type": "minecraft:crafting_shaped",
|
||||
"category": "misc",
|
||||
"key": {
|
||||
"I": {
|
||||
"item": "minecraft:iron_ingot"
|
||||
},
|
||||
"N": {
|
||||
"item": "minecraft:iron_nugget"
|
||||
}
|
||||
},
|
||||
"pattern": [
|
||||
"N N",
|
||||
"N N",
|
||||
" I "
|
||||
],
|
||||
"result": {
|
||||
"item": "new_soviet:antenna"
|
||||
},
|
||||
"show_notification": true
|
||||
}
|
|
@ -2,23 +2,29 @@
|
|||
"type": "minecraft:crafting_shaped",
|
||||
"category": "misc",
|
||||
"key": {
|
||||
"A": {
|
||||
"item": "new_soviet:antenna"
|
||||
},
|
||||
"D": {
|
||||
"item": "minecraft:brown_dye"
|
||||
},
|
||||
"G": {
|
||||
"item": "minecraft:glass_pane"
|
||||
},
|
||||
"N": {
|
||||
"item": "minecraft:iron_nugget"
|
||||
"I": {
|
||||
"item": "minecraft:iron_ingot"
|
||||
},
|
||||
"R": {
|
||||
"item": "minecraft:redstone"
|
||||
},
|
||||
"T": {
|
||||
"item": "minecraft:iron_trapdoor"
|
||||
}
|
||||
},
|
||||
"pattern": [
|
||||
"N N",
|
||||
"DGD",
|
||||
"DRD"
|
||||
"TAT",
|
||||
"IGI",
|
||||
"RDR"
|
||||
],
|
||||
"result": {
|
||||
"item": "new_soviet:brown_tv"
|
||||
|
|
33
src/main/generated/data/new_soviet/recipes/green_tv.json
Normal file
|
@ -0,0 +1,33 @@
|
|||
{
|
||||
"type": "minecraft:crafting_shaped",
|
||||
"category": "misc",
|
||||
"key": {
|
||||
"A": {
|
||||
"item": "new_soviet:antenna"
|
||||
},
|
||||
"D": {
|
||||
"item": "minecraft:green_dye"
|
||||
},
|
||||
"G": {
|
||||
"item": "minecraft:glass_pane"
|
||||
},
|
||||
"I": {
|
||||
"item": "minecraft:iron_ingot"
|
||||
},
|
||||
"R": {
|
||||
"item": "minecraft:redstone"
|
||||
},
|
||||
"T": {
|
||||
"item": "minecraft:iron_trapdoor"
|
||||
}
|
||||
},
|
||||
"pattern": [
|
||||
"TAT",
|
||||
"IGI",
|
||||
"RDR"
|
||||
],
|
||||
"result": {
|
||||
"item": "new_soviet:green_tv"
|
||||
},
|
||||
"show_notification": true
|
||||
}
|
|
@ -2,23 +2,29 @@
|
|||
"type": "minecraft:crafting_shaped",
|
||||
"category": "misc",
|
||||
"key": {
|
||||
"A": {
|
||||
"item": "new_soviet:antenna"
|
||||
},
|
||||
"D": {
|
||||
"item": "minecraft:red_dye"
|
||||
},
|
||||
"G": {
|
||||
"item": "minecraft:glass_pane"
|
||||
},
|
||||
"N": {
|
||||
"item": "minecraft:iron_nugget"
|
||||
"I": {
|
||||
"item": "minecraft:iron_ingot"
|
||||
},
|
||||
"R": {
|
||||
"item": "minecraft:redstone"
|
||||
},
|
||||
"T": {
|
||||
"item": "minecraft:iron_trapdoor"
|
||||
}
|
||||
},
|
||||
"pattern": [
|
||||
"N N",
|
||||
"DGD",
|
||||
"DRD"
|
||||
"TAT",
|
||||
"IGI",
|
||||
"RDR"
|
||||
],
|
||||
"result": {
|
||||
"item": "new_soviet:red_tv"
|
||||
|
|
|
@ -2,23 +2,29 @@
|
|||
"type": "minecraft:crafting_shaped",
|
||||
"category": "misc",
|
||||
"key": {
|
||||
"A": {
|
||||
"item": "new_soviet:antenna"
|
||||
},
|
||||
"D": {
|
||||
"item": "minecraft:orange_dye"
|
||||
},
|
||||
"G": {
|
||||
"item": "minecraft:glass_pane"
|
||||
},
|
||||
"N": {
|
||||
"item": "minecraft:iron_nugget"
|
||||
"I": {
|
||||
"item": "minecraft:iron_ingot"
|
||||
},
|
||||
"R": {
|
||||
"item": "minecraft:redstone"
|
||||
},
|
||||
"T": {
|
||||
"item": "minecraft:iron_trapdoor"
|
||||
}
|
||||
},
|
||||
"pattern": [
|
||||
"N N",
|
||||
"DGD",
|
||||
"DRD"
|
||||
"TAT",
|
||||
"IGI",
|
||||
"RDR"
|
||||
],
|
||||
"result": {
|
||||
"item": "new_soviet:tv"
|
||||
|
|
|
@ -3,6 +3,7 @@
|
|||
"values": [
|
||||
"new_soviet:tv",
|
||||
"new_soviet:red_tv",
|
||||
"new_soviet:brown_tv"
|
||||
"new_soviet:brown_tv",
|
||||
"new_soviet:green_tv"
|
||||
]
|
||||
}
|
|
@ -40,7 +40,7 @@ public class Advancements implements Consumer<Consumer<Advancement>> {
|
|||
false, // Announcement
|
||||
false // Hidden
|
||||
)
|
||||
.criterion("got_dirt", InventoryChangedCriterion.Conditions.items(Items.DIRT))
|
||||
.criterion("got_dirt", InventoryChangedCriterion.Conditions.items(Items.DIRT)) // Just a basic criterion
|
||||
.build(consumer, NewSoviet.MOD_ID + "/root");
|
||||
|
||||
// Make a sickle
|
||||
|
@ -95,7 +95,7 @@ public class Advancements implements Consumer<Consumer<Advancement>> {
|
|||
ItemPredicate.Builder.create().tag(NSE_Tags.Items.DICE)))
|
||||
.build(consumer, NewSoviet.MOD_ID + "/gambler");
|
||||
|
||||
// Throw a die 1000 times
|
||||
// Throw a die 1000 times
|
||||
Advancement serious_addiction = Advancement.Builder.create()
|
||||
.display(
|
||||
NSE_Items.DICE_D20,
|
||||
|
@ -126,5 +126,21 @@ public class Advancements implements Consumer<Consumer<Advancement>> {
|
|||
.parent(gambler)
|
||||
.criterion("rolled_100_perfect", UsingItemCriterion.Conditions.create(EntityPredicate.Builder.create().type(EntityType.PLAYER).typeSpecific(PlayerPredicate.Builder.create().stat(Stats.CUSTOM.getOrCreateStat(NSE_Stats.ROLL_PERFECT_DICE), NumberRange.IntRange.atLeast(100)).build()), ItemPredicate.Builder.create().tag(NSE_Tags.Items.DICE)))
|
||||
.build(consumer, NewSoviet.MOD_ID + "/lucky_throw");
|
||||
|
||||
// Craft an antenna
|
||||
Advancement antenna = Advancement.Builder.create()
|
||||
.display(
|
||||
NSE_Items.ANTENNA,
|
||||
Text.translatable("advancement.new_soviet.antenna.name"),
|
||||
Text.translatable("advancement.new_soviet.antenna.desc"),
|
||||
new Identifier("textures/gui/advancements/backgrounds/adventure.png"),
|
||||
AdvancementFrame.TASK,
|
||||
true, // Toast
|
||||
true, // Announcement
|
||||
false // Hidden
|
||||
)
|
||||
.parent(root)
|
||||
.criterion("got_antenna", InventoryChangedCriterion.Conditions.items(NSE_Items.ANTENNA))
|
||||
.build(consumer, NewSoviet.MOD_ID + "/antenna");
|
||||
}
|
||||
}
|
||||
|
|
|
@ -427,7 +427,8 @@ public class BlockTagGenerator extends FabricTagProvider.BlockTagProvider {
|
|||
getOrCreateTagBuilder(NSE_Tags.Blocks.TV)
|
||||
.add(NSE_Custom.TV)
|
||||
.add(NSE_Custom.RED_TV)
|
||||
.add(NSE_Custom.BROWN_TV);
|
||||
.add(NSE_Custom.BROWN_TV)
|
||||
.add(NSE_Custom.GREEN_TV);
|
||||
|
||||
getOrCreateTagBuilder(NSE_Tags.Blocks.SWITCHES)
|
||||
.add(NSE_Custom.SWITCH)
|
||||
|
|
|
@ -166,15 +166,21 @@ public class RecipeGenerator extends FabricRecipeProvider {
|
|||
|
||||
private void tvRecipe(Consumer<RecipeJsonProvider> exporter, ItemConvertible output, ItemConvertible dye) {
|
||||
ShapedRecipeJsonBuilder.create(RecipeCategory.DECORATIONS, output, 1)
|
||||
.pattern("N N")
|
||||
.pattern("DGD")
|
||||
.pattern("DRD")
|
||||
.pattern("TAT")
|
||||
.pattern("IGI")
|
||||
.pattern("RDR")
|
||||
.input('D', dye)
|
||||
.input('N', Items.IRON_NUGGET)
|
||||
.input('A', NSE_Items.ANTENNA)
|
||||
.input('I', Items.IRON_INGOT)
|
||||
.input('T', Items.IRON_TRAPDOOR)
|
||||
.input('R', Items.REDSTONE)
|
||||
.input('G', Items.GLASS_PANE)
|
||||
.criterion(RecipeProvider.hasItem(Items.IRON_NUGGET),
|
||||
RecipeProvider.conditionsFromItem(Items.IRON_NUGGET))
|
||||
.criterion(RecipeProvider.hasItem(Items.IRON_INGOT),
|
||||
RecipeProvider.conditionsFromItem(Items.IRON_INGOT))
|
||||
.criterion(RecipeProvider.hasItem(Items.IRON_TRAPDOOR),
|
||||
RecipeProvider.conditionsFromItem(Items.IRON_TRAPDOOR))
|
||||
.criterion(RecipeProvider.hasItem(NSE_Items.ANTENNA),
|
||||
RecipeProvider.conditionsFromItem(NSE_Items.ANTENNA))
|
||||
.criterion(RecipeProvider.hasItem(Items.GLASS_PANE),
|
||||
RecipeProvider.conditionsFromItem(Items.GLASS_PANE))
|
||||
.criterion(RecipeProvider.hasItem(Items.REDSTONE),
|
||||
|
@ -204,6 +210,7 @@ public class RecipeGenerator extends FabricRecipeProvider {
|
|||
tvRecipe(exporter, NSE_Custom.TV, Items.ORANGE_DYE);
|
||||
tvRecipe(exporter, NSE_Custom.BROWN_TV, Items.BROWN_DYE);
|
||||
tvRecipe(exporter, NSE_Custom.RED_TV, Items.RED_DYE);
|
||||
tvRecipe(exporter, NSE_Custom.GREEN_TV, Items.GREEN_DYE);
|
||||
|
||||
// Cracked blocks
|
||||
offerCrackingRecipe(exporter, NSE_Blocks.CRACKED_BRICK_TILES, NSE_Blocks.BRICK_TILES);
|
||||
|
@ -542,6 +549,13 @@ public class RecipeGenerator extends FabricRecipeProvider {
|
|||
.criterion(hasItem(Items.GLOWSTONE_DUST), conditionsFromItem(Items.GLOWSTONE_DUST))
|
||||
.offerTo(exporter);
|
||||
|
||||
ShapedRecipeJsonBuilder.create(RecipeCategory.MISC, NSE_Items.ANTENNA, 1)
|
||||
.input('I', Items.IRON_INGOT).input('N', Items.IRON_NUGGET)
|
||||
.pattern("N N").pattern("N N").pattern(" I ")
|
||||
.criterion(hasItem(Items.IRON_INGOT), conditionsFromItem(Items.IRON_INGOT))
|
||||
.criterion(hasItem(Items.IRON_NUGGET), conditionsFromItem(Items.IRON_NUGGET))
|
||||
.offerTo(exporter);
|
||||
|
||||
ShapedRecipeJsonBuilder.create(RecipeCategory.DECORATIONS, NSE_Custom.LIGHT_BULB_LAMP, 1)
|
||||
.input('X', Items.IRON_INGOT).input('Y', Items.IRON_NUGGET).input('Z', NSE_Items.LIGHT_BULB)
|
||||
.pattern(" X ").pattern(" Y ").pattern(" Z ")
|
||||
|
|
|
@ -35,7 +35,8 @@ public class NSE_Custom extends NSE_BaseRegistration {
|
|||
public static final TVBlock TV = new TVBlock(FabricBlockSettings.create().mapColor(MapColor.TERRACOTTA_YELLOW));
|
||||
public static final TVBlock RED_TV = new TVBlock(FabricBlockSettings.create().mapColor(MapColor.TERRACOTTA_RED));
|
||||
public static final TVBlock BROWN_TV = new TVBlock(FabricBlockSettings.create().mapColor(MapColor.TERRACOTTA_BROWN));
|
||||
public static final BlockEntityType<TVBlockEntity> TV_BLOCK_ENTITY = registerBlockEntity("tv_block_entity", TVBlockEntity::new, TV, RED_TV, BROWN_TV);
|
||||
public static final TVBlock GREEN_TV = new TVBlock(FabricBlockSettings.create().mapColor(MapColor.TERRACOTTA_GREEN));
|
||||
public static final BlockEntityType<TVBlockEntity> TV_BLOCK_ENTITY = registerBlockEntity("tv_block_entity", TVBlockEntity::new, TV, RED_TV, BROWN_TV, GREEN_TV);
|
||||
|
||||
public static final RadioReceiverBlock RADIO_RECEIVER = new RadioReceiverBlock();
|
||||
|
||||
|
@ -103,6 +104,8 @@ public class NSE_Custom extends NSE_BaseRegistration {
|
|||
registerBlock("tv", () -> TV, NSE_CUSTOM_TAB);
|
||||
registerBlock("red_tv", () -> RED_TV, NSE_CUSTOM_TAB);
|
||||
registerBlock("brown_tv", () -> BROWN_TV, NSE_CUSTOM_TAB);
|
||||
registerBlock("green_tv", () -> GREEN_TV, NSE_CUSTOM_TAB);
|
||||
|
||||
registerBlock("radio_receiver", () -> RADIO_RECEIVER, NSE_CUSTOM_TAB);
|
||||
registerBlock("table_lamp", () -> TABLE_LAMP, NSE_CUSTOM_TAB);
|
||||
registerBlock("golden_table_lamp", () -> GOLDEN_LAMP, NSE_CUSTOM_TAB);
|
||||
|
|
|
@ -30,10 +30,11 @@ public class NSE_Items extends NSE_BaseRegistration {
|
|||
public static final DiceItem DICE_D20 = new DiceItem(20, "item.new_soviet.dice_d20.tooltip", new Item.Settings().maxCount(6));
|
||||
|
||||
public static final Item LIGHT_BULB = new Item(new Item.Settings());
|
||||
public static final Item ANTENNA = new Item(new Item.Settings());
|
||||
|
||||
public static final Item CIGARETTE_BUTT = new Item(new Item.Settings());
|
||||
public static final CigaretteItem CIGARETTE = new CigaretteItem(200, NSE_Items.CIGARETTE_BUTT, "item.new_soviet.tooltip.salute", new Item.Settings());
|
||||
// public static final MusicDiscItem BATTLE_IS_GOING_AGAIN = new MusicDiscItem(1, NSE_Sounds.MUSIC_LENIN, 123)
|
||||
// public static final MusicDiscItem BATTLE_IS_GOING_AGAIN = new MusicDiscItem(1, NSE_Sounds.MUSIC_LENIN, 123) TODO: Music pls?
|
||||
|
||||
private static final ItemGroup NSE_ITEMS_TAB = FabricItemGroup.builder()
|
||||
.icon(() -> new ItemStack(SICKLE))
|
||||
|
@ -50,6 +51,7 @@ public class NSE_Items extends NSE_BaseRegistration {
|
|||
registerItem("dice_d4", () -> DICE_D4, NSE_ITEMS_TAB);
|
||||
registerItem("dice_d20", () -> DICE_D20, NSE_ITEMS_TAB);
|
||||
registerItem("light_bulb_item", () -> LIGHT_BULB, NSE_ITEMS_TAB);
|
||||
registerItem("antenna", () -> ANTENNA, NSE_ITEMS_TAB);
|
||||
registerItem("cigarette", ()-> CIGARETTE, NSE_ITEMS_TAB);
|
||||
registerItem("cigarette_butt", ()-> CIGARETTE_BUTT, NSE_ITEMS_TAB);
|
||||
}
|
||||
|
|
135
src/main/resources/assets/new_soviet/blockstates/green_tv.json
Normal file
|
@ -0,0 +1,135 @@
|
|||
{
|
||||
"variants": {
|
||||
"facing=north,lit=false,cracked=false,inverted=false": {
|
||||
"model": "new_soviet:block/tv/green_tv", "uvlock": true
|
||||
},
|
||||
"facing=north,lit=true,cracked=false,inverted=false": {
|
||||
"model": "new_soviet:block/tv/green_tv_on", "uvlock": true
|
||||
},
|
||||
"facing=north,lit=false,cracked=false,inverted=true": {
|
||||
"model": "new_soviet:block/tv/green_tv_on", "uvlock": true
|
||||
},
|
||||
"facing=north,lit=true,cracked=false,inverted=true": {
|
||||
"model": "new_soviet:block/tv/green_tv", "uvlock": true
|
||||
},
|
||||
"facing=north,lit=false,cracked=true": [{
|
||||
"model": "new_soviet:block/tv/green_tv_broken1", "uvlock": true
|
||||
},
|
||||
{
|
||||
"model": "new_soviet:block/tv/green_tv_broken2", "uvlock": true
|
||||
},
|
||||
{
|
||||
"model": "new_soviet:block/tv/green_tv_broken3", "uvlock": true
|
||||
}
|
||||
],
|
||||
"facing=north,lit=true,cracked=true": [{
|
||||
"model": "new_soviet:block/tv/green_tv_broken1", "uvlock": true
|
||||
},
|
||||
{
|
||||
"model": "new_soviet:block/tv/green_tv_broken2", "uvlock": true
|
||||
},
|
||||
{
|
||||
"model": "new_soviet:block/tv/green_tv_broken3", "uvlock": true
|
||||
}
|
||||
],
|
||||
|
||||
"facing=east,lit=false,cracked=false,inverted=false": {
|
||||
"model": "new_soviet:block/tv/green_tv", "y": 90, "uvlock": false
|
||||
},
|
||||
"facing=east,lit=true,cracked=false,inverted=false": {
|
||||
"model": "new_soviet:block/tv/green_tv_on", "y": 90, "uvlock": false
|
||||
},
|
||||
"facing=east,lit=false,cracked=false,inverted=true": {
|
||||
"model": "new_soviet:block/tv/green_tv_on", "y": 90, "uvlock": false
|
||||
},
|
||||
"facing=east,lit=true,cracked=false,inverted=true": {
|
||||
"model": "new_soviet:block/tv/green_tv", "y": 90, "uvlock": false
|
||||
},
|
||||
"facing=east,lit=false,cracked=true": [{
|
||||
"model": "new_soviet:block/tv/green_tv_broken1", "y": 90, "uvlock": false
|
||||
},
|
||||
{
|
||||
"model": "new_soviet:block/tv/green_tv_broken2", "y": 90, "uvlock": false
|
||||
},
|
||||
{
|
||||
"model": "new_soviet:block/tv/green_tv_broken3", "y": 90, "uvlock": false
|
||||
}
|
||||
],
|
||||
"facing=east,lit=true,cracked=true": [{
|
||||
"model": "new_soviet:block/tv/green_tv_broken1", "y": 90, "uvlock": false
|
||||
},
|
||||
{
|
||||
"model": "new_soviet:block/tv/green_tv_broken2", "y": 90, "uvlock": false
|
||||
},
|
||||
{
|
||||
"model": "new_soviet:block/tv/green_tv_broken3", "y": 90, "uvlock": false
|
||||
}
|
||||
],
|
||||
|
||||
"facing=south,lit=false,cracked=false,inverted=false": {
|
||||
"model": "new_soviet:block/tv/green_tv", "y": 180, "uvlock": false
|
||||
},
|
||||
"facing=south,lit=true,cracked=false,inverted=false": {
|
||||
"model": "new_soviet:block/tv/green_tv_on", "y": 180, "uvlock": false
|
||||
},
|
||||
"facing=south,lit=false,cracked=false,inverted=true": {
|
||||
"model": "new_soviet:block/tv/green_tv_on", "y": 180, "uvlock": false
|
||||
},
|
||||
"facing=south,lit=true,cracked=false,inverted=true": {
|
||||
"model": "new_soviet:block/tv/green_tv", "y": 180, "uvlock": false
|
||||
},
|
||||
"facing=south,lit=false,cracked=true": [{
|
||||
"model": "new_soviet:block/tv/green_tv_broken1", "y": 180, "uvlock": false
|
||||
},
|
||||
{
|
||||
"model": "new_soviet:block/tv/green_tv_broken2", "y": 180, "uvlock": false
|
||||
},
|
||||
{
|
||||
"model": "new_soviet:block/tv/green_tv_broken3", "y": 180, "uvlock": false
|
||||
}
|
||||
],
|
||||
"facing=south,lit=true,cracked=true": [{
|
||||
"model": "new_soviet:block/tv/green_tv_broken1", "y": 180, "uvlock": false
|
||||
},
|
||||
{
|
||||
"model": "new_soviet:block/tv/green_tv_broken2", "y": 180, "uvlock": false
|
||||
},
|
||||
{
|
||||
"model": "new_soviet:block/tv/green_tv_broken3", "y": 180, "uvlock": false
|
||||
}
|
||||
],
|
||||
|
||||
"facing=west,lit=false,cracked=false,inverted=false": {
|
||||
"model": "new_soviet:block/tv/green_tv", "y": 270, "uvlock": false
|
||||
},
|
||||
"facing=west,lit=true,cracked=false,inverted=false": {
|
||||
"model": "new_soviet:block/tv/green_tv_on", "y": 270, "uvlock": false
|
||||
},
|
||||
"facing=west,lit=false,cracked=false,inverted=true": {
|
||||
"model": "new_soviet:block/tv/green_tv_on", "y": 270, "uvlock": false
|
||||
},
|
||||
"facing=west,lit=true,cracked=false,inverted=true": {
|
||||
"model": "new_soviet:block/tv/green_tv", "y": 270, "uvlock": false
|
||||
},
|
||||
"facing=west,lit=false,cracked=true": [{
|
||||
"model": "new_soviet:block/tv/green_tv_broken1", "y": 270, "uvlock": false
|
||||
},
|
||||
{
|
||||
"model": "new_soviet:block/tv/green_tv_broken2", "y": 270, "uvlock": false
|
||||
},
|
||||
{
|
||||
"model": "new_soviet:block/tv/green_tv_broken3", "y": 270, "uvlock": false
|
||||
}
|
||||
],
|
||||
"facing=west,lit=true,cracked=true": [{
|
||||
"model": "new_soviet:block/tv/green_tv_broken1", "y": 270, "uvlock": false
|
||||
},
|
||||
{
|
||||
"model": "new_soviet:block/tv/green_tv_broken2", "y": 270, "uvlock": false
|
||||
},
|
||||
{
|
||||
"model": "new_soviet:block/tv/green_tv_broken3", "y": 270, "uvlock": false
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
|
@ -487,6 +487,7 @@
|
|||
"subtitles.new_soviet.tv_on": "TV turned on",
|
||||
"subtitles.new_soviet.tv_off": "TV turned off",
|
||||
"subtitles.new_soviet.tv_break": "TV screen shattered",
|
||||
"item.new_soviet.antenna": "Antenna",
|
||||
|
||||
"advancement.new_soviet.root.name": "A New Era",
|
||||
"advancement.new_soviet.root.desc": "Time to create something great",
|
||||
|
@ -499,5 +500,7 @@
|
|||
"advancement.new_soviet.serious_addiction.name": "Serious addiction",
|
||||
"advancement.new_soviet.serious_addiction.desc": "Throw a die 1000 times, and then reevaluate your life choices",
|
||||
"advancement.new_soviet.lucky_throw.name": "Lucky throw",
|
||||
"advancement.new_soviet.lucky_throw.desc": "Roll a perfect die 100 times"
|
||||
"advancement.new_soviet.lucky_throw.desc": "Roll a perfect die 100 times",
|
||||
"advancement.new_soviet.antenna.name": "Establishing a connection",
|
||||
"advancement.new_soviet.antenna.desc": "Craft an antenna"
|
||||
}
|
|
@ -487,6 +487,7 @@
|
|||
"subtitles.new_soviet.tv_on": "Включается тѣлѣвизоръ",
|
||||
"subtitles.new_soviet.tv_off": "Выключается тѣлѣвизоръ",
|
||||
"subtitles.new_soviet.tv_break": "Разбитъ экранъ тѣлѣвизора",
|
||||
"item.new_soviet.antenna": "Антенна",
|
||||
|
||||
"advancement.new_soviet.root.name": "Новыя эра!",
|
||||
"advancement.new_soviet.root.desc": "Врѣмя совѣршать вѣликое!",
|
||||
|
|
|
@ -487,6 +487,7 @@
|
|||
"subtitles.new_soviet.tv_on": "Включается телевизор",
|
||||
"subtitles.new_soviet.tv_off": "Выключается телевизор",
|
||||
"subtitles.new_soviet.tv_break": "Разбит экран телевизора",
|
||||
"item.new_soviet.antenna": "Антенна",
|
||||
|
||||
"advancement.new_soviet.root.name": "Новая эра!",
|
||||
"advancement.new_soviet.root.desc": "Время совершать великое!",
|
||||
|
@ -499,5 +500,7 @@
|
|||
"advancement.new_soviet.serious_addiction.name": "Серьезная зависимость",
|
||||
"advancement.new_soviet.serious_addiction.desc": "Бросьте кубик 1000 раз, а затем переоцените свои жизненные выборы",
|
||||
"advancement.new_soviet.lucky_throw.name": "Счастливый бросок",
|
||||
"advancement.new_soviet.lucky_throw.desc": "Кинуть кубик 100 раз и получить максимально число"
|
||||
"advancement.new_soviet.lucky_throw.desc": "Кинуть кубик 100 раз и получить максимально число",
|
||||
"advancement.new_soviet.antenna.name": "Устанавливаем соединение...",
|
||||
"advancement.new_soviet.antenna.desc": "Сделай антенну"
|
||||
}
|
|
@ -0,0 +1,8 @@
|
|||
{
|
||||
"parent": "new_soviet:block/tv/tv",
|
||||
"textures": {
|
||||
"0": "new_soviet:block/custom/electronics/tv/green_tv",
|
||||
"1": "new_soviet:block/custom/electronics/tv/tv_screen_normal",
|
||||
"2": "new_soviet:block/custom/electronics/tv/carpets/carpet_null"
|
||||
}
|
||||
}
|
|
@ -0,0 +1,6 @@
|
|||
{
|
||||
"parent": "new_soviet:block/tv/green_tv",
|
||||
"textures": {
|
||||
"1": "new_soviet:block/custom/electronics/tv/tv_screen_broken"
|
||||
}
|
||||
}
|
|
@ -0,0 +1,6 @@
|
|||
{
|
||||
"parent": "new_soviet:block/tv/green_tv",
|
||||
"textures": {
|
||||
"1": "new_soviet:block/custom/electronics/tv/tv_screen_broken2"
|
||||
}
|
||||
}
|
|
@ -0,0 +1,6 @@
|
|||
{
|
||||
"parent": "new_soviet:block/tv/green_tv",
|
||||
"textures": {
|
||||
"1": "new_soviet:block/custom/electronics/tv/tv_screen_broken3"
|
||||
}
|
||||
}
|
|
@ -0,0 +1,6 @@
|
|||
{
|
||||
"parent": "new_soviet:block/tv/green_tv",
|
||||
"textures": {
|
||||
"1": "new_soviet:block/custom/electronics/tv/tv_screen_noise"
|
||||
}
|
||||
}
|
|
@ -0,0 +1,6 @@
|
|||
{
|
||||
"parent": "item/generated",
|
||||
"textures": {
|
||||
"layer0": "new_soviet:item/antenna"
|
||||
}
|
||||
}
|
|
@ -3,5 +3,4 @@
|
|||
"textures": {
|
||||
"layer0": "new_soviet:item/dice/dice_d20"
|
||||
}
|
||||
}
|
||||
|
||||
}
|
|
@ -0,0 +1,3 @@
|
|||
{
|
||||
"parent": "new_soviet:block/tv/green_tv"
|
||||
}
|
|
@ -1,5 +1,4 @@
|
|||
{
|
||||
"credit": "Karoter2",
|
||||
"parent": "item/generated",
|
||||
"textures": {
|
||||
"layer0": "new_soviet:item/bulb"
|
||||
|
|
After Width: | Height: | Size: 1.3 KiB |
Before Width: | Height: | Size: 266 B After Width: | Height: | Size: 382 B |
Before Width: | Height: | Size: 520 B After Width: | Height: | Size: 456 B |
Before Width: | Height: | Size: 687 B After Width: | Height: | Size: 416 B |
Before Width: | Height: | Size: 518 B After Width: | Height: | Size: 380 B |
Before Width: | Height: | Size: 469 B After Width: | Height: | Size: 390 B |
Before Width: | Height: | Size: 569 B After Width: | Height: | Size: 437 B |
Before Width: | Height: | Size: 491 B After Width: | Height: | Size: 363 B |
Before Width: | Height: | Size: 576 B After Width: | Height: | Size: 436 B |
Before Width: | Height: | Size: 481 B After Width: | Height: | Size: 407 B |
Before Width: | Height: | Size: 557 B After Width: | Height: | Size: 472 B |
Before Width: | Height: | Size: 434 B After Width: | Height: | Size: 460 B |
Before Width: | Height: | Size: 490 B After Width: | Height: | Size: 472 B |
Before Width: | Height: | Size: 459 B After Width: | Height: | Size: 506 B |
Before Width: | Height: | Size: 366 B After Width: | Height: | Size: 415 B |
Before Width: | Height: | Size: 351 B After Width: | Height: | Size: 368 B |
Before Width: | Height: | Size: 520 B After Width: | Height: | Size: 346 B |
After Width: | Height: | Size: 1.3 KiB |
Before Width: | Height: | Size: 548 B After Width: | Height: | Size: 481 B |
BIN
src/main/resources/assets/new_soviet/textures/item/antenna.png
Normal file
After Width: | Height: | Size: 367 B |