Skip to content

Commit

Permalink
new visitor/name + fix #10450 (#10451)
Browse files Browse the repository at this point in the history
port
  • Loading branch information
Raycoms committed Nov 17, 2024
1 parent 74c0745 commit bb50bbf
Show file tree
Hide file tree
Showing 16 changed files with 46 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,10 @@
"crafter": "chef_crafting",
"inputs": [
{
"item": "minecolonies:garlic"
"id": "minecraft:kelp"
},
{
"id": "minecolonies:garlic"
},
{
"item": "minecolonies:onion"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -43,8 +43,6 @@
"minecolonies:mutton_dinner",
"minecolonies:tortillas",
"minecolonies:apple_pie",
"minecolonies:cheese_pizza",
"minecolonies:plain_cheesecake",
"minecolonies:spicy_eggplant"
]
}
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,10 @@
import com.minecolonies.api.blocks.ModBlocks;
import com.minecolonies.api.items.ModItems;
import com.minecolonies.api.util.constant.Constants;
import net.minecraft.core.Registry;
import net.minecraft.core.registries.Registries;
import net.minecraft.network.chat.Component;
import net.minecraft.resources.ResourceLocation;
import net.minecraft.world.item.CreativeModeTab;
import net.minecraft.world.item.Item;
import net.minecraft.world.item.ItemStack;
Expand Down Expand Up @@ -103,6 +105,11 @@ public final class ModCreativeTabs
output.accept(ModItems.sifterMeshIron);
output.accept(ModItems.sifterMeshDiamond);

output.accept(ModItems.breadDough);
output.accept(ModItems.cookieDough);
output.accept(ModItems.cakeBatter);
output.accept(ModItems.rawPumpkinPie);

output.accept(ModItems.milkyBread);
output.accept(ModItems.sugaryBread);
output.accept(ModItems.goldenBread);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,5 +41,7 @@ private ModBannerPatterns()
BANNER_PATTERNS.register("threetriangles", () -> new BannerPattern("ttan"));
BANNER_PATTERNS.register("theart", () -> new BannerPattern("thrt"));
BANNER_PATTERNS.register("dragonhead", () -> new BannerPattern("drhd"));
BANNER_PATTERNS.register("tinyflowers", () -> new BannerPattern("tflw"));
BANNER_PATTERNS.register("stripe_middle_up", () -> new BannerPattern("stmiu"));
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -264,13 +264,15 @@ public void onUpdate()

