added filter recipe
This commit is contained in:
parent
37f0bab173
commit
75c26b9205
BIN
.mcreator/modElementThumbnails/Filter.png
Normal file
BIN
.mcreator/modElementThumbnails/Filter.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 244 B |
BIN
.mcreator/modElementThumbnails/FilterCrafting.png
Normal file
BIN
.mcreator/modElementThumbnails/FilterCrafting.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 433 B |
|
|
@ -0,0 +1,140 @@
|
|||
{
|
||||
"mod_elements": [
|
||||
{
|
||||
"name": "LandanaSeed",
|
||||
"type": "item",
|
||||
"compiles": true,
|
||||
"locked_code": false,
|
||||
"registry_name": "landana_seed",
|
||||
"metadata": {
|
||||
"files": [
|
||||
"src/main/resources/assets/landanaleaf/items/landana_seed.json",
|
||||
"src/main/resources/assets/landanaleaf/models/item/landana_seed.json",
|
||||
"src/main/java/net/mcreator/landanaleaf/item/LandanaSeedItem.java"
|
||||
]
|
||||
}
|
||||
},
|
||||
{
|
||||
"name": "LandanaBudCured",
|
||||
"type": "item",
|
||||
"compiles": true,
|
||||
"locked_code": false,
|
||||
"registry_name": "landana_bud_cured",
|
||||
"metadata": {
|
||||
"files": [
|
||||
"src/main/java/net/mcreator/landanaleaf/item/LandanaBudCuredItem.java",
|
||||
"src/main/resources/assets/landanaleaf/models/item/landana_bud_cured.json",
|
||||
"src/main/resources/assets/landanaleaf/items/landana_bud_cured.json"
|
||||
]
|
||||
}
|
||||
},
|
||||
{
|
||||
"name": "LandanaBudRaw",
|
||||
"type": "item",
|
||||
"compiles": true,
|
||||
"locked_code": false,
|
||||
"registry_name": "landana_bud_raw",
|
||||
"metadata": {
|
||||
"files": [
|
||||
"src/main/java/net/mcreator/landanaleaf/item/LandanaBudRawItem.java",
|
||||
"src/main/resources/assets/landanaleaf/models/item/landana_bud_raw.json",
|
||||
"src/main/resources/assets/landanaleaf/items/landana_bud_raw.json"
|
||||
]
|
||||
}
|
||||
},
|
||||
{
|
||||
"name": "CuringBudSmoker",
|
||||
"type": "recipe",
|
||||
"compiles": true,
|
||||
"locked_code": false,
|
||||
"registry_name": "curing_bud_smoker",
|
||||
"metadata": {
|
||||
"files": [
|
||||
"src/main/resources/data/landanaleaf/recipe/curing_bud_smoker.json",
|
||||
"src/main/resources/data/landanaleaf/advancement/recipes/curing_bud_smoker.json"
|
||||
]
|
||||
}
|
||||
},
|
||||
{
|
||||
"name": "CuringBudCampfire",
|
||||
"type": "recipe",
|
||||
"compiles": true,
|
||||
"locked_code": false,
|
||||
"registry_name": "curing_bud_campfire",
|
||||
"metadata": {
|
||||
"files": [
|
||||
"src/main/resources/data/landanaleaf/recipe/curing_bud_campfire.json",
|
||||
"src/main/resources/data/landanaleaf/advancement/recipes/curing_bud_campfire.json"
|
||||
]
|
||||
}
|
||||
},
|
||||
{
|
||||
"name": "LandanaTab",
|
||||
"type": "tab",
|
||||
"compiles": true,
|
||||
"locked_code": false,
|
||||
"registry_name": "landana_tab",
|
||||
"metadata": {
|
||||
"files": []
|
||||
}
|
||||
}
|
||||
],
|
||||
"variable_elements": [],
|
||||
"sound_elements": [],
|
||||
"tag_elements": {},
|
||||
"tab_element_order": {},
|
||||
"language_map": {
|
||||
"en_us": {
|
||||
"item.landanaleaf.landana_seed": "Landana Seed",
|
||||
"item.landanaleaf.landana_bud_cured": "Landana Bud Cured",
|
||||
"item.landanaleaf.landana_bud_raw": "Landana Bud Raw",
|
||||
"item_group.landanaleaf.landana_tab": "Landana Leaf"
|
||||
}
|
||||
},
|
||||
"metadata": {
|
||||
"files": [
|
||||
"src/main/java/net/mcreator/landanaleaf/init/LandanaleafModItems.java",
|
||||
"src/main/java/net/mcreator/landanaleaf/mixin/ServerPlayerMixin.java",
|
||||
"src/main/java/net/mcreator/landanaleaf/mixin/RepairItemRecipeMixin.java",
|
||||
"src/main/resources/landanaleaf.mixins.json",
|
||||
"src/main/java/net/mcreator/landanaleaf/mixin/ItemStackMixin.java",
|
||||
"src/main/java/net/mcreator/landanaleaf/event/BlockEvents.java",
|
||||
"src/main/java/net/mcreator/landanaleaf/init/LandanaleafModTabs.java",
|
||||
"src/main/java/net/mcreator/landanaleaf/mixin/LivingEntityMixin.java",
|
||||
"src/main/java/net/mcreator/landanaleaf/mixin/BlockItemMixin.java",
|
||||
"src/main/java/net/mcreator/landanaleaf/mixin/PlayerMixin.java",
|
||||
"src/main/java/net/mcreator/landanaleaf/LandanaleafModClient.java",
|
||||
"src/main/resources/pack.mcmeta",
|
||||
"src/main/java/net/mcreator/landanaleaf/event/PlayerEvents.java",
|
||||
"src/main/java/net/mcreator/landanaleaf/mixin/ExperienceOrbMixin.java",
|
||||
"src/main/java/net/mcreator/landanaleaf/mixin/BoneMealItemMixin.java",
|
||||
"src/main/resources/META-INF/landanaleaf.accesswidener",
|
||||
"src/main/resources/fabric.mod.json",
|
||||
"src/main/java/net/mcreator/landanaleaf/mixin/CommandsMixin.java",
|
||||
"src/main/java/net/mcreator/landanaleaf/event/MiscEvents.java",
|
||||
"src/main/java/net/mcreator/landanaleaf/event/LivingEntityEvents.java",
|
||||
"src/main/java/net/mcreator/landanaleaf/event/ItemEvents.java",
|
||||
"src/main/java/net/mcreator/landanaleaf/LandanaleafMod.java"
|
||||
]
|
||||
},
|
||||
"foldersRoot": {
|
||||
"name": "~",
|
||||
"children": []
|
||||
},
|
||||
"workspaceSettings": {
|
||||
"modid": "landanaleaf",
|
||||
"modName": "LandanaLeaf",
|
||||
"version": "1.0.0",
|
||||
"author": "MCreator",
|
||||
"websiteURL": "https://mcreator.net",
|
||||
"license": "Not specified",
|
||||
"serverSideOnly": false,
|
||||
"requiredMods": [],
|
||||
"dependencies": [],
|
||||
"dependants": [],
|
||||
"mcreatorDependencies": [],
|
||||
"currentGenerator": "fabric-1.21.8",
|
||||
"modElementsPackage": "net.mcreator.landanaleaf"
|
||||
},
|
||||
"mcreatorVersion": 202500345720
|
||||
}
|
||||
67
elements/Filter.mod.json
Normal file
67
elements/Filter.mod.json
Normal file
|
|
@ -0,0 +1,67 @@
|
|||
{
|
||||
"_fv": 79,
|
||||
"_type": "item",
|
||||
"definition": {
|
||||
"renderType": 0,
|
||||
"texture": "paper_filter",
|
||||
"customModelName": "Normal",
|
||||
"guiTexture": "",
|
||||
"customProperties": {},
|
||||
"states": [],
|
||||
"animations": [],
|
||||
"name": "Filter",
|
||||
"rarity": "COMMON",
|
||||
"creativeTabs": [
|
||||
{
|
||||
"value": "CUSTOM:LandanaTab"
|
||||
}
|
||||
],
|
||||
"stackSize": 64,
|
||||
"enchantability": 0,
|
||||
"useDuration": 0,
|
||||
"toolType": 1.0,
|
||||
"damageCount": 0,
|
||||
"recipeRemainder": {
|
||||
"value": ""
|
||||
},
|
||||
"destroyAnyBlock": false,
|
||||
"immuneToFire": false,
|
||||
"isPiglinCurrency": false,
|
||||
"stayInGridWhenCrafting": false,
|
||||
"damageOnCrafting": false,
|
||||
"enableMeleeDamage": false,
|
||||
"damageVsEntity": 0.0,
|
||||
"specialInformation": {
|
||||
"fixedValue": []
|
||||
},
|
||||
"glowCondition": {
|
||||
"fixedValue": false
|
||||
},
|
||||
"inventorySize": 9,
|
||||
"inventoryStackSize": 99,
|
||||
"enableRanged": false,
|
||||
"shootConstantly": false,
|
||||
"rangedItemChargesPower": false,
|
||||
"projectile": {
|
||||
"value": "Arrow"
|
||||
},
|
||||
"projectileDisableAmmoCheck": false,
|
||||
"isFood": false,
|
||||
"nutritionalValue": 4,
|
||||
"saturation": 0.3,
|
||||
"eatResultItem": {
|
||||
"value": ""
|
||||
},
|
||||
"isMeat": false,
|
||||
"isAlwaysEdible": false,
|
||||
"animation": "none",
|
||||
"isMusicDisc": false,
|
||||
"musicDiscMusic": {
|
||||
"value": ""
|
||||
},
|
||||
"musicDiscDescription": "",
|
||||
"musicDiscLengthInTicks": 100,
|
||||
"musicDiscAnalogOutput": 0,
|
||||
"providedBannerPatterns": []
|
||||
}
|
||||
}
|
||||
53
elements/FilterCrafting.mod.json
Normal file
53
elements/FilterCrafting.mod.json
Normal file
|
|
@ -0,0 +1,53 @@
|
|||
{
|
||||
"_fv": 79,
|
||||
"_type": "recipe",
|
||||
"definition": {
|
||||
"recipeType": "Crafting",
|
||||
"recipeRetstackSize": 4,
|
||||
"group": "",
|
||||
"unlockingItems": [
|
||||
{
|
||||
"value": "CUSTOM:Filter"
|
||||
}
|
||||
],
|
||||
"cookingBookCategory": "MISC",
|
||||
"xpReward": 0.0,
|
||||
"cookingTime": 200,
|
||||
"craftingBookCategory": "MISC",
|
||||
"recipeShapeless": true,
|
||||
"recipeSlots": [
|
||||
{
|
||||
"value": ""
|
||||
},
|
||||
{
|
||||
"value": ""
|
||||
},
|
||||
{
|
||||
"value": ""
|
||||
},
|
||||
{
|
||||
"value": ""
|
||||
},
|
||||
{
|
||||
"value": "Items.SHEARS"
|
||||
},
|
||||
{
|
||||
"value": ""
|
||||
},
|
||||
{
|
||||
"value": "Items.PAPER"
|
||||
},
|
||||
{
|
||||
"value": "Items.PAPER"
|
||||
},
|
||||
{
|
||||
"value": ""
|
||||
}
|
||||
],
|
||||
"recipeReturnStack": {
|
||||
"value": "CUSTOM:Filter"
|
||||
},
|
||||
"name": "filter_crafting",
|
||||
"namespace": "mod"
|
||||
}
|
||||
}
|
||||
|
|
@ -77,6 +77,20 @@
|
|||
"metadata": {
|
||||
"files": []
|
||||
}
|
||||
},
|
||||
{
|
||||
"name": "Filter",
|
||||
"type": "item",
|
||||
"compiles": true,
|
||||
"locked_code": false,
|
||||
"registry_name": "filter",
|
||||
"metadata": {
|
||||
"files": [
|
||||
"src/main/resources/assets/landanaleaf/items/filter.json",
|
||||
"src/main/java/net/mcreator/landanaleaf/item/FilterItem.java",
|
||||
"src/main/resources/assets/landanaleaf/models/item/filter.json"
|
||||
]
|
||||
}
|
||||
}
|
||||
],
|
||||
"variable_elements": [],
|
||||
|
|
@ -88,7 +102,8 @@
|
|||
"item.landanaleaf.landana_seed": "Landana Seed",
|
||||
"item.landanaleaf.landana_bud_cured": "Landana Bud Cured",
|
||||
"item.landanaleaf.landana_bud_raw": "Landana Bud Raw",
|
||||
"item_group.landanaleaf.landana_tab": "Landana Leaf"
|
||||
"item_group.landanaleaf.landana_tab": "Landana Leaf",
|
||||
"item.landanaleaf.filter": "Filter"
|
||||
}
|
||||
},
|
||||
"metadata": {
|
||||
|
|
|
|||
|
|
@ -12,6 +12,7 @@ import net.minecraft.core.registries.Registries;
|
|||
import net.mcreator.landanaleaf.item.LandanaSeedItem;
|
||||
import net.mcreator.landanaleaf.item.LandanaBudRawItem;
|
||||
import net.mcreator.landanaleaf.item.LandanaBudCuredItem;
|
||||
import net.mcreator.landanaleaf.item.FilterItem;
|
||||
import net.mcreator.landanaleaf.LandanaleafMod;
|
||||
|
||||
import java.util.function.Function;
|
||||
|
|
@ -20,11 +21,13 @@ public class LandanaleafModItems {
|
|||
public static Item LANDANA_SEED;
|
||||
public static Item LANDANA_BUD_CURED;
|
||||
public static Item LANDANA_BUD_RAW;
|
||||
public static Item FILTER;
|
||||
|
||||
public static void load() {
|
||||
LANDANA_SEED = register("landana_seed", LandanaSeedItem::new);
|
||||
LANDANA_BUD_CURED = register("landana_bud_cured", LandanaBudCuredItem::new);
|
||||
LANDANA_BUD_RAW = register("landana_bud_raw", LandanaBudRawItem::new);
|
||||
FILTER = register("filter", FilterItem::new);
|
||||
}
|
||||
|
||||
// Start of user code block custom items
|
||||
|
|
|
|||
|
|
@ -25,6 +25,7 @@ public class LandanaleafModTabs {
|
|||
tabData.accept(LandanaleafModItems.LANDANA_SEED);
|
||||
tabData.accept(LandanaleafModItems.LANDANA_BUD_CURED);
|
||||
tabData.accept(LandanaleafModItems.LANDANA_BUD_RAW);
|
||||
tabData.accept(LandanaleafModItems.FILTER);
|
||||
}).build());
|
||||
}
|
||||
}
|
||||
|
|
@ -0,0 +1,9 @@
|
|||
package net.mcreator.landanaleaf.item;
|
||||
|
||||
import net.minecraft.world.item.Item;
|
||||
|
||||
public class FilterItem extends Item {
|
||||
public FilterItem(Item.Properties properties) {
|
||||
super(properties);
|
||||
}
|
||||
}
|
||||
6
src/main/resources/assets/landanaleaf/items/filter.json
Normal file
6
src/main/resources/assets/landanaleaf/items/filter.json
Normal file
|
|
@ -0,0 +1,6 @@
|
|||
{
|
||||
"model": {
|
||||
"type": "minecraft:model",
|
||||
"model": "landanaleaf:item/filter"
|
||||
}
|
||||
}
|
||||
|
|
@ -2,5 +2,6 @@
|
|||
"item.landanaleaf.landana_seed": "Landana Seed",
|
||||
"item.landanaleaf.landana_bud_cured": "Landana Bud Cured",
|
||||
"item.landanaleaf.landana_bud_raw": "Landana Bud Raw",
|
||||
"item_group.landanaleaf.landana_tab": "Landana Leaf"
|
||||
"item_group.landanaleaf.landana_tab": "Landana Leaf",
|
||||
"item.landanaleaf.filter": "Filter"
|
||||
}
|
||||
|
|
@ -0,0 +1,6 @@
|
|||
{
|
||||
"parent": "item/generated",
|
||||
"textures": {
|
||||
"layer0": "landanaleaf:item/paper_filter"
|
||||
}
|
||||
}
|
||||
|
|
@ -0,0 +1,32 @@
|
|||
{
|
||||
"parent": "minecraft:recipes/root",
|
||||
"criteria": {
|
||||
"has_the_recipe": {
|
||||
"conditions": {
|
||||
"recipe": "landanaleaf:filter_crafting"
|
||||
},
|
||||
"trigger": "minecraft:recipe_unlocked"
|
||||
},
|
||||
"has_ingredient_0": {
|
||||
"conditions": {
|
||||
"items": [
|
||||
{
|
||||
"items": "landanaleaf:filter"
|
||||
}
|
||||
]
|
||||
},
|
||||
"trigger": "minecraft:inventory_changed"
|
||||
}
|
||||
},
|
||||
"requirements": [
|
||||
[
|
||||
"has_the_recipe",
|
||||
"has_ingredient_0"
|
||||
]
|
||||
],
|
||||
"rewards": {
|
||||
"recipes": [
|
||||
"landanaleaf:filter_crafting"
|
||||
]
|
||||
}
|
||||
}
|
||||
|
|
@ -0,0 +1,13 @@
|
|||
{
|
||||
"type": "minecraft:crafting_shapeless",
|
||||
"category": "misc",
|
||||
"ingredients": [
|
||||
"minecraft:shears",
|
||||
"minecraft:paper",
|
||||
"minecraft:paper"
|
||||
],
|
||||
"result": {
|
||||
"id": "landanaleaf:filter",
|
||||
"count": 4
|
||||
}
|
||||
}
|
||||
Loading…
Reference in a new issue