Initial commit
307
src/main/java/com/spdis/blacksugarmod/BlackSugarModMain.java
Normal file
@@ -0,0 +1,307 @@
|
||||
package com.spdis.blacksugarmod;
|
||||
|
||||
import com.mojang.logging.LogUtils;
|
||||
import net.minecraft.client.Minecraft;
|
||||
import net.minecraft.core.registries.Registries;
|
||||
import net.minecraft.world.effect.MobEffectInstance;
|
||||
import net.minecraft.world.effect.MobEffects;
|
||||
import net.minecraft.world.food.FoodProperties;
|
||||
import net.minecraft.world.item.BlockItem;
|
||||
import net.minecraft.world.item.CreativeModeTab;
|
||||
import net.minecraft.world.item.CreativeModeTabs;
|
||||
import net.minecraft.world.item.Item;
|
||||
import net.minecraft.world.level.block.Block;
|
||||
import net.minecraft.world.level.block.Blocks;
|
||||
import net.minecraft.world.level.block.state.BlockBehaviour;
|
||||
import net.minecraft.world.level.material.MapColor;
|
||||
import net.minecraftforge.api.distmarker.Dist;
|
||||
import net.minecraftforge.common.MinecraftForge;
|
||||
import net.minecraftforge.event.BuildCreativeModeTabContentsEvent;
|
||||
import net.minecraftforge.event.server.ServerStartingEvent;
|
||||
import net.minecraftforge.eventbus.api.IEventBus;
|
||||
import net.minecraftforge.eventbus.api.SubscribeEvent;
|
||||
import net.minecraftforge.fml.common.Mod;
|
||||
import net.minecraftforge.fml.config.ModConfig;
|
||||
import net.minecraftforge.fml.event.lifecycle.FMLClientSetupEvent;
|
||||
import net.minecraftforge.fml.event.lifecycle.FMLCommonSetupEvent;
|
||||
import net.minecraftforge.fml.javafmlmod.FMLJavaModLoadingContext;
|
||||
import net.minecraftforge.registries.DeferredRegister;
|
||||
import net.minecraftforge.registries.ForgeRegistries;
|
||||
import net.minecraftforge.registries.RegistryObject;
|
||||
import org.slf4j.Logger;
|
||||
|
||||
// 这里的值应该与 META-INF/mods.toml 文件中的条目匹配
|
||||
@Mod(BlackSugarModMain.MODID)
|
||||
public class BlackSugarModMain {
|
||||
// 在一个公共位置定义模组ID,供所有地方引用
|
||||
public static final String MODID = "blacksugarmod";
|
||||
// 直接引用slf4j日志记录器
|
||||
private static final Logger LOGGER = LogUtils.getLogger();
|
||||
// 创建一个延迟注册器来保存方块,所有方块都将在"blacksugarmod"命名空间下注册
|
||||
public static final DeferredRegister<Block> BLOCKS = DeferredRegister.create(ForgeRegistries.BLOCKS, MODID);
|
||||
// 创建一个延迟注册器来保存物品,所有物品都将在"blacksugarmod"命名空间下注册
|
||||
public static final DeferredRegister<Item> ITEMS = DeferredRegister.create(ForgeRegistries.ITEMS, MODID);
|
||||
// 创建一个延迟注册器来保存创造模式标签页,所有标签页都将在"blacksugarmod"命名空间下注册
|
||||
public static final DeferredRegister<CreativeModeTab> CREATIVE_MODE_TABS = DeferredRegister.create(Registries.CREATIVE_MODE_TAB, MODID);
|
||||
|
||||
// 创建黑糖物品,ID为"blacksugarmod:black_sugar"// 黑糖物品
|
||||
public static final RegistryObject<Item> BLACK_SUGAR = ITEMS.register("black_sugar",
|
||||
() -> new Item(new Item.Properties()
|
||||
.setId(ITEMS.key("black_sugar"))
|
||||
)
|
||||
);
|
||||
|
||||
// 面团物品
|
||||
public static final RegistryObject<Item> DOUGH = ITEMS.register("dough",
|
||||
() -> new Item(new Item.Properties()
|
||||
.setId(ITEMS.key("dough"))
|
||||
)
|
||||
);
|
||||
|
||||
// 黑糖团子物品,可食用
|
||||
public static final RegistryObject<Item> BLACK_SUGAR_DUMPLING = ITEMS.register("black_sugar_dumpling",
|
||||
() -> new Item(new Item.Properties()
|
||||
.setId(ITEMS.key("black_sugar_dumpling"))
|
||||
.food(new FoodProperties.Builder()
|
||||
.alwaysEdible()
|
||||
.nutrition(4)
|
||||
.saturationModifier(9.6f)
|
||||
.build()
|
||||
)
|
||||
)
|
||||
);
|
||||
|
||||
// 脆香bro物品,可食用
|
||||
public static final RegistryObject<Item> CRISPY_BRO = ITEMS.register("crispy_bro",
|
||||
() -> new Item(new Item.Properties()
|
||||
.setId(ITEMS.key("crispy_bro"))
|
||||
.food(new FoodProperties.Builder()
|
||||
.alwaysEdible()
|
||||
.nutrition(6)
|
||||
.saturationModifier(8.0f)
|
||||
.build()
|
||||
)
|
||||
)
|
||||
);
|
||||
|
||||
// 食用油物品
|
||||
public static final RegistryObject<Item> COOKING_OIL = ITEMS.register("cooking_oil",
|
||||
() -> new Item(new Item.Properties()
|
||||
.setId(ITEMS.key("cooking_oil"))
|
||||
)
|
||||
);
|
||||
|
||||
// 坚不可摧的海星物品
|
||||
public static final RegistryObject<Item> INDESTRUCTIBLE_STARFISH = ITEMS.register("indestructible_starfish",
|
||||
() -> new Item(new Item.Properties()
|
||||
.setId(ITEMS.key("indestructible_starfish"))
|
||||
)
|
||||
);
|
||||
|
||||
// 串海星物品
|
||||
public static final RegistryObject<Item> STARFISH_SKEWER = ITEMS.register("starfish_skewer",
|
||||
() -> new Item(new Item.Properties()
|
||||
.setId(ITEMS.key("starfish_skewer"))
|
||||
)
|
||||
);
|
||||
|
||||
// 棉花糖物品
|
||||
public static final RegistryObject<Item> MARSHMALLOW = ITEMS.register("marshmallow",
|
||||
() -> new Item(new Item.Properties()
|
||||
.setId(ITEMS.key("marshmallow"))
|
||||
)
|
||||
);
|
||||
|
||||
// 烤棉花糖物品,可食用
|
||||
public static final RegistryObject<Item> ROASTED_MARSHMALLOW = ITEMS.register("roasted_marshmallow",
|
||||
() -> new Item(new Item.Properties()
|
||||
.setId(ITEMS.key("roasted_marshmallow"))
|
||||
.food(new FoodProperties.Builder()
|
||||
.alwaysEdible()
|
||||
.nutrition(3)
|
||||
.saturationModifier(5.0f)
|
||||
.build()
|
||||
)
|
||||
)
|
||||
);
|
||||
|
||||
// 致癌的棉花糖物品,可食用
|
||||
public static final RegistryObject<Item> CARCINOGENIC_MARSHMALLOW = ITEMS.register("carcinogenic_marshmallow",
|
||||
() -> new Item(new Item.Properties()
|
||||
.setId(ITEMS.key("carcinogenic_marshmallow"))
|
||||
.food(new FoodProperties.Builder()
|
||||
.alwaysEdible()
|
||||
.nutrition(2)
|
||||
.saturationModifier(3.0f)
|
||||
.build()
|
||||
)
|
||||
)
|
||||
);
|
||||
|
||||
// 萨卡班甲鱼物品
|
||||
public static final RegistryObject<Item> SAKABAN_TURTLE = ITEMS.register("sakaban_turtle",
|
||||
() -> new Item(new Item.Properties()
|
||||
.setId(ITEMS.key("sakaban_turtle"))
|
||||
)
|
||||
);
|
||||
|
||||
// 葱花物品
|
||||
public static final RegistryObject<Item> SCALLION = ITEMS.register("scallion",
|
||||
() -> new Item(new Item.Properties()
|
||||
.setId(ITEMS.key("scallion"))
|
||||
)
|
||||
);
|
||||
|
||||
// 腌制的甲鱼物品
|
||||
public static final RegistryObject<Item> PICKLED_TURTLE = ITEMS.register("pickled_turtle",
|
||||
() -> new Item(new Item.Properties()
|
||||
.setId(ITEMS.key("pickled_turtle"))
|
||||
)
|
||||
);
|
||||
|
||||
// 一只觉得嘴里淡淡的小猫咪物品
|
||||
public static final RegistryObject<Item> BLAND_KITTEN = ITEMS.register("bland_kitten",
|
||||
() -> new Item(new Item.Properties()
|
||||
.setId(ITEMS.key("bland_kitten"))
|
||||
)
|
||||
);
|
||||
|
||||
// 一只心怀歹念的小猫咪物品,可食用
|
||||
public static final RegistryObject<Item> MALICIOUS_KITTEN = ITEMS.register("malicious_kitten",
|
||||
() -> new Item(new Item.Properties()
|
||||
.setId(ITEMS.key("malicious_kitten"))
|
||||
.food(new FoodProperties.Builder()
|
||||
.alwaysEdible()
|
||||
.nutrition(8)
|
||||
.saturationModifier(12.0f)
|
||||
.build()
|
||||
)
|
||||
)
|
||||
);
|
||||
|
||||
// 香喷喷的串海星物品,可食用
|
||||
public static final RegistryObject<Item> FRAGRANT_STARFISH_SKEWER = ITEMS.register("fragrant_starfish_skewer",
|
||||
() -> new Item(new Item.Properties()
|
||||
.setId(ITEMS.key("fragrant_starfish_skewer"))
|
||||
.food(new FoodProperties.Builder()
|
||||
.alwaysEdible()
|
||||
.nutrition(7)
|
||||
.saturationModifier(10.0f)
|
||||
.build()
|
||||
)
|
||||
)
|
||||
);
|
||||
|
||||
// 一锅牢菜物品
|
||||
public static final RegistryObject<Item> POT_OF_PRISON_VEGETABLES = ITEMS.register("pot_of_prison_vegetables",
|
||||
() -> new Item(new Item.Properties()
|
||||
.setId(ITEMS.key("pot_of_prison_vegetables"))
|
||||
)
|
||||
);
|
||||
|
||||
// 闷牢菜物品,可食用
|
||||
public static final RegistryObject<Item> BRAISED_PRISON_VEGETABLES = ITEMS.register("braised_prison_vegetables",
|
||||
() -> new Item(new Item.Properties()
|
||||
.setId(ITEMS.key("braised_prison_vegetables"))
|
||||
.food(new FoodProperties.Builder()
|
||||
.alwaysEdible()
|
||||
.nutrition(5)
|
||||
.saturationModifier(7.0f)
|
||||
.build()
|
||||
)
|
||||
)
|
||||
);
|
||||
|
||||
// 碳烤甲鱼物品,可食用
|
||||
public static final RegistryObject<Item> CHARCOAL_GRILLED_TURTLE = ITEMS.register("charcoal_grilled_turtle",
|
||||
() -> new Item(new Item.Properties()
|
||||
.setId(ITEMS.key("charcoal_grilled_turtle"))
|
||||
.food(new FoodProperties.Builder()
|
||||
.alwaysEdible()
|
||||
.nutrition(9)
|
||||
.saturationModifier(14.0f)
|
||||
.build()
|
||||
)
|
||||
)
|
||||
);
|
||||
|
||||
public BlackSugarModMain(FMLJavaModLoadingContext context) {
|
||||
IEventBus modEventBus = context.getModEventBus();
|
||||
|
||||
// 为模组加载注册commonSetup方法
|
||||
modEventBus.addListener(this::commonSetup);
|
||||
// 将延迟注册器注册到模组事件总线,以便方块得到注册
|
||||
BLOCKS.register(modEventBus);
|
||||
// 将延迟注册器注册到模组事件总线,以便物品得到注册
|
||||
ITEMS.register(modEventBus);
|
||||
// 将延迟注册器注册到模组事件总线,以便标签页得到注册
|
||||
CREATIVE_MODE_TABS.register(modEventBus);
|
||||
|
||||
// 为我们感兴趣的服务器和其他游戏事件注册自己
|
||||
MinecraftForge.EVENT_BUS.register(this);
|
||||
|
||||
// 将物品注册到创造模式标签页
|
||||
modEventBus.addListener(this::addCreative);
|
||||
|
||||
// 注册我们模组的ForgeConfigSpec,以便Forge可以为我们创建和加载配置文件
|
||||
context.registerConfig(ModConfig.Type.COMMON, Config.SPEC);
|
||||
}
|
||||
|
||||
// 将示例方块物品添加到建筑方块标签页
|
||||
private void addCreative(BuildCreativeModeTabContentsEvent event) {
|
||||
// 将黑糖物品添加到食物和饮品标签页
|
||||
if (event.getTabKey() == CreativeModeTabs.FOOD_AND_DRINKS) {
|
||||
event.accept(BLACK_SUGAR);
|
||||
event.accept(DOUGH);
|
||||
event.accept(BLACK_SUGAR_DUMPLING);
|
||||
event.accept(CRISPY_BRO);
|
||||
event.accept(COOKING_OIL);
|
||||
event.accept(INDESTRUCTIBLE_STARFISH);
|
||||
event.accept(STARFISH_SKEWER);
|
||||
event.accept(MARSHMALLOW);
|
||||
event.accept(ROASTED_MARSHMALLOW);
|
||||
event.accept(CARCINOGENIC_MARSHMALLOW);
|
||||
event.accept(SAKABAN_TURTLE);
|
||||
event.accept(SCALLION);
|
||||
event.accept(PICKLED_TURTLE);
|
||||
event.accept(BLAND_KITTEN);
|
||||
event.accept(MALICIOUS_KITTEN);
|
||||
event.accept(FRAGRANT_STARFISH_SKEWER);
|
||||
event.accept(POT_OF_PRISON_VEGETABLES);
|
||||
event.accept(BRAISED_PRISON_VEGETABLES);
|
||||
event.accept(CHARCOAL_GRILLED_TURTLE);
|
||||
}
|
||||
}
|
||||
|
||||
private void commonSetup(final FMLCommonSetupEvent event) {
|
||||
// 一些通用设置代码
|
||||
LOGGER.info("HELLO FROM COMMON SETUP");
|
||||
|
||||
if (Config.logDirtBlock)
|
||||
LOGGER.info("DIRT BLOCK >> {}", ForgeRegistries.BLOCKS.getKey(Blocks.DIRT));
|
||||
|
||||
LOGGER.info(Config.magicNumberIntroduction + Config.magicNumber);
|
||||
|
||||
Config.items.forEach((item) -> LOGGER.info("ITEM >> {}", item.toString()));
|
||||
}
|
||||
|
||||
|
||||
|
||||
// 你可以使用SubscribeEvent并让事件总线发现要调用的方法
|
||||
@SubscribeEvent
|
||||
public void onServerStarting(ServerStartingEvent event) {
|
||||
// 当服务器启动时执行某些操作
|
||||
LOGGER.info("HELLO from server starting");
|
||||
}
|
||||
|
||||
// 你可以使用EventBusSubscriber来自动注册类中所有带有@SubscribeEvent注解的静态方法
|
||||
@Mod.EventBusSubscriber(modid = MODID, bus = Mod.EventBusSubscriber.Bus.MOD, value = Dist.CLIENT)
|
||||
public static class ClientModEvents {
|
||||
@SubscribeEvent
|
||||
public static void onClientSetup(FMLClientSetupEvent event) {
|
||||
// 一些客户端设置代码
|
||||
LOGGER.info("HELLO FROM CLIENT SETUP");
|
||||
LOGGER.info("MINECRAFT NAME >> {}", Minecraft.getInstance().getUser().getName());
|
||||
}
|
||||
}
|
||||
}
|
||||
60
src/main/java/com/spdis/blacksugarmod/Config.java
Normal file
@@ -0,0 +1,60 @@
|
||||
package com.spdis.blacksugarmod;
|
||||
|
||||
import net.minecraft.resources.ResourceLocation;
|
||||
import net.minecraft.world.item.Item;
|
||||
import net.minecraftforge.common.ForgeConfigSpec;
|
||||
import net.minecraftforge.eventbus.api.SubscribeEvent;
|
||||
import net.minecraftforge.fml.common.Mod;
|
||||
import net.minecraftforge.fml.event.config.ModConfigEvent;
|
||||
import net.minecraftforge.registries.ForgeRegistries;
|
||||
|
||||
import java.util.List;
|
||||
import java.util.Set;
|
||||
import java.util.stream.Collectors;
|
||||
|
||||
// An example config class. This is not required, but it's a good idea to have one to keep your config organized.
|
||||
// Demonstrates how to use Forge's config APIs
|
||||
@Mod.EventBusSubscriber(modid = BlackSugarModMain.MODID, bus = Mod.EventBusSubscriber.Bus.MOD)
|
||||
public class Config {
|
||||
private static final ForgeConfigSpec.Builder BUILDER = new ForgeConfigSpec.Builder();
|
||||
|
||||
private static final ForgeConfigSpec.BooleanValue LOG_DIRT_BLOCK = BUILDER
|
||||
.comment("Whether to log the dirt block on common setup")
|
||||
.define("logDirtBlock", true);
|
||||
|
||||
private static final ForgeConfigSpec.IntValue MAGIC_NUMBER = BUILDER
|
||||
.comment("A magic number")
|
||||
.defineInRange("magicNumber", 42, 0, Integer.MAX_VALUE);
|
||||
|
||||
public static final ForgeConfigSpec.ConfigValue<String> MAGIC_NUMBER_INTRODUCTION = BUILDER
|
||||
.comment("What you want the introduction message to be for the magic number")
|
||||
.define("magicNumberIntroduction", "The magic number is... ");
|
||||
|
||||
// a list of strings that are treated as resource locations for items
|
||||
private static final ForgeConfigSpec.ConfigValue<List<? extends String>> ITEM_STRINGS = BUILDER
|
||||
.comment("A list of items to log on common setup.")
|
||||
.defineListAllowEmpty("assets/blacksugarmod/items", List.of("minecraft:iron_ingot"), Config::validateItemName);
|
||||
|
||||
static final ForgeConfigSpec SPEC = BUILDER.build();
|
||||
|
||||
public static boolean logDirtBlock;
|
||||
public static int magicNumber;
|
||||
public static String magicNumberIntroduction;
|
||||
public static Set<Item> items;
|
||||
|
||||
private static boolean validateItemName(final Object obj) {
|
||||
return obj instanceof final String itemName && ForgeRegistries.ITEMS.containsKey(ResourceLocation.tryParse(itemName));
|
||||
}
|
||||
|
||||
@SubscribeEvent
|
||||
static void onLoad(final ModConfigEvent event) {
|
||||
logDirtBlock = LOG_DIRT_BLOCK.get();
|
||||
magicNumber = MAGIC_NUMBER.get();
|
||||
magicNumberIntroduction = MAGIC_NUMBER_INTRODUCTION.get();
|
||||
|
||||
// convert the list of strings into a set of items
|
||||
items = ITEM_STRINGS.get().stream()
|
||||
.map(itemName -> ForgeRegistries.ITEMS.getValue(ResourceLocation.tryParse(itemName)))
|
||||
.collect(Collectors.toSet());
|
||||
}
|
||||
}
|
||||
73
src/main/resources/META-INF/mods.toml
Normal file
@@ -0,0 +1,73 @@
|
||||
# This is an example mods.toml file. It contains the data relating to the loading mods.
|
||||
# There are several mandatory fields (#mandatory), and many more that are optional (#optional).
|
||||
# The overall format is standard TOML format, v0.5.0.
|
||||
# Note that there are a couple of TOML lists in this file.
|
||||
# Find more information on toml format here: https://github.com/toml-lang/toml
|
||||
# The name of the mod loader type to load - for regular FML @Mod mods it should be javafml
|
||||
modLoader="javafml" #mandatory
|
||||
# A version range to match for said mod loader - for regular FML @Mod it will be the forge version
|
||||
loaderVersion="${loader_version_range}" #mandatory This is typically bumped every Minecraft version by Forge. See our download page for lists of versions.
|
||||
# The license for you mod. This is mandatory metadata and allows for easier comprehension of your redistributive properties.
|
||||
# Review your options at https://choosealicense.com/. All rights reserved is the default copyright stance, and is thus the default here.
|
||||
license="${mod_license}"
|
||||
# A URL to refer people to when problems occur with this mod
|
||||
#issueTrackerURL="https://change.me.to.your.issue.tracker.example.invalid/" #optional
|
||||
# If your mod is purely client-side and has no multiplayer functionality (be it dedicated servers or Open to LAN),
|
||||
# set this to true, and Forge will set the correct displayTest for you and skip loading your mod on dedicated servers.
|
||||
#clientSideOnly=true #optional - defaults to false if absent
|
||||
# A list of mods - how many allowed here is determined by the individual mod loader
|
||||
[[mods]] #mandatory
|
||||
# The modid of the mod
|
||||
modId="${mod_id}" #mandatory
|
||||
# The version number of the mod
|
||||
version="${mod_version}" #mandatory
|
||||
# A display name for the mod
|
||||
displayName="${mod_name}" #mandatory
|
||||
# A URL to query for updates for this mod. See the JSON update specification https://docs.minecraftforge.net/en/latest/misc/updatechecker/
|
||||
#updateJSONURL="https://change.me.example.invalid/updates.json" #optional
|
||||
# A URL for the "homepage" for this mod, displayed in the mod UI
|
||||
#displayURL="https://change.me.to.your.mods.homepage.example.invalid/" #optional
|
||||
# A file name (in the root of the mod JAR) containing a logo for display
|
||||
#logoFile="examplemod.png" #optional
|
||||
# A text field displayed in the mod UI
|
||||
#credits="" #optional
|
||||
# A text field displayed in the mod UI
|
||||
authors="${mod_authors}" #optional
|
||||
# Display Test controls the display for your mod in the server connection screen
|
||||
# MATCH_VERSION means that your mod will cause a red X if the versions on client and server differ. This is the default behaviour and should be what you choose if you have server and client elements to your mod.
|
||||
# IGNORE_SERVER_VERSION means that your mod will not cause a red X if it's present on the server but not on the client. This is what you should use if you're a server only mod.
|
||||
# IGNORE_ALL_VERSION means that your mod will not cause a red X if it's present on the client or the server. This is a special case and should only be used if your mod has no server component.
|
||||
# NONE means that no display test is set on your mod. You need to do this yourself, see IExtensionPoint.DisplayTest for more information. You can define any scheme you wish with this value.
|
||||
# IMPORTANT NOTE: this is NOT an instruction as to which environments (CLIENT or DEDICATED SERVER) your mod loads on. Your mod should load (and maybe do nothing!) whereever it finds itself.
|
||||
#displayTest="MATCH_VERSION" # if nothing is specified, MATCH_VERSION is the default when clientSideOnly=false, otherwise IGNORE_ALL_VERSION when clientSideOnly=true (#optional)
|
||||
|
||||
# The description text for the mod (multi line!) (#mandatory)
|
||||
description='''${mod_description}'''
|
||||
# A dependency - use the . to indicate dependency for a specific modid. Dependencies are optional.
|
||||
[[dependencies.${mod_id}]] #optional
|
||||
# the modid of the dependency
|
||||
modId="forge" #mandatory
|
||||
# Does this dependency have to exist - if not, ordering below must be specified
|
||||
mandatory=true #mandatory
|
||||
# The version range of the dependency
|
||||
versionRange="${forge_version_range}" #mandatory
|
||||
# An ordering relationship for the dependency - BEFORE or AFTER required if the dependency is not mandatory
|
||||
# BEFORE - This mod is loaded BEFORE the dependency
|
||||
# AFTER - This mod is loaded AFTER the dependency
|
||||
ordering="NONE"
|
||||
# Side this dependency is applied on - BOTH, CLIENT, or SERVER
|
||||
side="BOTH"
|
||||
# Here's another dependency
|
||||
[[dependencies.${mod_id}]]
|
||||
modId="minecraft"
|
||||
mandatory=true
|
||||
# This version range declares a minimum of the current minecraft version up to but not including the next major version
|
||||
versionRange="${minecraft_version_range}"
|
||||
ordering="NONE"
|
||||
side="BOTH"
|
||||
|
||||
# Features are specific properties of the game environment, that you may want to declare you require. This example declares
|
||||
# that your mod requires GL version 3.2 or higher. Other features will be added. They are side aware so declaring this won't
|
||||
# stop your mod loading on the server for example.
|
||||
#[features.${mod_id}]
|
||||
#openGLVersion="[3.2,)"
|
||||
@@ -0,0 +1,6 @@
|
||||
{
|
||||
"model": {
|
||||
"type": "minecraft:model",
|
||||
"model": "blacksugarmod:item/black_sugar"
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,6 @@
|
||||
{
|
||||
"model": {
|
||||
"type": "minecraft:model",
|
||||
"model": "blacksugarmod:item/black_sugar_dumpling"
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,6 @@
|
||||
{
|
||||
"model": {
|
||||
"type": "minecraft:model",
|
||||
"model": "blacksugarmod:item/bland_kitten"
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,6 @@
|
||||
{
|
||||
"model": {
|
||||
"type": "minecraft:model",
|
||||
"model": "blacksugarmod:item/braised_prison_vegetables"
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,6 @@
|
||||
{
|
||||
"model": {
|
||||
"type": "minecraft:model",
|
||||
"model": "blacksugarmod:item/carcinogenic_marshmallow"
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,6 @@
|
||||
{
|
||||
"model": {
|
||||
"type": "minecraft:model",
|
||||
"model": "blacksugarmod:item/charcoal_grilled_turtle"
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,6 @@
|
||||
{
|
||||
"model": {
|
||||
"type": "minecraft:model",
|
||||
"model": "blacksugarmod:item/cooking_oil"
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,6 @@
|
||||
{
|
||||
"model": {
|
||||
"type": "minecraft:model",
|
||||
"model": "blacksugarmod:item/crispy_bro"
|
||||
}
|
||||
}
|
||||
6
src/main/resources/assets/blacksugarmod/items/dough.json
Normal file
@@ -0,0 +1,6 @@
|
||||
{
|
||||
"model": {
|
||||
"type": "minecraft:model",
|
||||
"model": "blacksugarmod:item/dough"
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,6 @@
|
||||
{
|
||||
"model": {
|
||||
"type": "minecraft:model",
|
||||
"model": "blacksugarmod:item/fragrant_starfish_skewer"
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,6 @@
|
||||
{
|
||||
"model": {
|
||||
"type": "minecraft:model",
|
||||
"model": "blacksugarmod:item/indestructible_starfish"
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,6 @@
|
||||
{
|
||||
"model": {
|
||||
"type": "minecraft:model",
|
||||
"model": "blacksugarmod:item/malicious_kitten"
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,6 @@
|
||||
{
|
||||
"model": {
|
||||
"type": "minecraft:model",
|
||||
"model": "blacksugarmod:item/marshmallow"
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,6 @@
|
||||
{
|
||||
"model": {
|
||||
"type": "minecraft:model",
|
||||
"model": "blacksugarmod:item/pickled_turtle"
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,6 @@
|
||||
{
|
||||
"model": {
|
||||
"type": "minecraft:model",
|
||||
"model": "blacksugarmod:item/pot_of_prison_vegetables"
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,6 @@
|
||||
{
|
||||
"model": {
|
||||
"type": "minecraft:model",
|
||||
"model": "blacksugarmod:item/roasted_marshmallow"
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,6 @@
|
||||
{
|
||||
"model": {
|
||||
"type": "minecraft:model",
|
||||
"model": "blacksugarmod:item/sakaban_turtle"
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,6 @@
|
||||
{
|
||||
"model": {
|
||||
"type": "minecraft:model",
|
||||
"model": "blacksugarmod:item/scallion"
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,6 @@
|
||||
{
|
||||
"model": {
|
||||
"type": "minecraft:model",
|
||||
"model": "blacksugarmod:item/starfish_skewer"
|
||||
}
|
||||
}
|
||||
5
src/main/resources/assets/blacksugarmod/lang/en_us.json
Normal file
@@ -0,0 +1,5 @@
|
||||
{
|
||||
"item.blacksugarmod.black_sugar": "Black Sugar",
|
||||
"item.blacksugarmod.dough": "Dough",
|
||||
"item.blacksugarmod.black_sugar_dumpling": "Black Sugar Dumpling"
|
||||
}
|
||||
21
src/main/resources/assets/blacksugarmod/lang/zh_cn.json
Normal file
@@ -0,0 +1,21 @@
|
||||
{
|
||||
"item.blacksugarmod.black_sugar": "黑糖",
|
||||
"item.blacksugarmod.dough": "面团",
|
||||
"item.blacksugarmod.black_sugar_dumpling": "黑糖团子",
|
||||
"item.blacksugarmod.crispy_bro": "脆香bro",
|
||||
"item.blacksugarmod.cooking_oil": "食用油",
|
||||
"item.blacksugarmod.indestructible_starfish": "坚不可摧的海星",
|
||||
"item.blacksugarmod.starfish_skewer": "海星串",
|
||||
"item.blacksugarmod.marshmallow": "棉花糖",
|
||||
"item.blacksugarmod.roasted_marshmallow": "烤棉花糖",
|
||||
"item.blacksugarmod.carcinogenic_marshmallow": "致癌的棉花糖",
|
||||
"item.blacksugarmod.sakaban_turtle": "萨卡班甲鱼",
|
||||
"item.blacksugarmod.scallion": "葱花",
|
||||
"item.blacksugarmod.pickled_turtle": "腌好的萨卡班甲鱼",
|
||||
"item.blacksugarmod.bland_kitten": "一只觉得嘴里淡淡的小猫咪",
|
||||
"item.blacksugarmod.malicious_kitten": "一只心怀歹念的小猫咪",
|
||||
"item.blacksugarmod.fragrant_starfish_skewer": "香喷喷的串海星",
|
||||
"item.blacksugarmod.pot_of_prison_vegetables": "一锅牢菜",
|
||||
"item.blacksugarmod.braised_prison_vegetables": "闷牢菜",
|
||||
"item.blacksugarmod.charcoal_grilled_turtle": "炭烤萨卡班甲鱼"
|
||||
}
|
||||
@@ -0,0 +1,6 @@
|
||||
{
|
||||
"parent": "minecraft:item/generated",
|
||||
"textures": {
|
||||
"layer0": "blacksugarmod:item/black_sugar"
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,6 @@
|
||||
{
|
||||
"parent": "minecraft:item/generated",
|
||||
"textures": {
|
||||
"layer0": "blacksugarmod:item/black_sugar_dumpling"
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,6 @@
|
||||
{
|
||||
"parent": "minecraft:item/generated",
|
||||
"textures": {
|
||||
"layer0": "blacksugarmod:item/bland_kitten"
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,6 @@
|
||||
{
|
||||
"parent": "minecraft:item/generated",
|
||||
"textures": {
|
||||
"layer0": "blacksugarmod:item/braised_prison_vegetables"
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,6 @@
|
||||
{
|
||||
"parent": "minecraft:item/generated",
|
||||
"textures": {
|
||||
"layer0": "blacksugarmod:item/carcinogenic_marshmallow"
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,6 @@
|
||||
{
|
||||
"parent": "minecraft:item/generated",
|
||||
"textures": {
|
||||
"layer0": "blacksugarmod:item/charcoal_grilled_turtle"
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,6 @@
|
||||
{
|
||||
"parent": "minecraft:item/generated",
|
||||
"textures": {
|
||||
"layer0": "blacksugarmod:item/cooking_oil"
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,6 @@
|
||||
{
|
||||
"parent": "minecraft:item/generated",
|
||||
"textures": {
|
||||
"layer0": "blacksugarmod:item/crispy_bro"
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,6 @@
|
||||
{
|
||||
"parent": "minecraft:item/generated",
|
||||
"textures": {
|
||||
"layer0": "blacksugarmod:item/dough"
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,6 @@
|
||||
{
|
||||
"parent": "minecraft:item/generated",
|
||||
"textures": {
|
||||
"layer0": "blacksugarmod:item/fragrant_starfish_skewer"
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,6 @@
|
||||
{
|
||||
"parent": "minecraft:item/generated",
|
||||
"textures": {
|
||||
"layer0": "blacksugarmod:item/indestructible_starfish"
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,6 @@
|
||||
{
|
||||
"parent": "minecraft:item/generated",
|
||||
"textures": {
|
||||
"layer0": "blacksugarmod:item/malicious_kitten"
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,6 @@
|
||||
{
|
||||
"parent": "minecraft:item/generated",
|
||||
"textures": {
|
||||
"layer0": "blacksugarmod:item/marshmallow"
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,6 @@
|
||||
{
|
||||
"parent": "minecraft:item/generated",
|
||||
"textures": {
|
||||
"layer0": "blacksugarmod:item/pickled_turtle"
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,6 @@
|
||||
{
|
||||
"parent": "minecraft:item/generated",
|
||||
"textures": {
|
||||
"layer0": "blacksugarmod:item/pot_of_prison_vegetables"
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,6 @@
|
||||
{
|
||||
"parent": "minecraft:item/generated",
|
||||
"textures": {
|
||||
"layer0": "blacksugarmod:item/roasted_marshmallow"
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,6 @@
|
||||
{
|
||||
"parent": "minecraft:item/generated",
|
||||
"textures": {
|
||||
"layer0": "blacksugarmod:item/sakaban_turtle"
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,6 @@
|
||||
{
|
||||
"parent": "minecraft:item/generated",
|
||||
"textures": {
|
||||
"layer0": "blacksugarmod:item/scallion"
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,6 @@
|
||||
{
|
||||
"parent": "minecraft:item/generated",
|
||||
"textures": {
|
||||
"layer0": "blacksugarmod:item/starfish_skewer"
|
||||
}
|
||||
}
|
||||
|
After Width: | Height: | Size: 2.2 KiB |
|
After Width: | Height: | Size: 1.4 KiB |
|
After Width: | Height: | Size: 2.0 KiB |
|
After Width: | Height: | Size: 2.8 KiB |
|
After Width: | Height: | Size: 1.7 KiB |
|
After Width: | Height: | Size: 1.9 KiB |
|
After Width: | Height: | Size: 2.1 KiB |
|
After Width: | Height: | Size: 1.6 KiB |
BIN
src/main/resources/assets/blacksugarmod/textures/item/dough.png
Normal file
|
After Width: | Height: | Size: 1.6 KiB |
|
After Width: | Height: | Size: 1.6 KiB |
|
After Width: | Height: | Size: 2.0 KiB |
|
After Width: | Height: | Size: 2.2 KiB |
|
After Width: | Height: | Size: 1.6 KiB |
|
After Width: | Height: | Size: 1.3 KiB |
|
After Width: | Height: | Size: 2.7 KiB |
|
After Width: | Height: | Size: 2.2 KiB |
|
After Width: | Height: | Size: 1.3 KiB |
|
After Width: | Height: | Size: 1.9 KiB |
|
After Width: | Height: | Size: 1.9 KiB |
@@ -0,0 +1,10 @@
|
||||
{
|
||||
"type": "minecraft:smelting",
|
||||
"experience": 0.1,
|
||||
"cookingtime": 100,
|
||||
"ingredient": "minecraft:sugar_cane",
|
||||
"result":{
|
||||
"id":"blacksugarmod:black_sugar",
|
||||
"count": 1
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,16 @@
|
||||
{
|
||||
"type": "minecraft:crafting_shaped",
|
||||
"key": {
|
||||
"B":"blacksugarmod:black_sugar",
|
||||
"D":"blacksugarmod:dough"
|
||||
},
|
||||
"pattern": [
|
||||
"BBB",
|
||||
"BDB",
|
||||
"BBB"
|
||||
],
|
||||
"result": {
|
||||
"id": "blacksugarmod:black_sugar_dumpling",
|
||||
"count": 2
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,10 @@
|
||||
{
|
||||
"type": "minecraft:smelting",
|
||||
"experience": 0.35,
|
||||
"cookingtime": 400,
|
||||
"ingredient": "blacksugarmod:pot_of_prison_vegetables",
|
||||
"result": {
|
||||
"id": "blacksugarmod:braised_prison_vegetables",
|
||||
"count": 1
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,10 @@
|
||||
{
|
||||
"type": "minecraft:campfire_cooking",
|
||||
"experience": 0.35,
|
||||
"cookingtime": 100,
|
||||
"ingredient": "blacksugarmod:marshmallow",
|
||||
"result": {
|
||||
"id": "blacksugarmod:carcinogenic_marshmallow",
|
||||
"count": 1
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,10 @@
|
||||
{
|
||||
"type": "minecraft:campfire_cooking",
|
||||
"experience": 0.35,
|
||||
"cookingtime": 200,
|
||||
"ingredient": "blacksugarmod:pickled_turtle",
|
||||
"result": {
|
||||
"id": "blacksugarmod:charcoal_grilled_turtle",
|
||||
"count": 1
|
||||
}
|
||||
}
|
||||
12
src/main/resources/data/blacksugarmod/recipe/crispy_bro.json
Normal file
@@ -0,0 +1,12 @@
|
||||
{
|
||||
"type": "minecraft:crafting_shapeless",
|
||||
"ingredients": [
|
||||
"minecraft:bone",
|
||||
"blacksugarmod:cooking_oil",
|
||||
"blacksugarmod:scallion"
|
||||
],
|
||||
"result": {
|
||||
"id": "blacksugarmod:crispy_bro",
|
||||
"count": 1
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,12 @@
|
||||
{
|
||||
"type": "minecraft:crafting_shapeless",
|
||||
"ingredients": [
|
||||
"minecraft:wheat",
|
||||
"minecraft:water_bucket",
|
||||
"minecraft:wheat"
|
||||
],
|
||||
"result": {
|
||||
"id": "blacksugarmod:dough",
|
||||
"count": 2
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,10 @@
|
||||
{
|
||||
"type": "minecraft:campfire_cooking",
|
||||
"experience": 0.35,
|
||||
"cookingtime": 200,
|
||||
"ingredient": "blacksugarmod:starfish_skewer",
|
||||
"result": {
|
||||
"id": "blacksugarmod:fragrant_starfish_skewer",
|
||||
"count": 1
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,13 @@
|
||||
{
|
||||
"type": "minecraft:crafting_shapeless",
|
||||
"ingredients": [
|
||||
"blacksugarmod:bland_kitten",
|
||||
"blacksugarmod:cooking_oil",
|
||||
"blacksugarmod:scallion",
|
||||
"minecraft:nether_wart"
|
||||
],
|
||||
"result": {
|
||||
"id": "blacksugarmod:malicious_kitten",
|
||||
"count": 1
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,12 @@
|
||||
{
|
||||
"type": "minecraft:crafting_shapeless",
|
||||
"ingredients": [
|
||||
"blacksugarmod:sakaban_turtle",
|
||||
"blacksugarmod:scallion",
|
||||
"blacksugarmod:cooking_oil"
|
||||
],
|
||||
"result": {
|
||||
"id": "blacksugarmod:pickled_turtle",
|
||||
"count": 1
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,12 @@
|
||||
{
|
||||
"type": "minecraft:crafting_shapeless",
|
||||
"ingredients": [
|
||||
"minecraft:poppy",
|
||||
"minecraft:carrot",
|
||||
"minecraft:water_bucket"
|
||||
],
|
||||
"result": {
|
||||
"id": "blacksugarmod:pot_of_prison_vegetables",
|
||||
"count": 1
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,10 @@
|
||||
{
|
||||
"type": "minecraft:smelting",
|
||||
"experience": 0.35,
|
||||
"cookingtime": 100,
|
||||
"ingredient": "blacksugarmod:marshmallow",
|
||||
"result": {
|
||||
"id": "blacksugarmod:roasted_marshmallow",
|
||||
"count": 1
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,16 @@
|
||||
{
|
||||
"type": "minecraft:crafting_shapeless",
|
||||
"ingredients": [
|
||||
"blacksugarmod:indestructible_starfish",
|
||||
"blacksugarmod:indestructible_starfish",
|
||||
"blacksugarmod:indestructible_starfish",
|
||||
"minecraft:nether_wart",
|
||||
"blacksugarmod:cooking_oil",
|
||||
"blacksugarmod:scallion",
|
||||
"minecraft:stick"
|
||||
],
|
||||
"result": {
|
||||
"id": "blacksugarmod:starfish_skewer",
|
||||
"count": 1
|
||||
}
|
||||
}
|
||||
6
src/main/resources/pack.mcmeta
Normal file
@@ -0,0 +1,6 @@
|
||||
{
|
||||
"pack": {
|
||||
"description": "${mod_id} resources",
|
||||
"pack_format": 46
|
||||
}
|
||||
}
|
||||