if (isFeatureUnlocked.get())
{
findPaneByID(BUTTON_PATREON).hide();
textPane.enable();
namePane.enable();
textPane.show();
resetButton.hide();
}
else
{
findPaneByID(BUTTON_PATREON).show();
textPane.disable();
namePane.disable();

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1522,7 +1522,14 @@ public Collection<IRequest<?>> getOpenRequests(final int citizenId)
@Override
public boolean hasWorkerOpenRequestsFiltered(final int citizenId, @NotNull final Predicate<IRequest<?>> selectionPredicate)
{
return getOpenRequests(citizenId).stream().anyMatch(selectionPredicate);
for (final IRequest<?> req : getOpenRequests(citizenId))
{
if (selectionPredicate.test(req))
{
return true;
}
}
return false;
}

@Override
Expand All @@ -1535,7 +1542,7 @@ public boolean hasOpenSyncRequest(@NotNull final ICitizenData citizen)

for (final IToken<?> token : getOpenRequestsByCitizen().get(citizen.getId()))
{
if (!citizen.isRequestAsync(token))
if (!citizen.isRequestAsync(token) && colony.getRequestManager().getRequestForToken(token) != null)
{
return true;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -269,8 +269,6 @@ protected void addTags(final HolderLookup.Provider p_256380_)
.add(ModItems.mutton_dinner)
.add(ModItems.tortillas)
.add(ModItems.apple_pie)
.add(ModItems.cheese_pizza)
.add(ModItems.plain_cheesecake)
.add(ModItems.spicy_eggplant);

tag(ModTags.crafterProductExclusions.get(TagConstants.CRAFTING_COOK))
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -169,6 +169,7 @@ protected void registerRecipes(@NotNull final Consumer<FinishedRecipe> consumer)

CustomRecipeBuilder.create(CHEF, MODULE_CRAFTING, "ramen")
.inputs(List.of(
new ItemStorage(new ItemStack(Items.KELP)),
new ItemStorage(new ItemStack(ModBlocks.blockGarlic)),
new ItemStorage(new ItemStack(ModBlocks.blockOnion)),
new ItemStorage(new ItemStack(ModItems.raw_noodle)),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2277,6 +2277,7 @@
"com.minecolonies.building.postbox": "Postbox",

"com.minecolonies.coremod.gui.chat.potatogod": "I used to be just Jack then I made a bet with the Devil.. What was his name?.. 'Ray', I think. Anyways, being a cactus has.. interrupted my relationships. I've been wandering these lands for as long as I can remember. Then finally, I saw your pathetic village and thought 'hmm.. someone that lame could definitely use my help!'",
"com.minecolonies.coremod.gui.chat.legodoc": "While experimenting with ender pearls, I somehow turned into a blue fox. Now, I’m trying to settle down and figure out how to undo this—or at least, get rid of the relentless urge to chase every chicken I come across.",
"com.minecolonies.coremod.recruit.message.custom": "%s has decided to stay in your colony as a citizen! They quickly switched out of their travellers gear into some new clothes to fit in!",
"com.minecolonies.coremod.gui.workerhuts.warehouse.couriers": "Couriers",

Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"parent": "minecraft:item/generated",
"textures": {
"layer0": "minecolonies:item/cake_batter"
}
}
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@
"Mabel", "Maci", "Macie", "Mackenzie", "Macy", "Madalyn", "Madalynn", "Maddison", "Madeleine", "Madeline", "Madelyn", "Madelynn", "Madilyn", "Madilynn", "Madison",
"Madisyn", "Mae", "Maeve", "Magdalena", "Maggie", "Magnolia", "Maia", "Maisie", "Maisy", "Makayla", "Makenna", "Makenzie", "Malani", "Malaya", "Malayah", "Malaysia",
"Maleah", "Malia", "Maliah", "Maliyah", "Mallory", "Mara", "Maren", "Margaret", "Margery", "Margo", "Margot", "Maria", "Mariah", "Mariam", "Mariana", "Marianna", "Marie",
"Marilyn", "Marina", "Marine", "Marion", "Marissa", "Marlee", "Marley", "Martha", "Mary", "Maryam", "Matilda", "Maud", "Mavis", "Maxine", "Maya", "Mckenna", "Mckenzie",
"Marilyn", "Marina", "Marine", "Marion", "Marissa", "Marlee", "Marley", "Martha", "Mary", "Maryam", "Maryana", "Matilda", "Maud", "Mavis", "Maxine", "Maya", "Mckenna", "Mckenzie",
"Mckinley", "Meadow", "Megan", "Meghan", "Meilani", "Mildred", "Milena", "Miley", "Millicent", "Millie", "Mina", "Mira", "Miracle", "Miranda", "Miriam", "Molly", "Monica",
"Monroe", "Morgan", "Mya", "Myah", "Myla", "Mylah", "Myra", "Nadia", "Nala", "Nalani", "Nancy", "Naomi", "Natalia", "Natalie", "Nataly", "Natasha", "Nathalie", "Navy",
"Nayeli", "Nellie", "Nevaeh", "Nia", "Mélanie", "Melanie", "Melany", "Melina", "Melissa", "Melody", "Mercy", "Meredith", "Mia", "Miah", "Micah", "Michaela", "Michelle",
Expand Down Expand Up @@ -145,6 +145,6 @@
"Hadresham", "Hakebourne", "Hale", "Hall", "Halley", "Hambard", "Hammer", "Hammond", "Hampden", "Harris", "Ito", "Jalin", "Janeli", "Johnson", "Johnston", "Jones",
"Karpinksi", "Kemp", "Kennedy", "Kolanowski", "Kravitz", "Kumar", "LaClair", "Magic", "Madden", "Mardle", "McCarthy", "McDonald", "McGee", "McKenzie", "Mekkelsen", "Mello",
"Miller", "Moontail", "Nair", "Pericherla","Purves", "Rao", "Reddy", "Reeves","Revaluri", "Rhino", "Robinson", "Skellett", "Smith", "Souri", "Sparrow", "Taylor", "Tenford", "Thorpe", "Wallgreen", "Walsh", "White",
"Williams", "Wilson"
"Williams", "Wilson", "van Ast"
]
}
12 changes: 12 additions & 0 deletions src/main/resources/data/minecolonies/visitors/legodoc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
{
"texture": "1e79f62a-d205-4f56-bc15-1dcd6d50a52c",
"citizensuffix": "_w",
"name": "Lupin Vulpes",
"chance": 0.001,
"storylangkey": "com.minecolonies.coremod.gui.chat.legodoc",
"recruitcost": "minecraft:piston",
"recruitcostcount": 5,
"gender": "male",
"primaryskill": "Knowledge",
"secondaryskill": "Agility"
}

0 comments on commit bb50bbf

Please sign in to comment.