Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 7 additions & 1 deletion src/generated/resources/assets/anvilcraft/lang/en_ud.json
Original file line number Diff line number Diff line change
Expand Up @@ -335,6 +335,7 @@
"block.anvilcraft.burning_heater": "ɹǝʇɐǝH ᵷuᴉuɹnᗺ",
"block.anvilcraft.cake_base_block": "ʞɔoꞁᗺ ǝsɐᗺ ǝʞɐƆ",
"block.anvilcraft.cake_block": "ʞɔoꞁᗺ ǝʞɐƆ",
"block.anvilcraft.celestial_back_gate": "ǝʇɐ⅁ ʞɔɐᗺ ꞁɐᴉʇsǝꞁǝƆ",
"block.anvilcraft.celestial_forging_anvil": "ꞁᴉʌuⱯ ᵷuᴉᵷɹoℲ ꞁɐᴉʇsǝꞁǝƆ",
"block.anvilcraft.celestial_forging_anvil_amplifier": "ɹǝᴉɟᴉꞁdɯⱯ ꞁᴉʌuⱯ ᵷuᴉᵷɹoℲ ꞁɐᴉʇsǝꞁǝƆ",
"block.anvilcraft.celestial_forging_anvil_amplifier.need_anvil_corner": "ꞁᴉʌuⱯ ᵷuᴉᵷɹoℲ ꞁɐᴉʇsǝꞁǝƆ ǝɥʇ ɟo ɹǝuɹoɔ ǝɥʇ uo pǝɔɐꞁd ǝq oʇ spǝǝN",
Expand Down Expand Up @@ -1314,6 +1315,9 @@
"screen.anvilcraft.cfa.mag.weak": "ʞɐǝM",
"screen.anvilcraft.cfa.mass": "%s :ssɐW",
"screen.anvilcraft.cfa.material_required": "%s × %s :sǝɹᴉnbǝᴚ",
"screen.anvilcraft.cfa.megastructure.dyson_sphere_brown_dwarf": "ǝɹǝɥdS uosʎᗡ ɟɹɐʍᗡ uʍoɹᗺ",
"screen.anvilcraft.cfa.megastructure.dyson_sphere_brown_dwarf.description": "ɟɹɐʍp pǝɹ ɐ oʇuᴉ ʇᴉ uɹnʇ ʎꞁꞁɐnʇuǝʌǝ puɐ ʇndʇno ǝɥʇ ʎɟᴉꞁdɯɐ uɐɔ ɹǝʇʇɐɯ ꞁɐᴉpɹoɯᴉɹd ⸵ɹǝʍod ǝʇɐɹǝuǝᵷ oʇ ʎᵷɹǝuǝ s,ɟɹɐʍp uʍoɹq ɐ ᵷuᴉʇɔǝꞁꞁoƆ",
"screen.anvilcraft.cfa.megastructure.dyson_sphere_brown_dwarf.usage": "ɹ§ɟɹɐʍp pǝɹ ɐ oʇuᴉ ɟɹɐʍp uʍoɹq ǝɥʇ suɹnʇ ᗺ008ᘔ⥝ ⸵sǝʇɐꞁnɯnɔɔɐ ᗺᘔ ǝʌoqɐ ɹǝʇʇɐWɟ§\n:sʇɔǝɟɟƎ ǝpᴉS\n———————\nɹ§ϛ×/Ɛ×/ᘔ×/ϛ˙⥝× sǝpᴉʌoɹd ʎꞁddns ǝꞁqɐʇs ⸵MW 009⥝/(²ᴚ×Ǝ)=Ԁɟ§\nɹ§[pᴉɹ⅁ ɹǝʍoԀ]ɐ§\n:sʇndʇnO\n———————\nɹ§ʇᵷ0߈ ɹoɟ ǝꞁqɐʇs 'ʞɔᴉʇ ɹǝd ᗺᘔ–ᗺɯ0ϛᘔ :ɹǝʇʇɐW ꞁɐᴉpɹoɯᴉɹԀɟ§\nɹ§[ʇuI nꞁℲ]q§\n:sǝɹᴉnbǝᴚ",
"screen.anvilcraft.cfa.megastructure.dyson_sphere_large": "ǝɹǝɥdS uosʎᗡ ǝᵷɹɐꞀ",
"screen.anvilcraft.cfa.megastructure.dyson_sphere_large.description": "ʎʇᴉɔᴉɹʇɔǝꞁǝ ɟo ʇunoɯɐ ǝᵷɹɐꞁ ɐ ǝʇɐɹǝuǝᵷ 'ɹɐʇs ɯoɹɟ ʎᵷɹǝuǝ ʇɥᵷᴉꞁ ᵷuᴉʇɔǝꞁꞁoƆ",
"screen.anvilcraft.cfa.megastructure.dyson_sphere_large.usage": "ɹ§ǝuoNㄥ§\n:sʇɔǝɟɟƎ ǝpᴉS\n———————\nɹ§snᴉpɐɹ puɐ ǝɹnʇɐɹǝdɯǝʇ ɹɐꞁꞁǝʇs uo pǝsɐq ɹǝʍod sǝʇɐɹǝuǝ⅁ɟ§\nɹ§[pᴉɹ⅁ ɹǝʍoԀ]ɐ§\n:sʇndʇnO\n———————\nɹ§ǝuoNㄥ§\n:sǝɹᴉnbǝᴚ",
Expand Down Expand Up @@ -1608,6 +1612,7 @@
"subtitles.anvilcraft.giant_anvil_shock": "ǝʌɐʍʞɔoɥs ꞁᴉʌuⱯ ʇuɐᴉ⅁",
"subtitles.anvilcraft.plasma_jet": "ᵷuᴉɹɐoɹ ʇǝՐ ɐɯsɐꞁԀ",
"subtitles.anvilcraft.plasma_jet_lava": "ʇsɹnq ʇǝՐ ɐɯsɐꞁԀ",
"subtitles.anvilcraft.quenched_out": "ʇno pǝɥɔuǝnꝹ",
"subtitles.anvilcraft.smart_block_placer_extend": "pǝpuǝʇxǝ ɹǝɔɐꞁԀ ʞɔoꞁᗺ ʇɹɐɯS",
"subtitles.anvilcraft.smart_block_placer_retract": "pǝʇɔɐɹʇǝɹ ɹǝɔɐꞁԀ ʞɔoꞁᗺ ʇɹɐɯS",
"subtitles.anvilcraft.smart_block_placer_shulker_open": "sɹᴉɥʍ ɹǝɔɐꞁԀ ʞɔoꞁᗺ ʇɹɐɯS",
Expand Down Expand Up @@ -1776,7 +1781,7 @@
"tooltip.anvilcraft.item.creative_crate.shift": "sɯǝʇᴉ ʇno ǝʞɐʇ oʇ ʞɔᴉꞁɔ-ʇɟǝꞁ sɹǝʎɐꞁd ꞁɐʌᴉʌɹnS\nuoᴉʇɐɹnᵷᴉɟuoɔ ǝɥʇ ɹɐǝꞁɔ oʇ ʞɔᴉꞁɔ-ʇɟǝꞁ sɹǝʎɐꞁd ǝʌᴉʇɐǝɹƆ\npǝɹnᵷᴉɟuoɔ sᴉ ɯǝʇᴉ ou uǝɥʍ sɯǝʇᴉ ʇnduᴉ ꞁꞁɐ sʎoɹʇsǝᗡ\nʇno uǝʞɐʇ uǝɥʍ pǝɯnsuoɔ ǝq ʇou ꞁꞁᴉʍ sɯǝʇI\nǝɹnᵷᴉɟuoɔ oʇ ǝpᴉsuᴉ sɯǝʇᴉ ǝɔɐꞁd :ǝdʎʇ ʇǝs ɐ ɟo sɯǝʇᴉ ǝʇᴉuᴉɟuᴉ sǝpᴉʌoɹԀ",
"tooltip.anvilcraft.item.creative_fluid_tank": "ʎꞁddns puɐ ǝᵷɐɹoʇs pᴉnꞁɟ ǝʇᴉuᴉɟuI",
"tooltip.anvilcraft.item.creative_fluid_tank.shift": "pǝɹnᵷᴉɟuoɔ sᴉ pᴉnꞁɟ ou uǝɥʍ pᴉnꞁɟ ʇnduᴉ ꞁꞁɐ sʎoɹʇsǝᗡ\npǝʇɔɐɹʇxǝ uǝɥʍ pǝɯnsuoɔ ǝq ʇou ꞁꞁᴉʍ pᴉnꞁℲ\nǝɹnᵷᴉɟuoɔ oʇ ǝpᴉsuᴉ pᴉnꞁɟ ꞁꞁᴉɟ :ǝdʎʇ ʇǝs ɐ ɟo pᴉnꞁɟ ǝʇᴉuᴉɟuᴉ sǝpᴉʌoɹԀ",
"tooltip.anvilcraft.item.creative_generator": "pɐoꞁ ɐ sɐ pǝsn ǝq osꞁɐ uɐɔ 'ɹǝʍod ɟo Mʞ ᘔ6⥝8 oʇ dn ǝpᴉʌoɹԀ",
"tooltip.anvilcraft.item.creative_generator": "pɐoꞁ ɐ sɐ pǝsn ǝq osꞁɐ uɐɔ 'ɹǝʍod ɟo Mʞ 9Ɛϛϛ9 oʇ dn ǝpᴉʌoɹԀ",
"tooltip.anvilcraft.item.creative_laser": "ɯɐǝq ɹǝsɐꞁ ɐ sʇᴉɯƎ",
"tooltip.anvilcraft.item.creative_laser.shift": "ǝuoʇspǝɹ ʎq ɟɟo pǝuɹnʇ ǝq uɐɔ 'ǝpoɯ ɐɯɯɐᵷ puɐ suǝꞁ 'ꞁǝʌǝꞁ ɹǝsɐꞁ ǝꞁqɐʇsnɾpⱯ",
"tooltip.anvilcraft.item.crushing_table": "sǝdᴉɔǝɹ ᵷuᴉɥsnɹɔ ɯɹoɟɹǝԀ",
Expand Down Expand Up @@ -2168,6 +2173,7 @@
"tooltip.anvilcraft.storage.types": ":sǝdʎ⟘",
"tooltip.anvilcraft.storage.types.value": "%s / %s ",
"tooltip.anvilcraft.thought": "oɟuᴉ ǝɹoɯ ɹoɟ [%s] ssǝɹԀ",
"tooltip.anvilcraft.waiting": "ᵷuᴉɔuʎs ɹoɟ ᵷuᴉʇᴉɐM",
"tooltip.anvilcraft.wip_block.jade.recipe": "%s :ǝdᴉɔǝᴚ ꞁɐɹnpǝɔoɹԀ",
"tooltip.anvilcraft.wip_block.jade.step_count": "%d :pǝʇnɔǝxƎ sdǝʇS",
"tooltip.anvilcraft.working_progress.progress": "%%%2$s %1$s ",
Expand Down
8 changes: 7 additions & 1 deletion src/generated/resources/assets/anvilcraft/lang/en_us.json
Original file line number Diff line number Diff line change
Expand Up @@ -335,6 +335,7 @@
"block.anvilcraft.burning_heater": "Burning Heater",
"block.anvilcraft.cake_base_block": "Cake Base Block",
"block.anvilcraft.cake_block": "Cake Block",
"block.anvilcraft.celestial_back_gate": "Celestial Back Gate",
"block.anvilcraft.celestial_forging_anvil": "Celestial Forging Anvil",
"block.anvilcraft.celestial_forging_anvil_amplifier": "Celestial Forging Anvil Amplifier",
"block.anvilcraft.celestial_forging_anvil_amplifier.need_anvil_corner": "Needs to be placed on the corner of the Celestial Forging Anvil",
Expand Down Expand Up @@ -1314,6 +1315,9 @@
"screen.anvilcraft.cfa.mag.weak": "Weak",
"screen.anvilcraft.cfa.mass": "Mass: %s",
"screen.anvilcraft.cfa.material_required": "Requires: %s × %s",
"screen.anvilcraft.cfa.megastructure.dyson_sphere_brown_dwarf": "Brown Dwarf Dyson Sphere",
"screen.anvilcraft.cfa.megastructure.dyson_sphere_brown_dwarf.description": "Collecting a brown dwarf's energy to generate power; primordial matter can amplify the output and eventually turn it into a red dwarf",
"screen.anvilcraft.cfa.megastructure.dyson_sphere_brown_dwarf.usage": "Requires:\n§b[Flu Int]§r\n§fPrimordial Matter: 250mB–2B per tick, stable for 40gt§r\n———————\nOutputs:\n§a[Power Grid]§r\n§fP=(E×R²)/1600 MW; stable supply provides ×1.5/×2/×3/×5§r\n———————\nSide Effects:\n§fMatter above 2B accumulates; 12800B turns the brown dwarf into a red dwarf§r",
"screen.anvilcraft.cfa.megastructure.dyson_sphere_large": "Large Dyson Sphere",
"screen.anvilcraft.cfa.megastructure.dyson_sphere_large.description": "Collecting light energy from star, generate a large amount of electricity",
"screen.anvilcraft.cfa.megastructure.dyson_sphere_large.usage": "Requires:\n§7None§r\n———————\nOutputs:\n§a[Power Grid]§r\n§fGenerates power based on stellar temperature and radius§r\n———————\nSide Effects:\n§7None§r",
Expand Down Expand Up @@ -1608,6 +1612,7 @@
"subtitles.anvilcraft.giant_anvil_shock": "Giant Anvil shockwave",
"subtitles.anvilcraft.plasma_jet": "Plasma Jet roaring",
"subtitles.anvilcraft.plasma_jet_lava": "Plasma Jet burst",
"subtitles.anvilcraft.quenched_out": "Quenched out",
"subtitles.anvilcraft.smart_block_placer_extend": "Smart Block Placer extended",
"subtitles.anvilcraft.smart_block_placer_retract": "Smart Block Placer retracted",
"subtitles.anvilcraft.smart_block_placer_shulker_open": "Smart Block Placer whirs",
Expand Down Expand Up @@ -1776,7 +1781,7 @@
"tooltip.anvilcraft.item.creative_crate.shift": "Provides infinite items of a set type: place items inside to configure\nItems will not be consumed when taken out\nDestroys all input items when no item is configured\nCreative players left-click to clear the configuration\nSurvival players left-click to take out items",
"tooltip.anvilcraft.item.creative_fluid_tank": "Infinite fluid storage and supply",
"tooltip.anvilcraft.item.creative_fluid_tank.shift": "Provides infinite fluid of a set type: fill fluid inside to configure\nFluid will not be consumed when extracted\nDestroys all input fluid when no fluid is configured",
"tooltip.anvilcraft.item.creative_generator": "Provide up to 8192 kW of power, can also be used as a load",
"tooltip.anvilcraft.item.creative_generator": "Provide up to 65536 kW of power, can also be used as a load",
"tooltip.anvilcraft.item.creative_laser": "Emits a laser beam",
"tooltip.anvilcraft.item.creative_laser.shift": "Adjustable laser level, lens and gamma mode, can be turned off by redstone",
"tooltip.anvilcraft.item.crushing_table": "Perform crushing recipes",
Expand Down Expand Up @@ -2168,6 +2173,7 @@
"tooltip.anvilcraft.storage.types": "Types:",
"tooltip.anvilcraft.storage.types.value": " %s / %s",
"tooltip.anvilcraft.thought": "Press [%s] for more info",
"tooltip.anvilcraft.waiting": "Waiting for syncing",
"tooltip.anvilcraft.wip_block.jade.recipe": "Procedural Recipe: %s",
"tooltip.anvilcraft.wip_block.jade.step_count": "Steps Executed: %d",
"tooltip.anvilcraft.working_progress.progress": " %1$s %2$s%%",
Expand Down
6 changes: 6 additions & 0 deletions src/generated/resources/assets/anvilcraft/sounds.json
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,12 @@
],
"subtitle": "subtitles.anvilcraft.plasma_jet_lava"
},
"quenched_out": {
"sounds": [
"anvilcraft:quenched_out"
],
"subtitle": "subtitles.anvilcraft.quenched_out"
},
"smart_block_placer_extend": {
"sounds": [
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,27 @@
"pools": [
{
"bonus_rolls": 0.0,
"entries": [],
"rolls": 0.0
"conditions": [
{
"condition": "minecraft:survives_explosion"
}
],
"entries": [
{
"type": "minecraft:item",
"conditions": [
{
"block": "anvilcraft:celestial_forging_anvil",
"condition": "minecraft:block_state_property",
"properties": {
"half": "bottom_center"
}
}
],
"name": "anvilcraft:celestial_forging_anvil"
}
],
"rolls": 1.0
}
],
"random_sequence": "anvilcraft:blocks/celestial_forging_anvil"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,24 @@
"offering": {
"entries": [
{
"id": "anvilcraft:gem_block_random",
"choices": [
{
"id": "minecraft:emerald_block",
"weight": 1
},
{
"id": "anvilcraft:topaz_block",
"weight": 1
},
{
"id": "anvilcraft:ruby_block",
"weight": 1
},
{
"id": "anvilcraft:sapphire_block",
"weight": 1
}
],
"weight": 50
},
{
Expand All @@ -20,7 +37,24 @@
"weight": 2
},
{
"id": "anvilcraft:gem_amulet_random",
"choices": [
{
"id": "anvilcraft:emerald_amulet",
"weight": 1
},
{
"id": "anvilcraft:topaz_amulet",
"weight": 1
},
{
"id": "anvilcraft:ruby_amulet",
"weight": 1
},
{
"id": "anvilcraft:sapphire_amulet",
"weight": 1
}
],
"weight": 2
},
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,12 @@
"axial_tilt": 0.0,
"energy": 16,
"has_atmosphere": true,
"landing": {
"coordinate_rule": {
"type": "same"
},
"dimension": "anvilcraft:overworld_like"
},
"liquid_coverage": "medium",
"magnetic_field": 2,
"mass": 20,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
"anvilcraft:infinite_collector",
"anvilcraft:celestial_forging_anvil",
"anvilcraft:celestial_forging_anvil_portal",
"anvilcraft:celestial_back_gate",
"anvilcraft:transcendium_block",
"anvilcraft:confined_time_anvilon",
"anvilcraft:confined_space_anvilon",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
"anvilcraft:celestial_forging_anvil_fluid_interface",
"anvilcraft:celestial_forging_anvil_interface_placeholder",
"anvilcraft:celestial_forging_anvil_portal",
"anvilcraft:celestial_back_gate",
"anvilcraft:ember_metal_block",
"anvilcraft:cut_ember_metal_block",
"anvilcraft:cut_ember_metal_pillar",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
"anvilcraft:celestial_forging_anvil_laser_interface",
"anvilcraft:celestial_forging_anvil_interface_placeholder",
"anvilcraft:celestial_forging_anvil_portal",
"anvilcraft:celestial_back_gate",
"anvilcraft:ember_metal_block",
"anvilcraft:cut_ember_metal_block",
"anvilcraft:cut_ember_metal_pillar",
Expand Down
4 changes: 4 additions & 0 deletions src/main/java/dev/dubhe/anvilcraft/AnvilCraft.java
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,12 @@
import dev.dubhe.anvilcraft.data.AnvilCraftDatagen;
import dev.dubhe.anvilcraft.dfu.AnvilCraftDfu;
import dev.dubhe.anvilcraft.init.ModAttachments;
import dev.dubhe.anvilcraft.init.ModBiomeSources;
import dev.dubhe.anvilcraft.init.ModCriterionTriggers;
import dev.dubhe.anvilcraft.init.ModDataAttachments;
import dev.dubhe.anvilcraft.init.ModDispenserBehavior;
import dev.dubhe.anvilcraft.init.ModInspections;
import dev.dubhe.anvilcraft.init.ModMegastructures;
import dev.dubhe.anvilcraft.init.ModMenuTypes;
import dev.dubhe.anvilcraft.init.ModMobEffects;
import dev.dubhe.anvilcraft.init.ModParticles;
Expand Down Expand Up @@ -93,6 +95,7 @@ public class AnvilCraft {
public AnvilCraft(IEventBus modEventBus, ModContainer modContainer) {
MOD_BUS = modEventBus;
NeoForgeMod.enableMilkFluid();
ModBiomeSources.register(modEventBus);
ModAttachments.register(modEventBus);
ModItemGroups.register(modEventBus);
ModBlocks.register();
Expand All @@ -101,6 +104,7 @@ public AnvilCraft(IEventBus modEventBus, ModContainer modContainer) {
ModItems.register();
ModBlockEntities.register();
ModMenuTypes.register();
ModMegastructures.register(modEventBus);
ModComponents.register(modEventBus);
ModVillagers.register(modEventBus);
ModRecipeTypes.register(modEventBus);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -109,6 +109,12 @@ public void registerHandHeldItemTooltip(IHandHeldItemTooltipProvider provider) {
handItemProviders.add(provider);
}

public void resetClientState() {
for (ITooltipProvider.BlockEntityTooltipProvider provider : this.blockEntityProviders) {
provider.resetClientState();
}
}

/**
* 渲染方块的tooltip
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -526,7 +526,7 @@ public class ItemTooltipManager {
NORMAL.put(ModBlocks.ANCIENT_SEA_REEF.asItem(), "A chunk of sea reef – looks like it's hiding some treasure");
NORMAL.put(ModBlocks.VOID_MATTER_BLOCK.asItem(), "A chunk of void...");
NORMAL.put(ModBlocks.EXCITED_STATE_VOID_MATTER_BLOCK.asItem(), "A chunk of void... exciting void... comes from a Black Hole");
NORMAL.put(ModBlocks.CREATIVE_GENERATOR.asItem(), "Provide up to 8192 kW of power, can also be used as a load");
NORMAL.put(ModBlocks.CREATIVE_GENERATOR.asItem(), "Provide up to 65536 kW of power, can also be used as a load");
NORMAL.put(ModFoodItems.COCOA_BUTTER.asItem(), "One hundred percent natural pure cocoa butter!");

SHIFT.put(
Expand Down
Loading
Loading