Merge pull request 'Rebuild the four House worlds with native structures and retire legacy menu items' (#509) from feature/jarvis-nameplates-20261123 into main

This commit is contained in:
unimatrix 2026-11-23 02:11:35 +00:00
commit 71af742e80
50 changed files with 5147 additions and 102 deletions

View file

@ -1,6 +1,6 @@
plugins { java }
group = "com.dunerealms"
version = "1.1.8"
version = "1.1.11"
repositories { mavenCentral(); maven("https://repo.papermc.io/repository/maven-public/"); maven("https://repo.opencollab.dev/main/") }
dependencies {
compileOnly("io.papermc.paper:paper-api:1.21.8-R0.1-SNAPSHOT")

View file

@ -1,5 +1,5 @@
name: '&a&lImperial Codex'
material: COMPASS
material: PAPER
itemModel: dunerealms:imperial_codex
lore:
- '&8────────────────────────────'

View file

@ -69,7 +69,7 @@ public final class DuneGUI extends JavaPlugin implements Listener,CommandExecuto
departure=Bukkit.createBossBar("Spacing Guild · next Imperial departure",BarColor.YELLOW,BarStyle.SOLID);
Bukkit.getScheduler().runTaskTimer(this,this::tick,20L,20L);
Bukkit.getScheduler().runTaskLater(this,this::ensureRegistrar,40L);
Bukkit.getScheduler().runTaskTimer(this,()->{for(Player p:Bukkit.getOnlinePlayers())if(sidebar.enabled(p))refreshSidebar(p);},80L,600L);
Bukkit.getScheduler().runTaskTimer(this,()->{for(Player p:Bukkit.getOnlinePlayers()){removeOldNavigators(p);if(sidebar.enabled(p))refreshSidebar(p);}},80L,600L);
getLogger().info("House selector and Mentat screens enabled; central J.A.R.V.I.S. bridge; no Core/Lobby replacement.");
}
@Override public void onDisable(){if(exchange!=null)exchange.close();if(itemPreviews!=null)itemPreviews.close();if(quests!=null)quests.close();requests.clear();records.clear();bookings.clear();boarding.clear();if(guild!=null)guild.close();GuiSession.clear();if(sidebar!=null)sidebar.clear();for(var controller:detached.values())try{controller.restore();}catch(ReflectiveOperationException ignored){}detached.clear();if(departure!=null)departure.removeAll();for(Player p:Bukkit.getOnlinePlayers())if(p.getOpenInventory().getTopInventory().getHolder() instanceof Screen)p.closeInventory();}
@ -93,11 +93,18 @@ public final class DuneGUI extends JavaPlugin implements Listener,CommandExecuto
fetch(p,null,0,null,data->{if(command.getName().equals("mentat")&&selection(data)!=null)mentat(p,data);else select(p,data,null);});return true;
}
private void giveCodex(Player p,boolean explain){
removeOldNavigators(p);
NamespacedKey itemId=new NamespacedKey("executableitems","ei-id");
for(ItemStack item:p.getInventory().getContents())if(item!=null&&item.hasItemMeta()&&"dr_imperial_codex".equals(item.getItemMeta().getPersistentDataContainer().get(itemId,PersistentDataType.STRING))){if(explain)p.sendMessage("Your Imperial Codex is already in your inventory.");return;}
if(p.getInventory().firstEmpty()<0){if(explain)p.sendMessage("Make one inventory slot available, then use /drgui item.");return;}
try{var item=bridge.menuItem(p);int slot=p.getInventory().firstEmpty();p.getInventory().addItem(item);try{bridge.addedItem(p,item,slot);}catch(Exception eventFailure){getLogger().warning("ExecutableItems inventory hook unavailable: "+eventFailure.getClass().getSimpleName());}if(explain)p.sendMessage("Imperial Codex received. Right-click to open DuneRealms.");}catch(Exception unavailable){if(explain)p.sendMessage("The Imperial Codex item is temporarily unavailable. /drgui still opens your console.");getLogger().warning("Imperial Codex item could not be built: "+unavailable.getClass().getSimpleName());}
}
private void removeOldNavigators(Player p){
var inventory=p.getInventory();for(int slot=0;slot<inventory.getSize();slot++){
var item=inventory.getItem(slot);if(item==null||!item.hasItemMeta()||(item.getType()!=Material.NETHER_STAR&&item.getType()!=Material.BLAZE_ROD))continue;
var data=item.getItemMeta().getPersistentDataContainer();for(var key:data.getKeys())if(data.has(key,PersistentDataType.STRING)&&"menu_opener".equals(data.get(key,PersistentDataType.STRING))){inventory.setItem(slot,null);break;}
}
}
private void openGuild(Player p,String requested){if(!lobby(p)){p.sendMessage("Imperial House passage departs from the Spacing Guild lobby.");return;}fetch(p,null,0,null,data->{String house=selection(data);if(house==null){p.sendMessage("Choose and confirm your House before Guild passage.");select(p,data,null);return;}if(requested!=null&&!GuildRoutes.allowed(house,requested))p.sendMessage("Other House worlds are unavailable through this Guild passage.");travelMenu(p,data);});}
private static GuildBookings.Permit permit(JsonObject data){String house=selection(data);if(house==null||!data.has("keyId")||data.get("keyId").isJsonNull())return null;try{return new GuildBookings.Permit(house,UUID.fromString(data.get("keyId").getAsString()),data.get("version").getAsInt());}catch(RuntimeException invalid){return null;}}
private void travelMenu(Player p,JsonObject data){var q=new JsonObject();q.addProperty("action","quote");guildRequest(p,q,quote->{data.add("guildQuote",quote);renderTravelMenu(p,data);});}

View file

@ -1,65 +1,77 @@
package com.dunerealms.gui;
import com.google.gson.*;
import java.util.*;
import java.util.function.*;
import java.math.BigDecimal;
import org.bukkit.*;
import org.bukkit.entity.Player;
import org.bukkit.event.*;
import org.bukkit.event.inventory.*;
import org.bukkit.event.player.*;
import org.bukkit.inventory.*;
import org.bukkit.plugin.java.JavaPlugin;
import net.kyori.adventure.text.Component;
import net.kyori.adventure.text.format.NamedTextColor;
/** Presentation only. Bank payments stay central; physical items use Core's checkpoint. */
final class ExchangeMenus implements Listener,AutoCloseable {
private final JavaPlugin plugin;private final HouseBridge bridge;private final Consumer<Player> back;private final Predicate<Player> artwork;
private final Map<UUID,UUID> pending=new HashMap<>();private final Set<UUID> delivering=new HashSet<>();
private final Map<UUID,Purchase> retries=new HashMap<>();
private record Draft(ItemStack item,int slot,int amount,long price){Draft quantity(int n){return new Draft(item,slot,n,price);}Draft price(long n){return new Draft(item,slot,amount,n);}}
private record Purchase(JsonObject row,int amount,UUID request){Purchase quantity(int n){return new Purchase(row,n,UUID.randomUUID());}}
private static final class Panel implements InventoryHolder {
final UUID owner,world;final GuiSession gate;final Map<Integer,Runnable> actions=new HashMap<>();final List<BedrockForms.Choice> choices=new ArrayList<>();final Inventory inventory;final String title;final boolean artwork;String description="Central bank · J.A.R.V.I.S. Exchange";
Panel(Player p,String title,boolean artwork,int screen){owner=p.getUniqueId();world=p.getWorld().getUID();gate=new GuiSession(owner);this.title=title;this.artwork=artwork;inventory=Bukkit.createInventory(this,54,artwork?Component.text(ExchangeArtwork.background(screen),NamedTextColor.WHITE).font(net.kyori.adventure.key.Key.key("dunerealms:exchange")):Component.text(title,NamedTextColor.GOLD));}
public Inventory getInventory(){return inventory;}
}
private static final class PricePanel implements InventoryHolder {
final UUID owner,world;final GuiSession gate;final Draft draft;final Inventory inventory;
PricePanel(Player p,Draft draft){owner=p.getUniqueId();world=p.getWorld().getUID();gate=new GuiSession(owner);this.draft=draft;inventory=Bukkit.createInventory(this,InventoryType.ANVIL,Component.text("Price per item · DM",NamedTextColor.GOLD));}
public Inventory getInventory(){return inventory;}
}
ExchangeMenus(JavaPlugin plugin,HouseBridge bridge,Consumer<Player> back,Predicate<Player> artwork){this.plugin=plugin;this.bridge=bridge;this.back=back;this.artwork=artwork;Bukkit.getPluginManager().registerEvents(this,plugin);Bukkit.getScheduler().runTaskTimer(plugin,()->{for(Player p:Bukkit.getOnlinePlayers())deliver(p,false);},80L,1200L);}
void open(Player p){deliver(p,false);var retry=retries.get(p.getUniqueId());if(retry!=null){purchase(p,retry);return;}list(p,false,0);}
private static String money(long value){return BigDecimal.valueOf(value,2).toPlainString()+" DM";}
static long price(String text){return ExchangePrice.parse(text);}
private static ItemStack icon(Material material,String title,String... lore){var item=new ItemStack(material);var meta=item.getItemMeta();meta.displayName(Component.text(title,NamedTextColor.GOLD));meta.lore(Arrays.stream(lore).map(s->Component.text(s,NamedTextColor.GRAY)).toList());item.setItemMeta(meta);return item;}
private Panel panel(Player p,String title){int screen=title.endsWith("Your listings")?1:title.endsWith("Add item")?2:title.endsWith("Confirm purchase")?3:title.endsWith("Withdraw listing")?4:0;var s=new Panel(p,title,artwork.test(p)&&!BedrockForms.isBedrock(p),screen);if(!s.artwork){var pane=icon(Material.GREEN_STAINED_GLASS_PANE," ");for(int i=0;i<54;i++)s.inventory.setItem(i,pane);}return s;}
private void button(Panel s,int slot,Material material,String title,String description,Runnable action){s.inventory.setItem(slot,icon(material,title,description));s.actions.put(slot,action);s.choices.add(new BedrockForms.Choice(title,description,action));}
private void show(Player p,Panel s){if(BedrockForms.isBedrock(p)){s.gate.expire();BedrockForms.show(plugin,p,s.title,s.description,s.choices);}else{p.openInventory(s.inventory);Bukkit.getScheduler().runTaskLater(plugin,s.gate::expire,2400L);}}
private void request(Player p,JsonObject input,Consumer<JsonObject> success,Consumer<String> failure){
UUID id=p.getUniqueId(),world=p.getWorld().getUID();if(pending.containsKey(id)){p.sendMessage("J.A.R.V.I.S. is processing your Exchange action.");return;}UUID token=UUID.randomUUID();pending.put(id,token);p.closeInventory();
Bukkit.getScheduler().runTaskAsynchronously(plugin,()->{JsonObject result=null;String error=null;try{result=bridge.exchange(id,input);}catch(Exception e){error=e.getMessage();}var response=result;String message=error;if(!plugin.isEnabled())return;Bukkit.getScheduler().runTask(plugin,()->{if(!token.equals(pending.get(id)))return;pending.remove(id);if(!p.isOnline()||!world.equals(p.getWorld().getUID()))return;if(response==null){failure.accept(message==null?"The Exchange is temporarily unavailable.":message);return;}if(response.has("rejectedStatus")){if(Set.of("buy","buy_kit").contains(input.get("action").getAsString()))retries.remove(id);failure.accept(response.has("message")?response.get("message").getAsString():"The Exchange rejected this action.");return;}success.accept(response);});});
}
private void request(Player p,JsonObject input,Consumer<JsonObject> done){request(p,input,done,p::sendMessage);}
private JsonObject action(String action){var q=new JsonObject();q.addProperty("action",action);return q;}
private void list(Player p,boolean mine,int page){var q=action("read");q.addProperty("mine",mine);q.addProperty("page",page);request(p,q,data->{var s=panel(p,mine?"Exchange · Your listings":"Exchange · Buy");button(s,1,Material.EMERALD,"Buy","Browse all available items",()->list(p,false,0));button(s,4,Material.NETHERITE_CHESTPLATE,"Kits","Published organisation stillsuit kits",()->kits(p,0));button(s,7,Material.CHEST,"Sell","Your listings and add held item",()->list(p,true,0));int index=0;for(var value:data.getAsJsonArray("listings")){var row=value.getAsJsonObject();int slot=10+(index/6)*9+index%6;index++;try{var item=bridge.exchangeIcon(row);var meta=item.getItemMeta();List<Component> lore=new ArrayList<>(meta.hasLore()?meta.lore():List.of());lore.add(Component.text(" "));lore.add(Component.text("Seller: "+row.get("seller").getAsString(),NamedTextColor.GRAY));lore.add(Component.text(row.get("quantity").getAsInt()+" available · "+money(row.get("priceMinor").getAsLong())+" each",NamedTextColor.GOLD));meta.lore(lore);item.setItemMeta(meta);s.inventory.setItem(slot,item);Runnable pick=()->{if(row.get("sellerUuid").getAsString().equals(p.getUniqueId().toString()))withdraw(p,row);else purchase(p,new Purchase(row,1,UUID.randomUUID()));};s.actions.put(slot,pick);s.choices.add(new BedrockForms.Choice(row.get("title").getAsString(),money(row.get("priceMinor").getAsLong())+" · "+row.get("quantity").getAsInt()+" available",pick));}catch(Exception unsupported){s.inventory.setItem(slot,icon(Material.BARRIER,"Unsupported item","This version cannot display the stored item."));}}
if(index==0)s.inventory.setItem(22,icon(Material.PAPER,"No listings",mine?"Hold an item and choose Add held item.":"Check again after players publish goods."));
if(page>0)button(s,45,Material.ARROW,"Previous","Page "+page,()->list(p,mine,page-1));if(data.get("hasNext").getAsBoolean())button(s,53,Material.ARROW,"Next","More listings",()->list(p,mine,page+1));button(s,48,Material.BOOK,"Imperial Codex","Return to your services",()->back.accept(p));button(s,49,Material.HOPPER,"Add held item","List an item from your main hand",()->draft(p));button(s,50,Material.CHEST_MINECART,"Collect purchases","Deliver paid items waiting for inventory space",()->{deliver(p,true);list(p,mine,page);});show(p,s);
});}
private void draft(Player p){var item=p.getInventory().getItemInMainHand();if(item.isEmpty()){p.sendMessage("Hold the item you want to sell first.");return;}sell(p,new Draft(item.clone(),p.getInventory().getHeldItemSlot(),Math.min(64,item.getAmount()),100));}
private void sell(Player p,Draft draft){var s=panel(p,"Exchange · Add item");s.description=draft.item.getType().name()+" · "+draft.amount+" items\n"+money(draft.price)+" per item\nTotal: "+money(draft.price*draft.amount);s.inventory.setItem(13,draft.item.clone());button(s,30,Material.RED_DYE,"− Quantity","Sell "+draft.amount+" items",()->sell(p,draft.quantity(Math.max(1,draft.amount-1))));button(s,31,Material.PAPER,"Quantity: "+draft.amount,"Maximum "+Math.min(64,draft.item.getAmount()),()->sell(p,draft));button(s,32,Material.LIME_DYE,"+ Quantity","Add one item",()->sell(p,draft.quantity(Math.min(Math.min(64,draft.item.getAmount()),draft.amount+1))));button(s,40,Material.GOLD_INGOT,"Price: "+money(draft.price),"Price per item · total "+money(draft.price*draft.amount),()->editPrice(p,draft));button(s,45,Material.ARROW,"Back","Return to your listings",()->list(p,true,0));button(s,49,Material.EMERALD,"Confirm listing","Move "+draft.amount+" items into the Exchange",()->{UUID id=UUID.randomUUID();var q=action("prepare_sale");q.addProperty("requestId",id.toString());q.addProperty("amount",draft.amount);q.addProperty("priceMinor",draft.price);request(p,q,permit->{try{bridge.exchangePublish(p,permit,id,draft.item,draft.slot,draft.amount,draft.price);p.sendMessage("Listing published. Items are held by the Exchange until sold or withdrawn.");list(p,true,0);}catch(Exception e){p.sendMessage(e.getMessage()==null?"The listing was not confirmed.":e.getMessage());}});});show(p,s);}
private void editPrice(Player p,Draft draft){if(BedrockForms.isBedrock(p)){BedrockForms.input(plugin,p,"Listing price","Dunemarks per item",BigDecimal.valueOf(draft.price,2).toPlainString(),text->{try{sell(p,draft.price(price(text.trim())));}catch(IllegalArgumentException e){p.sendMessage(e.getMessage());sell(p,draft);}});return;}var s=new PricePanel(p,draft);s.inventory.setItem(0,icon(Material.PAPER,BigDecimal.valueOf(draft.price,2).toPlainString(),"Rename this paper to the price per item."));p.openInventory(s.inventory);Bukkit.getScheduler().runTaskLater(plugin,s.gate::expire,2400L);}
private void purchase(Player p,Purchase purchase){if(purchase.row.has("kitsetId")){kitPurchase(p,purchase);return;}var row=purchase.row;var s=panel(p,"Exchange · Confirm purchase");s.description=row.get("title").getAsString()+"\nSeller: "+row.get("seller").getAsString()+"\nQuantity: "+purchase.amount+" · Total: "+money(row.get("priceMinor").getAsLong()*purchase.amount);try{s.inventory.setItem(13,bridge.exchangeIcon(row));}catch(Exception bad){p.sendMessage("This item cannot be delivered by your current version.");return;}button(s,30,Material.RED_DYE,"− Quantity","Buy "+purchase.amount,()->purchase(p,retries.containsKey(p.getUniqueId())?purchase:purchase.quantity(Math.max(1,purchase.amount-1))));button(s,31,Material.PAPER,"Quantity: "+purchase.amount,money(row.get("priceMinor").getAsLong())+" per item",()->purchase(p,purchase));button(s,32,Material.LIME_DYE,"+ Quantity","Maximum "+Math.min(64,row.get("quantity").getAsInt()),()->purchase(p,retries.containsKey(p.getUniqueId())?purchase:purchase.quantity(Math.min(Math.min(64,row.get("quantity").getAsInt()),purchase.amount+1))));button(s,45,Material.ARROW,"Back","Return to the Exchange",()->{if(retries.containsKey(p.getUniqueId())){p.sendMessage("Resolve the previous purchase by retrying the same confirmation first.");purchase(p,purchase);}else list(p,false,0);});button(s,49,Material.EMERALD,(retries.containsKey(p.getUniqueId())?"Retry purchase · ":"Buy · ")+money(row.get("priceMinor").getAsLong()*purchase.amount),"Pay from your central personal bank account",()->{retries.put(p.getUniqueId(),purchase);var q=action("buy");q.addProperty("requestId",purchase.request.toString());q.addProperty("listingId",row.get("id").getAsString());q.addProperty("amount",purchase.amount);q.addProperty("priceMinor",row.get("priceMinor").getAsLong());q.addProperty("confirmed",true);request(p,q,receipt->{retries.remove(p.getUniqueId());p.sendMessage("Purchase confirmed: "+money(receipt.get("totalMinor").getAsLong())+". Your items are ready for delivery.");deliver(p,true);list(p,false,0);},error->{p.sendMessage(error+" Retry this confirmation with the same purchase reference.");purchase(p,purchase);});});show(p,s);}
package com.dunerealms.gui;
import com.google.gson.*;
import java.util.*;
import java.util.function.*;
import java.math.BigDecimal;
import org.bukkit.*;
import org.bukkit.entity.Player;
import org.bukkit.event.*;
import org.bukkit.event.inventory.*;
import org.bukkit.event.player.*;
import org.bukkit.inventory.*;
import org.bukkit.plugin.java.JavaPlugin;
import net.kyori.adventure.text.Component;
import net.kyori.adventure.text.format.NamedTextColor;
/** Presentation only. Bank payments stay central; physical items use Core's checkpoint. */
final class ExchangeMenus implements Listener,AutoCloseable {
private final JavaPlugin plugin;private final HouseBridge bridge;private final Consumer<Player> back;private final Predicate<Player> artwork;
private final Map<UUID,UUID> pending=new HashMap<>();private final Set<UUID> delivering=new HashSet<>();
private final Map<UUID,Purchase> retries=new HashMap<>();
private record Draft(ItemStack item,int slot,int amount,long price){Draft quantity(int n){return new Draft(item,slot,n,price);}Draft price(long n){return new Draft(item,slot,amount,n);}}
private record Purchase(JsonObject row,int amount,UUID request){Purchase quantity(int n){return new Purchase(row,n,UUID.randomUUID());}}
private static final class Panel implements InventoryHolder {
final UUID owner,world;final GuiSession gate;final Map<Integer,Runnable> actions=new HashMap<>();final List<BedrockForms.Choice> choices=new ArrayList<>();final Inventory inventory;final String title;final boolean artwork;String description="Central bank · J.A.R.V.I.S. Exchange";
Panel(Player p,String title,boolean artwork,int screen){owner=p.getUniqueId();world=p.getWorld().getUID();gate=new GuiSession(owner);this.title=title;this.artwork=artwork;inventory=Bukkit.createInventory(this,54,artwork?Component.text(ExchangeArtwork.background(screen),NamedTextColor.WHITE).font(net.kyori.adventure.key.Key.key("dunerealms:exchange")):Component.text(title,NamedTextColor.GOLD));}
public Inventory getInventory(){return inventory;}
}
private final java.util.concurrent.ConcurrentMap<UUID,org.bukkit.conversations.Conversation> priceInputs=new java.util.concurrent.ConcurrentHashMap<>();
ExchangeMenus(JavaPlugin plugin,HouseBridge bridge,Consumer<Player> back,Predicate<Player> artwork){this.plugin=plugin;this.bridge=bridge;this.back=back;this.artwork=artwork;Bukkit.getPluginManager().registerEvents(this,plugin);Bukkit.getScheduler().runTaskTimer(plugin,()->{for(Player p:Bukkit.getOnlinePlayers())deliver(p,false);},80L,1200L);}
void open(Player p){deliver(p,false);var retry=retries.get(p.getUniqueId());if(retry!=null){purchase(p,retry);return;}list(p,false,0);}
private static String money(long value){return BigDecimal.valueOf(value,2).toPlainString()+" DM";}
static long price(String text){return ExchangePrice.parse(text);}
private static ItemStack icon(Material material,String title,String... lore){var item=new ItemStack(material);var meta=item.getItemMeta();meta.displayName(Component.text(title,NamedTextColor.GOLD));meta.lore(Arrays.stream(lore).map(s->Component.text(s,NamedTextColor.GRAY)).toList());item.setItemMeta(meta);return item;}
private Panel panel(Player p,String title){int screen=title.endsWith("Your listings")?1:title.endsWith("Add item")?2:title.endsWith("Confirm purchase")?3:title.endsWith("Withdraw listing")?4:0;var s=new Panel(p,title,artwork.test(p)&&!BedrockForms.isBedrock(p),screen);if(!s.artwork){var pane=icon(Material.GREEN_STAINED_GLASS_PANE," ");for(int i=0;i<54;i++)s.inventory.setItem(i,pane);}return s;}
private void button(Panel s,int slot,Material material,String title,String description,Runnable action){s.inventory.setItem(slot,icon(material,title,description));s.actions.put(slot,action);s.choices.add(new BedrockForms.Choice(title,description,action));}
private void show(Player p,Panel s){if(BedrockForms.isBedrock(p)){s.gate.expire();BedrockForms.show(plugin,p,s.title,s.description,s.choices);}else{p.openInventory(s.inventory);Bukkit.getScheduler().runTaskLater(plugin,s.gate::expire,2400L);}}
private void request(Player p,JsonObject input,Consumer<JsonObject> success,Consumer<String> failure){
UUID id=p.getUniqueId(),world=p.getWorld().getUID();if(pending.containsKey(id)){p.sendMessage("J.A.R.V.I.S. is processing your Exchange action.");return;}UUID token=UUID.randomUUID();pending.put(id,token);p.closeInventory();
Bukkit.getScheduler().runTaskAsynchronously(plugin,()->{JsonObject result=null;String error=null;try{result=bridge.exchange(id,input);}catch(Exception e){error=e.getMessage();}var response=result;String message=error;if(!plugin.isEnabled())return;Bukkit.getScheduler().runTask(plugin,()->{if(!token.equals(pending.get(id)))return;pending.remove(id);if(!p.isOnline()||!world.equals(p.getWorld().getUID()))return;if(response==null){failure.accept(message==null?"The Exchange is temporarily unavailable.":message);return;}if(response.has("rejectedStatus")){if(Set.of("buy","buy_kit").contains(input.get("action").getAsString()))retries.remove(id);failure.accept(response.has("message")?response.get("message").getAsString():"The Exchange rejected this action.");return;}success.accept(response);});});
}
private void request(Player p,JsonObject input,Consumer<JsonObject> done){request(p,input,done,p::sendMessage);}
private JsonObject action(String action){var q=new JsonObject();q.addProperty("action",action);return q;}
private void list(Player p,boolean mine,int page){var q=action("read");q.addProperty("mine",mine);q.addProperty("page",page);request(p,q,data->{var s=panel(p,mine?"Exchange · Your listings":"Exchange · Buy");button(s,1,Material.EMERALD,"Buy","Browse all available items",()->list(p,false,0));button(s,4,Material.NETHERITE_CHESTPLATE,"Kits","Published organisation stillsuit kits",()->kits(p,0));button(s,7,Material.CHEST,"Sell","Your listings and add held item",()->list(p,true,0));int index=0;for(var value:data.getAsJsonArray("listings")){var row=value.getAsJsonObject();int slot=10+(index/6)*9+index%6;index++;try{var item=bridge.exchangeIcon(row);var meta=item.getItemMeta();List<Component> lore=new ArrayList<>(meta.hasLore()?meta.lore():List.of());lore.add(Component.text(" "));lore.add(Component.text("Seller: "+row.get("seller").getAsString(),NamedTextColor.GRAY));lore.add(Component.text(row.get("quantity").getAsInt()+" available · "+money(row.get("priceMinor").getAsLong())+" each",NamedTextColor.GOLD));meta.lore(lore);item.setItemMeta(meta);s.inventory.setItem(slot,item);Runnable pick=()->{if(row.get("sellerUuid").getAsString().equals(p.getUniqueId().toString()))withdraw(p,row);else purchase(p,new Purchase(row,1,UUID.randomUUID()));};s.actions.put(slot,pick);s.choices.add(new BedrockForms.Choice(row.get("title").getAsString(),money(row.get("priceMinor").getAsLong())+" · "+row.get("quantity").getAsInt()+" available",pick));}catch(Exception unsupported){s.inventory.setItem(slot,icon(Material.BARRIER,"Unsupported item","This version cannot display the stored item."));}}
if(index==0)s.inventory.setItem(22,icon(Material.PAPER,"No listings",mine?"Hold an item and choose Add held item.":"Check again after players publish goods."));
if(page>0)button(s,45,Material.ARROW,"Previous","Page "+page,()->list(p,mine,page-1));if(data.get("hasNext").getAsBoolean())button(s,53,Material.ARROW,"Next","More listings",()->list(p,mine,page+1));button(s,48,Material.BOOK,"Imperial Codex","Return to your services",()->back.accept(p));button(s,49,Material.HOPPER,"Add held item","List an item from your main hand",()->draft(p));button(s,50,Material.CHEST_MINECART,"Collect purchases","Deliver paid items waiting for inventory space",()->{deliver(p,true);list(p,mine,page);});show(p,s);
});}
private void draft(Player p){var item=p.getInventory().getItemInMainHand();if(item.isEmpty()){p.sendMessage("Hold the item you want to sell first.");return;}sell(p,new Draft(item.clone(),p.getInventory().getHeldItemSlot(),Math.min(64,item.getAmount()),100));}
private void sell(Player p,Draft draft){var s=panel(p,"Exchange · Add item");s.description=draft.item.getType().name()+" · "+draft.amount+" items\n"+money(draft.price)+" per item\nTotal: "+money(draft.price*draft.amount);s.inventory.setItem(13,draft.item.clone());button(s,30,Material.RED_DYE,"− Quantity","Sell "+draft.amount+" items",()->sell(p,draft.quantity(Math.max(1,draft.amount-1))));button(s,31,Material.PAPER,"Quantity: "+draft.amount,"Maximum "+Math.min(64,draft.item.getAmount()),()->sell(p,draft));button(s,32,Material.LIME_DYE,"+ Quantity","Add one item",()->sell(p,draft.quantity(Math.min(Math.min(64,draft.item.getAmount()),draft.amount+1))));button(s,40,Material.GOLD_INGOT,"Price: "+money(draft.price),"Price per item · total "+money(draft.price*draft.amount),()->editPrice(p,draft));button(s,45,Material.ARROW,"Back","Return to your listings",()->list(p,true,0));button(s,49,Material.EMERALD,"Confirm listing","Move "+draft.amount+" items into the Exchange",()->{UUID id=UUID.randomUUID();var q=action("prepare_sale");q.addProperty("requestId",id.toString());q.addProperty("amount",draft.amount);q.addProperty("priceMinor",draft.price);request(p,q,permit->{try{bridge.exchangePublish(p,permit,id,draft.item,draft.slot,draft.amount,draft.price);p.sendMessage("Listing published. Items are held by the Exchange until sold or withdrawn.");list(p,true,0);}catch(Exception e){p.sendMessage(e.getMessage()==null?"The listing was not confirmed.":e.getMessage());}});});show(p,s);}
private void editPrice(Player p,Draft draft){
if(BedrockForms.isBedrock(p)){BedrockForms.input(plugin,p,"Listing price","Dunemarks per item",BigDecimal.valueOf(draft.price,2).toPlainString(),text->{try{sell(p,draft.price(price(text.trim())));}catch(IllegalArgumentException e){p.sendMessage(e.getMessage());sell(p,draft);}});return;}
if(p.isConversing()){p.sendMessage("Finish your current text entry first, or type cancel.");return;}
UUID owner=p.getUniqueId(),world=p.getWorld().getUID();p.closeInventory();
var prompt=new org.bukkit.conversations.ValidatingPrompt(){
public String getPromptText(org.bukkit.conversations.ConversationContext context){return "Type the price per item in chat, for example 1.00 DM (enter 1.00). Type cancel to return. Your price is private.";}
protected boolean isInputValid(org.bukkit.conversations.ConversationContext context,String input){try{price(input.trim());return true;}catch(IllegalArgumentException invalid){return false;}}
protected String getFailedValidationText(org.bukkit.conversations.ConversationContext context,String input){return "Enter a price from 0.01 to 1000000.00, such as 1.00, or type cancel.";}
protected org.bukkit.conversations.Prompt acceptValidatedInput(org.bukkit.conversations.ConversationContext context,String input){context.setSessionData("priceMinor",price(input.trim()));return org.bukkit.conversations.Prompt.END_OF_CONVERSATION;}
};
var conversation=new org.bukkit.conversations.ConversationFactory(plugin).withModality(true).withLocalEcho(false).withTimeout(120).withEscapeSequence("cancel").withFirstPrompt(prompt).addConversationAbandonedListener(event->{
priceInputs.computeIfPresent(owner,(id,current)->current.getContext()==event.getContext()?null:current);
Object value=event.getContext().getSessionData("priceMinor");if(!plugin.isEnabled())return;
Bukkit.getScheduler().runTask(plugin,()->{if(!p.isOnline()||!world.equals(p.getWorld().getUID()))return;if(event.gracefulExit()&&value instanceof Long amount){sell(p,draft.price(amount));}else{p.sendMessage("Price entry cancelled. Your listing has not been published.");sell(p,draft);}});
}).buildConversation(p);
priceInputs.put(owner,conversation);conversation.begin();
}
private void purchase(Player p,Purchase purchase){if(purchase.row.has("kitsetId")){kitPurchase(p,purchase);return;}var row=purchase.row;var s=panel(p,"Exchange · Confirm purchase");s.description=row.get("title").getAsString()+"\nSeller: "+row.get("seller").getAsString()+"\nQuantity: "+purchase.amount+" · Total: "+money(row.get("priceMinor").getAsLong()*purchase.amount);try{s.inventory.setItem(13,bridge.exchangeIcon(row));}catch(Exception bad){p.sendMessage("This item cannot be delivered by your current version.");return;}button(s,30,Material.RED_DYE,"− Quantity","Buy "+purchase.amount,()->purchase(p,retries.containsKey(p.getUniqueId())?purchase:purchase.quantity(Math.max(1,purchase.amount-1))));button(s,31,Material.PAPER,"Quantity: "+purchase.amount,money(row.get("priceMinor").getAsLong())+" per item",()->purchase(p,purchase));button(s,32,Material.LIME_DYE,"+ Quantity","Maximum "+Math.min(64,row.get("quantity").getAsInt()),()->purchase(p,retries.containsKey(p.getUniqueId())?purchase:purchase.quantity(Math.min(Math.min(64,row.get("quantity").getAsInt()),purchase.amount+1))));button(s,45,Material.ARROW,"Back","Return to the Exchange",()->{if(retries.containsKey(p.getUniqueId())){p.sendMessage("Resolve the previous purchase by retrying the same confirmation first.");purchase(p,purchase);}else list(p,false,0);});button(s,49,Material.EMERALD,(retries.containsKey(p.getUniqueId())?"Retry purchase · ":"Buy · ")+money(row.get("priceMinor").getAsLong()*purchase.amount),"Pay from your central personal bank account",()->{retries.put(p.getUniqueId(),purchase);var q=action("buy");q.addProperty("requestId",purchase.request.toString());q.addProperty("listingId",row.get("id").getAsString());q.addProperty("amount",purchase.amount);q.addProperty("priceMinor",row.get("priceMinor").getAsLong());q.addProperty("confirmed",true);request(p,q,receipt->{retries.remove(p.getUniqueId());p.sendMessage("Purchase confirmed: "+money(receipt.get("totalMinor").getAsLong())+". Your items are ready for delivery.");deliver(p,true);list(p,false,0);},error->{p.sendMessage(error+" Retry this confirmation with the same purchase reference.");purchase(p,purchase);});});show(p,s);}
private void kits(Player p,int page){var q=action("read_kits");q.addProperty("page",page);request(p,q,data->{var s=panel(p,"Exchange · Kits");button(s,1,Material.EMERALD,"Buy items","Browse loose goods",()->list(p,false,0));button(s,4,Material.NETHERITE_CHESTPLATE,"Kits","Published organisation designs",()->kits(p,0));button(s,7,Material.CHEST,"Sell","Your listings",()->list(p,true,0));int index=0;for(var value:data.getAsJsonArray("listings")){var row=value.getAsJsonObject();int slot=10+(index/6)*9+index%6;index++;String title=row.get("title").getAsString(),description=row.get("seller").getAsString()+" · "+row.get("items").getAsInt()+" items · "+money(row.get("priceMinor").getAsLong());if(row.get("purchaseAvailable").getAsBoolean())button(s,slot,Material.NETHERITE_CHESTPLATE,title,description,()->kitPurchase(p,new Purchase(row.deepCopy(),1,UUID.randomUUID())));else{s.inventory.setItem(slot,icon(Material.GRAY_DYE,title,description,"Organisation banking is unavailable"));s.description+="\n"+title+" · unavailable";}}if(page>0)button(s,45,Material.ARROW,"Previous","Previous kits",()->kits(p,page-1));button(s,49,Material.ARROW,"Back","Imperial Codex",()->back.accept(p));if(data.get("hasNext").getAsBoolean())button(s,53,Material.ARROW,"Next","More kits",()->kits(p,page+1));show(p,s);});}
private void kitPurchase(Player p,Purchase purchase){var row=purchase.row;var s=panel(p,"Exchange · Confirm purchase");s.description=row.get("title").getAsString()+"\nOrganisation: "+row.get("seller").getAsString()+"\n"+row.get("items").getAsInt()+" items · "+money(row.get("priceMinor").getAsLong());s.inventory.setItem(13,icon(Material.NETHERITE_CHESTPLATE,row.get("title").getAsString(),row.get("seller").getAsString(),row.get("items").getAsInt()+" items"));button(s,45,Material.ARROW,"Back","Kit catalogue",()->{if(retries.containsKey(p.getUniqueId())){p.sendMessage("Resolve the previous purchase with the same reference first.");kitPurchase(p,purchase);}else kits(p,0);});button(s,49,Material.EMERALD,(retries.containsKey(p.getUniqueId())?"Retry kit · ":"Buy kit · ")+money(row.get("priceMinor").getAsLong()),"Pay personally; proceeds go to the organisation",()->{retries.put(p.getUniqueId(),purchase);var q=action("buy_kit");q.addProperty("requestId",purchase.request.toString());q.addProperty("kitsetId",row.get("kitsetId").getAsString());q.add("listingVersion",row.get("listingVersion"));q.add("priceMinor",row.get("priceMinor"));q.addProperty("confirmed",true);request(p,q,receipt->{retries.remove(p.getUniqueId());p.sendMessage("Kit purchased: "+money(receipt.get("totalMinor").getAsLong())+". Delivery follows automatically; make room for the complete kit.");try{bridge.refreshKits(p);}catch(Exception unavailable){p.sendMessage("Your kit remains owed until the next inventory sync.");}kits(p,0);},error->{p.sendMessage(error+" Retry this confirmation with the same reference.");kitPurchase(p,purchase);});});show(p,s);}
private void withdraw(Player p,JsonObject row){var s=panel(p,"Exchange · Withdraw listing");try{s.inventory.setItem(13,bridge.exchangeIcon(row));}catch(Exception bad){p.sendMessage("This stored item cannot be decoded.");return;}button(s,45,Material.ARROW,"Back","Your listings",()->list(p,true,0));button(s,49,Material.CHEST,"Withdraw "+row.get("quantity").getAsInt()+" items","Return all unsold stock to your inventory",()->{UUID id=UUID.randomUUID();var q=action("prepare_cancel");q.addProperty("requestId",id.toString());request(p,q,permit->{try{int quantity=bridge.exchangeCancel(p,permit,id,Long.parseLong(row.get("id").getAsString()));p.sendMessage("Listing withdrawn. Returned "+quantity+" items.");list(p,true,0);}catch(Exception e){p.sendMessage(e.getMessage()==null?"The listing was not withdrawn.":e.getMessage());}});});show(p,s);}
private void deliver(Player p,boolean explain){if(!p.isOnline()||!delivering.add(p.getUniqueId()))return;UUID id=p.getUniqueId();var q=action("pending");Bukkit.getScheduler().runTaskAsynchronously(plugin,()->{JsonObject response=null;try{response=bridge.exchange(id,q);}catch(Exception ignored){}var data=response;if(!plugin.isEnabled())return;Bukkit.getScheduler().runTask(plugin,()->{delivering.remove(id);if(!p.isOnline())return;if(data==null||!data.has("pending")){if(explain)p.sendMessage("Paid deliveries remain queued. Reopen the Exchange to try again.");return;}if(data.getAsJsonArray("pending").isEmpty()){if(explain)p.sendMessage("No paid items are waiting for delivery.");return;}try{int count=bridge.exchangeDeliver(p);if(explain||count>0)p.sendMessage(count>0?"J.A.R.V.I.S. delivered "+count+" purchased items.":"Make inventory space. Your paid items remain queued.");}catch(Exception unavailable){if(explain)p.sendMessage("Paid items remain queued until your shared inventory is ready.");}});});}
@EventHandler public void join(PlayerJoinEvent e){Bukkit.getScheduler().runTaskLater(plugin,()->deliver(e.getPlayer(),false),60L);}
@EventHandler(priority=EventPriority.HIGHEST) public void anvil(PrepareAnvilEvent e){if(!(e.getInventory().getHolder() instanceof PricePanel))return;((org.bukkit.inventory.view.AnvilView)e.getView()).setRepairCost(0);e.setResult(icon(Material.PAPER,"Confirm price","Use a decimal price such as 1.00"));}
@EventHandler(priority=EventPriority.HIGHEST) public void click(InventoryClickEvent e){var holder=e.getView().getTopInventory().getHolder();if(!(holder instanceof Panel)&&!(holder instanceof PricePanel))return;e.setCancelled(true);if(!(e.getWhoClicked() instanceof Player p)||!Set.of(ClickType.LEFT,ClickType.RIGHT).contains(e.getClick()))return;if(holder instanceof Panel s){if(!s.owner.equals(p.getUniqueId())||!s.world.equals(p.getWorld().getUID())||!s.actions.containsKey(e.getRawSlot())||!s.gate.claim(p.getUniqueId()))return;Runnable selected=s.actions.get(e.getRawSlot());Bukkit.getScheduler().runTask(plugin,selected);}else if(holder instanceof PricePanel s){if(e.getRawSlot()!=2||!s.owner.equals(p.getUniqueId())||!s.world.equals(p.getWorld().getUID())||!s.gate.claim(p.getUniqueId()))return;String text=((org.bukkit.inventory.view.AnvilView)e.getView()).getRenameText();Bukkit.getScheduler().runTask(plugin,()->{try{sell(p,s.draft.price(price(text)));}catch(IllegalArgumentException bad){p.sendMessage(bad.getMessage());sell(p,s.draft);}});}}
@EventHandler(priority=EventPriority.HIGHEST) public void drag(InventoryDragEvent e){if(e.getView().getTopInventory().getHolder() instanceof Panel||e.getView().getTopInventory().getHolder() instanceof PricePanel)e.setCancelled(true);}
@EventHandler public void quit(PlayerQuitEvent e){pending.remove(e.getPlayer().getUniqueId());delivering.remove(e.getPlayer().getUniqueId());}
@Override public void close(){pending.clear();delivering.clear();retries.clear();for(Player p:Bukkit.getOnlinePlayers())if(p.getOpenInventory().getTopInventory().getHolder() instanceof Panel||p.getOpenInventory().getTopInventory().getHolder() instanceof PricePanel)p.closeInventory();}
}
private void withdraw(Player p,JsonObject row){var s=panel(p,"Exchange · Withdraw listing");try{s.inventory.setItem(13,bridge.exchangeIcon(row));}catch(Exception bad){p.sendMessage("This stored item cannot be decoded.");return;}button(s,45,Material.ARROW,"Back","Your listings",()->list(p,true,0));button(s,49,Material.CHEST,"Withdraw "+row.get("quantity").getAsInt()+" items","Return all unsold stock to your inventory",()->{UUID id=UUID.randomUUID();var q=action("prepare_cancel");q.addProperty("requestId",id.toString());request(p,q,permit->{try{int quantity=bridge.exchangeCancel(p,permit,id,Long.parseLong(row.get("id").getAsString()));p.sendMessage("Listing withdrawn. Returned "+quantity+" items.");list(p,true,0);}catch(Exception e){p.sendMessage(e.getMessage()==null?"The listing was not withdrawn.":e.getMessage());}});});show(p,s);}
private void deliver(Player p,boolean explain){if(!p.isOnline()||!delivering.add(p.getUniqueId()))return;UUID id=p.getUniqueId();var q=action("pending");Bukkit.getScheduler().runTaskAsynchronously(plugin,()->{JsonObject response=null;try{response=bridge.exchange(id,q);}catch(Exception ignored){}var data=response;if(!plugin.isEnabled())return;Bukkit.getScheduler().runTask(plugin,()->{delivering.remove(id);if(!p.isOnline())return;if(data==null||!data.has("pending")){if(explain)p.sendMessage("Paid deliveries remain queued. Reopen the Exchange to try again.");return;}if(data.getAsJsonArray("pending").isEmpty()){if(explain)p.sendMessage("No paid items are waiting for delivery.");return;}try{int count=bridge.exchangeDeliver(p);if(explain||count>0)p.sendMessage(count>0?"J.A.R.V.I.S. delivered "+count+" purchased items.":"Make inventory space. Your paid items remain queued.");}catch(Exception unavailable){if(explain)p.sendMessage("Paid items remain queued until your shared inventory is ready.");}});});}
@EventHandler public void join(PlayerJoinEvent e){Bukkit.getScheduler().runTaskLater(plugin,()->deliver(e.getPlayer(),false),60L);}
@EventHandler(priority=EventPriority.HIGHEST) public void click(InventoryClickEvent e){var holder=e.getView().getTopInventory().getHolder();if(!(holder instanceof Panel s))return;e.setCancelled(true);if(!(e.getWhoClicked() instanceof Player p)||!Set.of(ClickType.LEFT,ClickType.RIGHT).contains(e.getClick())||!s.owner.equals(p.getUniqueId())||!s.world.equals(p.getWorld().getUID())||!s.actions.containsKey(e.getRawSlot())||!s.gate.claim(p.getUniqueId()))return;Bukkit.getScheduler().runTask(plugin,s.actions.get(e.getRawSlot()));}
@EventHandler(priority=EventPriority.HIGHEST) public void drag(InventoryDragEvent e){if(e.getView().getTopInventory().getHolder() instanceof Panel)e.setCancelled(true);}
@EventHandler public void changeWorld(PlayerChangedWorldEvent e){var conversation=priceInputs.remove(e.getPlayer().getUniqueId());if(conversation!=null)conversation.abandon();}
@EventHandler public void quit(PlayerQuitEvent e){var conversation=priceInputs.remove(e.getPlayer().getUniqueId());if(conversation!=null)conversation.abandon();pending.remove(e.getPlayer().getUniqueId());delivering.remove(e.getPlayer().getUniqueId());}
@Override public void close(){for(var conversation:List.copyOf(priceInputs.values()))conversation.abandon();priceInputs.clear();pending.clear();delivering.clear();retries.clear();for(Player p:Bukkit.getOnlinePlayers())if(p.getOpenInventory().getTopInventory().getHolder() instanceof Panel)p.closeInventory();}
}

View file

@ -1,6 +1,6 @@
name: DunerealmsGUI
main: com.dunerealms.gui.DuneGUI
version: 1.1.8
version: 1.1.11
api-version: '1.21.8'
depend: [JarvisTranslator]
softdepend: [DuneLobby, DuneCore, DuneEss, DuneNPC, Vault, floodgate, ViaVersion]

View file

@ -0,0 +1,204 @@
{
"carvers": [
"minecraft:cave",
"minecraft:cave_extra_underground",
"minecraft:canyon"
],
"downfall": 0.9,
"effects": {
"fog_color": 12638463,
"mood_sound": {
"block_search_extent": 8,
"offset": 2,
"sound": "minecraft:ambient.cave",
"tick_delay": 6000
},
"music": [
{
"data": {
"max_delay": 24000,
"min_delay": 12000,
"replace_current_music": false,
"sound": "minecraft:music.overworld.bamboo_jungle"
},
"weight": 1
}
],
"music_volume": 1,
"sky_color": 7842047,
"water_color": 4159204,
"water_fog_color": 329011
},
"features": [
[],
[
"minecraft:lake_lava_underground",
"minecraft:lake_lava_surface"
],
[
"minecraft:amethyst_geode"
],
[
"minecraft:monster_room",
"minecraft:monster_room_deep"
],
[],
[],
[
"minecraft:ore_dirt",
"minecraft:ore_gravel",
"minecraft:ore_granite_upper",
"minecraft:ore_granite_lower",
"minecraft:ore_diorite_upper",
"minecraft:ore_diorite_lower",
"minecraft:ore_andesite_upper",
"minecraft:ore_andesite_lower",
"minecraft:ore_tuff",
"minecraft:underwater_magma",
"minecraft:disk_sand",
"minecraft:disk_clay",
"minecraft:disk_gravel"
],
[],
[
"minecraft:spring_water",
"minecraft:spring_lava"
],
[
"minecraft:glow_lichen",
"minecraft:bamboo",
"minecraft:bamboo_vegetation",
"minecraft:flower_warm",
"minecraft:patch_grass_jungle",
"minecraft:brown_mushroom_normal",
"minecraft:red_mushroom_normal",
"minecraft:patch_pumpkin",
"minecraft:patch_sugar_cane",
"minecraft:patch_firefly_bush_near_water",
"minecraft:vines",
"minecraft:patch_melon"
],
[
"minecraft:freeze_top_layer"
]
],
"has_precipitation": true,
"spawn_costs": {},
"spawners": {
"ambient": [
{
"type": "minecraft:bat",
"maxCount": 8,
"minCount": 8,
"weight": 10
}
],
"axolotls": [],
"creature": [
{
"type": "minecraft:sheep",
"maxCount": 4,
"minCount": 4,
"weight": 12
},
{
"type": "minecraft:pig",
"maxCount": 4,
"minCount": 4,
"weight": 10
},
{
"type": "minecraft:chicken",
"maxCount": 4,
"minCount": 4,
"weight": 10
},
{
"type": "minecraft:cow",
"maxCount": 4,
"minCount": 4,
"weight": 8
},
{
"type": "minecraft:chicken",
"maxCount": 4,
"minCount": 4,
"weight": 10
},
{
"type": "minecraft:parrot",
"maxCount": 2,
"minCount": 1,
"weight": 40
},
{
"type": "minecraft:panda",
"maxCount": 2,
"minCount": 1,
"weight": 80
}
],
"misc": [],
"monster": [
{
"type": "minecraft:spider",
"maxCount": 4,
"minCount": 4,
"weight": 100
},
{
"type": "minecraft:zombie",
"maxCount": 4,
"minCount": 4,
"weight": 95
},
{
"type": "minecraft:zombie_villager",
"maxCount": 1,
"minCount": 1,
"weight": 5
},
{
"type": "minecraft:skeleton",
"maxCount": 4,
"minCount": 4,
"weight": 100
},
{
"type": "minecraft:slime",
"maxCount": 4,
"minCount": 4,
"weight": 100
},
{
"type": "minecraft:enderman",
"maxCount": 4,
"minCount": 1,
"weight": 10
},
{
"type": "minecraft:witch",
"maxCount": 1,
"minCount": 1,
"weight": 5
},
{
"type": "minecraft:ocelot",
"maxCount": 1,
"minCount": 1,
"weight": 2
}
],
"underground_water_creature": [
{
"type": "minecraft:glow_squid",
"maxCount": 6,
"minCount": 4,
"weight": 10
}
],
"water_ambient": [],
"water_creature": []
},
"temperature": 0.95
}

View file

@ -0,0 +1,171 @@
{
"carvers": [
"minecraft:cave",
"minecraft:cave_extra_underground",
"minecraft:canyon"
],
"downfall": 0.8,
"effects": {
"fog_color": 12638463,
"foliage_color": 11983713,
"grass_color": 11983713,
"mood_sound": {
"block_search_extent": 8,
"offset": 2,
"sound": "minecraft:ambient.cave",
"tick_delay": 6000
},
"music": [
{
"data": {
"max_delay": 24000,
"min_delay": 12000,
"replace_current_music": false,
"sound": "minecraft:music.overworld.cherry_grove"
},
"weight": 1
}
],
"music_volume": 1,
"sky_color": 8103167,
"water_color": 6141935,
"water_fog_color": 6141935
},
"features": [
[],
[
"minecraft:lake_lava_underground",
"minecraft:lake_lava_surface"
],
[
"minecraft:amethyst_geode"
],
[
"minecraft:monster_room",
"minecraft:monster_room_deep"
],
[],
[],
[
"minecraft:ore_dirt",
"minecraft:ore_gravel",
"minecraft:ore_granite_upper",
"minecraft:ore_granite_lower",
"minecraft:ore_diorite_upper",
"minecraft:ore_diorite_lower",
"minecraft:ore_andesite_upper",
"minecraft:ore_andesite_lower",
"minecraft:ore_tuff",
"minecraft:underwater_magma",
"minecraft:disk_sand",
"minecraft:disk_clay",
"minecraft:disk_gravel"
],
[
"minecraft:ore_infested"
],
[
"minecraft:spring_water",
"minecraft:spring_lava"
],
[
"minecraft:glow_lichen",
"minecraft:patch_tall_grass_2",
"minecraft:patch_grass_plain",
"minecraft:flower_cherry",
"minecraft:trees_cherry"
],
[
"minecraft:freeze_top_layer"
]
],
"has_precipitation": true,
"spawn_costs": {},
"spawners": {
"ambient": [
{
"type": "minecraft:bat",
"maxCount": 8,
"minCount": 8,
"weight": 10
}
],
"axolotls": [],
"creature": [
{
"type": "minecraft:pig",
"maxCount": 2,
"minCount": 1,
"weight": 1
},
{
"type": "minecraft:rabbit",
"maxCount": 6,
"minCount": 2,
"weight": 2
},
{
"type": "minecraft:sheep",
"maxCount": 4,
"minCount": 2,
"weight": 2
}
],
"misc": [],
"monster": [
{
"type": "minecraft:spider",
"maxCount": 4,
"minCount": 4,
"weight": 100
},
{
"type": "minecraft:zombie",
"maxCount": 4,
"minCount": 4,
"weight": 95
},
{
"type": "minecraft:zombie_villager",
"maxCount": 1,
"minCount": 1,
"weight": 5
},
{
"type": "minecraft:skeleton",
"maxCount": 4,
"minCount": 4,
"weight": 100
},
{
"type": "minecraft:slime",
"maxCount": 4,
"minCount": 4,
"weight": 100
},
{
"type": "minecraft:enderman",
"maxCount": 4,
"minCount": 1,
"weight": 10
},
{
"type": "minecraft:witch",
"maxCount": 1,
"minCount": 1,
"weight": 5
}
],
"underground_water_creature": [
{
"type": "minecraft:glow_squid",
"maxCount": 6,
"minCount": 4,
"weight": 10
}
],
"water_ambient": [],
"water_creature": []
},
"temperature": 0.5
}

View file

@ -0,0 +1,181 @@
{
"carvers": [
"minecraft:cave",
"minecraft:cave_extra_underground",
"minecraft:canyon"
],
"downfall": 0.5,
"effects": {
"fog_color": 12638463,
"mood_sound": {
"block_search_extent": 8,
"offset": 2,
"sound": "minecraft:ambient.cave",
"tick_delay": 6000
},
"music_volume": 1,
"sky_color": 8103167,
"water_color": 4566514,
"water_fog_color": 267827
},
"features": [
[],
[
"minecraft:lake_lava_underground",
"minecraft:lake_lava_surface"
],
[
"minecraft:amethyst_geode"
],
[
"minecraft:monster_room",
"minecraft:monster_room_deep"
],
[],
[],
[
"minecraft:ore_dirt",
"minecraft:ore_gravel",
"minecraft:ore_granite_upper",
"minecraft:ore_granite_lower",
"minecraft:ore_diorite_upper",
"minecraft:ore_diorite_lower",
"minecraft:ore_andesite_upper",
"minecraft:ore_andesite_lower",
"minecraft:ore_tuff",
"minecraft:underwater_magma",
"minecraft:disk_sand",
"minecraft:disk_clay",
"minecraft:disk_gravel"
],
[],
[
"minecraft:spring_water",
"minecraft:spring_lava"
],
[
"minecraft:glow_lichen",
"minecraft:trees_water",
"minecraft:flower_default",
"minecraft:patch_grass_badlands",
"minecraft:brown_mushroom_normal",
"minecraft:red_mushroom_normal",
"minecraft:patch_pumpkin",
"minecraft:patch_sugar_cane",
"minecraft:patch_firefly_bush_near_water",
"minecraft:seagrass_deep_warm",
"minecraft:kelp_warm"
],
[
"minecraft:freeze_top_layer"
]
],
"has_precipitation": true,
"spawn_costs": {},
"spawners": {
"ambient": [
{
"type": "minecraft:bat",
"maxCount": 8,
"minCount": 8,
"weight": 10
}
],
"axolotls": [],
"creature": [],
"misc": [],
"monster": [
{
"type": "minecraft:spider",
"maxCount": 4,
"minCount": 4,
"weight": 100
},
{
"type": "minecraft:zombie",
"maxCount": 4,
"minCount": 4,
"weight": 95
},
{
"type": "minecraft:zombie_villager",
"maxCount": 1,
"minCount": 1,
"weight": 5
},
{
"type": "minecraft:skeleton",
"maxCount": 4,
"minCount": 4,
"weight": 100
},
{
"type": "minecraft:slime",
"maxCount": 4,
"minCount": 4,
"weight": 100
},
{
"type": "minecraft:enderman",
"maxCount": 4,
"minCount": 1,
"weight": 10
},
{
"type": "minecraft:witch",
"maxCount": 1,
"minCount": 1,
"weight": 5
},
{
"type": "minecraft:drowned",
"maxCount": 1,
"minCount": 1,
"weight": 5
}
],
"underground_water_creature": [
{
"type": "minecraft:glow_squid",
"maxCount": 6,
"minCount": 4,
"weight": 10
}
],
"water_ambient": [
{
"type": "minecraft:cod",
"maxCount": 6,
"minCount": 3,
"weight": 8
},
{
"type": "minecraft:pufferfish",
"maxCount": 3,
"minCount": 1,
"weight": 5
},
{
"type": "minecraft:tropical_fish",
"maxCount": 8,
"minCount": 8,
"weight": 25
}
],
"water_creature": [
{
"type": "minecraft:squid",
"maxCount": 4,
"minCount": 1,
"weight": 8
},
{
"type": "minecraft:dolphin",
"maxCount": 2,
"minCount": 1,
"weight": 2
}
]
},
"temperature": 0.5
}

View file

@ -0,0 +1,204 @@
{
"carvers": [
"minecraft:cave",
"minecraft:cave_extra_underground",
"minecraft:canyon"
],
"downfall": 0.9,
"effects": {
"fog_color": 12638463,
"mood_sound": {
"block_search_extent": 8,
"offset": 2,
"sound": "minecraft:ambient.cave",
"tick_delay": 6000
},
"music": [
{
"data": {
"max_delay": 24000,
"min_delay": 12000,
"replace_current_music": false,
"sound": "minecraft:music.overworld.jungle"
},
"weight": 1
}
],
"music_volume": 1,
"sky_color": 7842047,
"water_color": 4159204,
"water_fog_color": 329011
},
"features": [
[],
[
"minecraft:lake_lava_underground",
"minecraft:lake_lava_surface"
],
[
"minecraft:amethyst_geode"
],
[
"minecraft:monster_room",
"minecraft:monster_room_deep"
],
[],
[],
[
"minecraft:ore_dirt",
"minecraft:ore_gravel",
"minecraft:ore_granite_upper",
"minecraft:ore_granite_lower",
"minecraft:ore_diorite_upper",
"minecraft:ore_diorite_lower",
"minecraft:ore_andesite_upper",
"minecraft:ore_andesite_lower",
"minecraft:ore_tuff",
"minecraft:underwater_magma",
"minecraft:disk_sand",
"minecraft:disk_clay",
"minecraft:disk_gravel"
],
[],
[
"minecraft:spring_water",
"minecraft:spring_lava"
],
[
"minecraft:glow_lichen",
"minecraft:bamboo_light",
"minecraft:trees_jungle",
"minecraft:flower_warm",
"minecraft:patch_grass_jungle",
"minecraft:brown_mushroom_normal",
"minecraft:red_mushroom_normal",
"minecraft:patch_pumpkin",
"minecraft:patch_sugar_cane",
"minecraft:patch_firefly_bush_near_water",
"minecraft:vines",
"minecraft:patch_melon"
],
[
"minecraft:freeze_top_layer"
]
],
"has_precipitation": true,
"spawn_costs": {},
"spawners": {
"ambient": [
{
"type": "minecraft:bat",
"maxCount": 8,
"minCount": 8,
"weight": 10
}
],
"axolotls": [],
"creature": [
{
"type": "minecraft:sheep",
"maxCount": 4,
"minCount": 4,
"weight": 12
},
{
"type": "minecraft:pig",
"maxCount": 4,
"minCount": 4,
"weight": 10
},
{
"type": "minecraft:chicken",
"maxCount": 4,
"minCount": 4,
"weight": 10
},
{
"type": "minecraft:cow",
"maxCount": 4,
"minCount": 4,
"weight": 8
},
{
"type": "minecraft:chicken",
"maxCount": 4,
"minCount": 4,
"weight": 10
},
{
"type": "minecraft:parrot",
"maxCount": 2,
"minCount": 1,
"weight": 40
},
{
"type": "minecraft:panda",
"maxCount": 2,
"minCount": 1,
"weight": 1
}
],
"misc": [],
"monster": [
{
"type": "minecraft:spider",
"maxCount": 4,
"minCount": 4,
"weight": 100
},
{
"type": "minecraft:zombie",
"maxCount": 4,
"minCount": 4,
"weight": 95
},
{
"type": "minecraft:zombie_villager",
"maxCount": 1,
"minCount": 1,
"weight": 5
},
{
"type": "minecraft:skeleton",
"maxCount": 4,
"minCount": 4,
"weight": 100
},
{
"type": "minecraft:slime",
"maxCount": 4,
"minCount": 4,
"weight": 100
},
{
"type": "minecraft:enderman",
"maxCount": 4,
"minCount": 1,
"weight": 10
},
{
"type": "minecraft:witch",
"maxCount": 1,
"minCount": 1,
"weight": 5
},
{
"type": "minecraft:ocelot",
"maxCount": 3,
"minCount": 1,
"weight": 2
}
],
"underground_water_creature": [
{
"type": "minecraft:glow_squid",
"maxCount": 6,
"minCount": 4,
"weight": 10
}
],
"water_ambient": [],
"water_creature": []
},
"temperature": 0.95
}

View file

@ -0,0 +1,167 @@
{
"carvers": [
"minecraft:cave",
"minecraft:cave_extra_underground",
"minecraft:canyon"
],
"downfall": 0.5,
"effects": {
"fog_color": 12638463,
"mood_sound": {
"block_search_extent": 8,
"offset": 2,
"sound": "minecraft:ambient.cave",
"tick_delay": 6000
},
"music": [
{
"data": {
"max_delay": 24000,
"min_delay": 12000,
"replace_current_music": false,
"sound": "minecraft:music.overworld.lush_caves"
},
"weight": 1
}
],
"music_volume": 1,
"sky_color": 8103167,
"water_color": 4159204,
"water_fog_color": 329011
},
"features": [
[],
[
"minecraft:lake_lava_underground",
"minecraft:lake_lava_surface"
],
[
"minecraft:amethyst_geode"
],
[
"minecraft:monster_room",
"minecraft:monster_room_deep"
],
[],
[],
[
"minecraft:ore_dirt",
"minecraft:ore_gravel",
"minecraft:ore_granite_upper",
"minecraft:ore_granite_lower",
"minecraft:ore_diorite_upper",
"minecraft:ore_diorite_lower",
"minecraft:ore_andesite_upper",
"minecraft:ore_andesite_lower",
"minecraft:ore_tuff",
"minecraft:underwater_magma",
"minecraft:ore_clay",
"minecraft:disk_sand",
"minecraft:disk_clay",
"minecraft:disk_gravel"
],
[],
[
"minecraft:spring_water",
"minecraft:spring_lava"
],
[
"minecraft:glow_lichen",
"minecraft:patch_tall_grass_2",
"minecraft:lush_caves_ceiling_vegetation",
"minecraft:cave_vines",
"minecraft:lush_caves_clay",
"minecraft:lush_caves_vegetation",
"minecraft:rooted_azalea_tree",
"minecraft:spore_blossom",
"minecraft:classic_vines_cave_feature"
],
[
"minecraft:freeze_top_layer"
]
],
"has_precipitation": true,
"spawn_costs": {},
"spawners": {
"ambient": [
{
"type": "minecraft:bat",
"maxCount": 8,
"minCount": 8,
"weight": 10
}
],
"axolotls": [
{
"type": "minecraft:axolotl",
"maxCount": 6,
"minCount": 4,
"weight": 10
}
],
"creature": [],
"misc": [],
"monster": [
{
"type": "minecraft:spider",
"maxCount": 4,
"minCount": 4,
"weight": 100
},
{
"type": "minecraft:zombie",
"maxCount": 4,
"minCount": 4,
"weight": 95
},
{
"type": "minecraft:zombie_villager",
"maxCount": 1,
"minCount": 1,
"weight": 5
},
{
"type": "minecraft:skeleton",
"maxCount": 4,
"minCount": 4,
"weight": 100
},
{
"type": "minecraft:slime",
"maxCount": 4,
"minCount": 4,
"weight": 100
},
{
"type": "minecraft:enderman",
"maxCount": 4,
"minCount": 1,
"weight": 10
},
{
"type": "minecraft:witch",
"maxCount": 1,
"minCount": 1,
"weight": 5
}
],
"underground_water_creature": [
{
"type": "minecraft:glow_squid",
"maxCount": 6,
"minCount": 4,
"weight": 10
}
],
"water_ambient": [
{
"type": "minecraft:tropical_fish",
"maxCount": 8,
"minCount": 8,
"weight": 25
}
],
"water_creature": []
},
"temperature": 0.5
}

View file

@ -0,0 +1,140 @@
{
"carvers": [
"minecraft:cave",
"minecraft:cave_extra_underground",
"minecraft:canyon"
],
"downfall": 0.3,
"effects": {
"fog_color": 12638463,
"mood_sound": {
"block_search_extent": 8,
"offset": 2,
"sound": "minecraft:ambient.cave",
"tick_delay": 6000
},
"music_volume": 1,
"sky_color": 8233727,
"water_color": 4159204,
"water_fog_color": 329011
},
"features": [
[],
[
"minecraft:lake_lava_underground",
"minecraft:lake_lava_surface"
],
[
"minecraft:amethyst_geode"
],
[
"minecraft:monster_room",
"minecraft:monster_room_deep"
],
[],
[],
[
"minecraft:ore_dirt",
"minecraft:ore_gravel",
"minecraft:ore_granite_upper",
"minecraft:ore_granite_lower",
"minecraft:ore_diorite_upper",
"minecraft:ore_diorite_lower",
"minecraft:ore_andesite_upper",
"minecraft:ore_andesite_lower",
"minecraft:ore_tuff",
"minecraft:underwater_magma",
"minecraft:disk_sand",
"minecraft:disk_clay",
"minecraft:disk_gravel"
],
[],
[
"minecraft:spring_water",
"minecraft:spring_lava"
],
[
"minecraft:glow_lichen",
"minecraft:flower_default",
"minecraft:patch_grass_badlands",
"minecraft:brown_mushroom_normal",
"minecraft:red_mushroom_normal",
"minecraft:patch_pumpkin",
"minecraft:patch_sugar_cane",
"minecraft:patch_firefly_bush_near_water"
],
[
"minecraft:freeze_top_layer"
]
],
"has_precipitation": true,
"spawn_costs": {},
"spawners": {
"ambient": [
{
"type": "minecraft:bat",
"maxCount": 8,
"minCount": 8,
"weight": 10
}
],
"axolotls": [],
"creature": [],
"misc": [],
"monster": [
{
"type": "minecraft:spider",
"maxCount": 4,
"minCount": 4,
"weight": 100
},
{
"type": "minecraft:zombie",
"maxCount": 4,
"minCount": 4,
"weight": 95
},
{
"type": "minecraft:zombie_villager",
"maxCount": 1,
"minCount": 1,
"weight": 5
},
{
"type": "minecraft:skeleton",
"maxCount": 4,
"minCount": 4,
"weight": 100
},
{
"type": "minecraft:slime",
"maxCount": 4,
"minCount": 4,
"weight": 100
},
{
"type": "minecraft:enderman",
"maxCount": 4,
"minCount": 1,
"weight": 10
},
{
"type": "minecraft:witch",
"maxCount": 1,
"minCount": 1,
"weight": 5
}
],
"underground_water_creature": [
{
"type": "minecraft:glow_squid",
"maxCount": 6,
"minCount": 4,
"weight": 10
}
],
"water_ambient": [],
"water_creature": []
},
"temperature": 0.2
}

View file

@ -0,0 +1,176 @@
{
"carvers": [
"minecraft:cave",
"minecraft:cave_extra_underground",
"minecraft:canyon"
],
"downfall": 0.5,
"effects": {
"fog_color": 12638463,
"mood_sound": {
"block_search_extent": 8,
"offset": 2,
"sound": "minecraft:ambient.cave",
"tick_delay": 6000
},
"music_volume": 1,
"sky_color": 8103167,
"water_color": 4445678,
"water_fog_color": 270131
},
"features": [
[],
[
"minecraft:lake_lava_underground",
"minecraft:lake_lava_surface"
],
[
"minecraft:amethyst_geode"
],
[
"minecraft:monster_room",
"minecraft:monster_room_deep"
],
[],
[],
[
"minecraft:ore_dirt",
"minecraft:ore_gravel",
"minecraft:ore_granite_upper",
"minecraft:ore_granite_lower",
"minecraft:ore_diorite_upper",
"minecraft:ore_diorite_lower",
"minecraft:ore_andesite_upper",
"minecraft:ore_andesite_lower",
"minecraft:ore_tuff",
"minecraft:underwater_magma",
"minecraft:disk_sand",
"minecraft:disk_clay",
"minecraft:disk_gravel"
],
[],
[
"minecraft:spring_water",
"minecraft:spring_lava"
],
[
"minecraft:glow_lichen",
"minecraft:trees_water",
"minecraft:flower_default",
"minecraft:patch_grass_badlands",
"minecraft:brown_mushroom_normal",
"minecraft:red_mushroom_normal",
"minecraft:patch_pumpkin",
"minecraft:patch_sugar_cane",
"minecraft:patch_firefly_bush_near_water",
"minecraft:warm_ocean_vegetation",
"minecraft:seagrass_warm",
"minecraft:sea_pickle"
],
[
"minecraft:freeze_top_layer"
]
],
"has_precipitation": true,
"spawn_costs": {},
"spawners": {
"ambient": [
{
"type": "minecraft:bat",
"maxCount": 8,
"minCount": 8,
"weight": 10
}
],
"axolotls": [],
"creature": [],
"misc": [],
"monster": [
{
"type": "minecraft:drowned",
"maxCount": 1,
"minCount": 1,
"weight": 5
},
{
"type": "minecraft:spider",
"maxCount": 4,
"minCount": 4,
"weight": 100
},
{
"type": "minecraft:zombie",
"maxCount": 4,
"minCount": 4,
"weight": 95
},
{
"type": "minecraft:zombie_villager",
"maxCount": 1,
"minCount": 1,
"weight": 5
},
{
"type": "minecraft:skeleton",
"maxCount": 4,
"minCount": 4,
"weight": 100
},
{
"type": "minecraft:slime",
"maxCount": 4,
"minCount": 4,
"weight": 100
},
{
"type": "minecraft:enderman",
"maxCount": 4,
"minCount": 1,
"weight": 10
},
{
"type": "minecraft:witch",
"maxCount": 1,
"minCount": 1,
"weight": 5
}
],
"underground_water_creature": [
{
"type": "minecraft:glow_squid",
"maxCount": 6,
"minCount": 4,
"weight": 10
}
],
"water_ambient": [
{
"type": "minecraft:pufferfish",
"maxCount": 3,
"minCount": 1,
"weight": 15
},
{
"type": "minecraft:tropical_fish",
"maxCount": 8,
"minCount": 8,
"weight": 25
}
],
"water_creature": [
{
"type": "minecraft:squid",
"maxCount": 4,
"minCount": 4,
"weight": 10
},
{
"type": "minecraft:dolphin",
"maxCount": 2,
"minCount": 1,
"weight": 2
}
]
},
"temperature": 0.5
}

View file

@ -0,0 +1,6 @@
{
"pack": {
"pack_format": 81,
"description": "DuneRealms caladan biome ecology and native structures · Minecraft 1.21.8"
}
}

View file

@ -0,0 +1,106 @@
{
"carvers": "minecraft:nether_cave",
"downfall": 0,
"effects": {
"additions_sound": {
"sound": "minecraft:ambient.crimson_forest.additions",
"tick_chance": 0.0111
},
"ambient_sound": "minecraft:ambient.crimson_forest.loop",
"fog_color": 3343107,
"mood_sound": {
"block_search_extent": 8,
"offset": 2,
"sound": "minecraft:ambient.crimson_forest.mood",
"tick_delay": 6000
},
"music": [
{
"data": {
"max_delay": 24000,
"min_delay": 12000,
"replace_current_music": false,
"sound": "minecraft:music.nether.crimson_forest"
},
"weight": 1
}
],
"music_volume": 1,
"particle": {
"options": {
"type": "minecraft:crimson_spore"
},
"probability": 0.025
},
"sky_color": 7254527,
"water_color": 4159204,
"water_fog_color": 329011
},
"features": [
[],
[],
[],
[],
[],
[],
[],
[
"minecraft:spring_open",
"minecraft:patch_fire",
"minecraft:glowstone_extra",
"minecraft:glowstone",
"minecraft:ore_magma",
"minecraft:spring_closed",
"minecraft:ore_gravel_nether",
"minecraft:ore_blackstone"
],
[],
[
"minecraft:spring_lava",
"minecraft:brown_mushroom_normal",
"minecraft:red_mushroom_normal",
"minecraft:weeping_vines",
"minecraft:crimson_fungi",
"minecraft:crimson_forest_vegetation"
]
],
"has_precipitation": false,
"spawn_costs": {},
"spawners": {
"ambient": [],
"axolotls": [],
"creature": [
{
"type": "minecraft:strider",
"maxCount": 2,
"minCount": 1,
"weight": 60
}
],
"misc": [],
"monster": [
{
"type": "minecraft:zombified_piglin",
"maxCount": 4,
"minCount": 2,
"weight": 1
},
{
"type": "minecraft:hoglin",
"maxCount": 4,
"minCount": 3,
"weight": 9
},
{
"type": "minecraft:piglin",
"maxCount": 4,
"minCount": 3,
"weight": 5
}
],
"underground_water_creature": [],
"water_ambient": [],
"water_creature": []
},
"temperature": 2
}

View file

@ -0,0 +1,111 @@
{
"carvers": [
"minecraft:cave",
"minecraft:cave_extra_underground",
"minecraft:canyon"
],
"downfall": 0.8,
"effects": {
"dry_foliage_color": 10528412,
"fog_color": 8484720,
"foliage_color": 8883574,
"grass_color": 7832178,
"mood_sound": {
"block_search_extent": 8,
"offset": 2,
"sound": "minecraft:ambient.cave",
"tick_delay": 6000
},
"music": [],
"music_volume": 0,
"sky_color": 12171705,
"water_color": 7768221,
"water_fog_color": 5597568
},
"features": [
[],
[
"minecraft:lake_lava_underground",
"minecraft:lake_lava_surface"
],
[
"minecraft:amethyst_geode"
],
[
"minecraft:monster_room",
"minecraft:monster_room_deep"
],
[],
[],
[
"minecraft:ore_dirt",
"minecraft:ore_gravel",
"minecraft:ore_granite_upper",
"minecraft:ore_granite_lower",
"minecraft:ore_diorite_upper",
"minecraft:ore_diorite_lower",
"minecraft:ore_andesite_upper",
"minecraft:ore_andesite_lower",
"minecraft:ore_tuff",
"minecraft:underwater_magma",
"minecraft:disk_sand",
"minecraft:disk_gravel"
],
[],
[
"minecraft:spring_lava"
],
[
"minecraft:glow_lichen",
"minecraft:pale_garden_vegetation",
"minecraft:pale_moss_patch",
"minecraft:pale_garden_flowers",
"minecraft:flower_pale_garden",
"minecraft:patch_grass_forest",
"minecraft:patch_pumpkin",
"minecraft:patch_firefly_bush_near_water"
],
[
"minecraft:freeze_top_layer"
]
],
"has_precipitation": false,
"spawn_costs": {},
"spawners": {
"ambient": [],
"axolotls": [],
"creature": [
{
"type": "minecraft:strider",
"maxCount": 2,
"minCount": 1,
"weight": 60
}
],
"misc": [],
"monster": [
{
"type": "minecraft:zombified_piglin",
"maxCount": 4,
"minCount": 2,
"weight": 1
},
{
"type": "minecraft:hoglin",
"maxCount": 4,
"minCount": 3,
"weight": 9
},
{
"type": "minecraft:piglin",
"maxCount": 4,
"minCount": 3,
"weight": 5
}
],
"underground_water_creature": [],
"water_ambient": [],
"water_creature": []
},
"temperature": 0.7
}

View file

@ -0,0 +1,101 @@
{
"carvers": "minecraft:nether_cave",
"downfall": 0,
"effects": {
"additions_sound": {
"sound": "minecraft:ambient.warped_forest.additions",
"tick_chance": 0.0111
},
"ambient_sound": "minecraft:ambient.warped_forest.loop",
"fog_color": 1705242,
"mood_sound": {
"block_search_extent": 8,
"offset": 2,
"sound": "minecraft:ambient.warped_forest.mood",
"tick_delay": 6000
},
"music": [
{
"data": {
"max_delay": 24000,
"min_delay": 12000,
"replace_current_music": false,
"sound": "minecraft:music.nether.warped_forest"
},
"weight": 1
}
],
"music_volume": 1,
"particle": {
"options": {
"type": "minecraft:warped_spore"
},
"probability": 0.01428
},
"sky_color": 7254527,
"water_color": 4159204,
"water_fog_color": 329011
},
"features": [
[],
[],
[],
[],
[],
[],
[],
[
"minecraft:spring_open",
"minecraft:patch_fire",
"minecraft:patch_soul_fire",
"minecraft:glowstone_extra",
"minecraft:glowstone",
"minecraft:ore_magma",
"minecraft:spring_closed",
"minecraft:ore_gravel_nether",
"minecraft:ore_blackstone"
],
[],
[
"minecraft:spring_lava",
"minecraft:brown_mushroom_normal",
"minecraft:red_mushroom_normal",
"minecraft:warped_fungi",
"minecraft:warped_forest_vegetation",
"minecraft:nether_sprouts",
"minecraft:twisting_vines"
]
],
"has_precipitation": false,
"spawn_costs": {
"minecraft:enderman": {
"charge": 1,
"energy_budget": 0.12
}
},
"spawners": {
"ambient": [],
"axolotls": [],
"creature": [
{
"type": "minecraft:strider",
"maxCount": 2,
"minCount": 1,
"weight": 60
}
],
"misc": [],
"monster": [
{
"type": "minecraft:enderman",
"maxCount": 4,
"minCount": 4,
"weight": 1
}
],
"underground_water_creature": [],
"water_ambient": [],
"water_creature": []
},
"temperature": 2
}

View file

@ -0,0 +1,6 @@
{
"pack": {
"pack_format": 81,
"description": "DuneRealms giedi_prime biome ecology and native structures · Minecraft 1.21.8"
}
}

View file

@ -0,0 +1,104 @@
{
"carvers": [
"minecraft:cave",
"minecraft:cave_extra_underground",
"minecraft:canyon"
],
"downfall": 0.4,
"effects": {
"fog_color": 12638463,
"mood_sound": {
"block_search_extent": 8,
"offset": 2,
"sound": "minecraft:ambient.cave",
"tick_delay": 6000
},
"music_volume": 1,
"sky_color": 7907327,
"water_color": 4159204,
"water_fog_color": 329011
},
"features": [
[],
[
"minecraft:lake_lava_underground",
"minecraft:lake_lava_surface"
],
[
"minecraft:amethyst_geode"
],
[
"minecraft:monster_room",
"minecraft:monster_room_deep"
],
[],
[],
[
"minecraft:ore_dirt",
"minecraft:ore_gravel",
"minecraft:ore_granite_upper",
"minecraft:ore_granite_lower",
"minecraft:ore_diorite_upper",
"minecraft:ore_diorite_lower",
"minecraft:ore_andesite_upper",
"minecraft:ore_andesite_lower",
"minecraft:ore_tuff",
"minecraft:underwater_magma",
"minecraft:disk_sand",
"minecraft:disk_clay",
"minecraft:disk_gravel"
],
[],
[
"minecraft:spring_water",
"minecraft:spring_lava"
],
[
"minecraft:glow_lichen",
"minecraft:flower_default",
"minecraft:patch_grass_badlands",
"minecraft:brown_mushroom_normal",
"minecraft:red_mushroom_normal",
"minecraft:patch_pumpkin",
"minecraft:patch_sugar_cane",
"minecraft:patch_firefly_bush_near_water"
],
[
"minecraft:freeze_top_layer"
]
],
"has_precipitation": true,
"spawn_costs": {},
"spawners": {
"ambient": [
{
"type": "minecraft:bat",
"maxCount": 8,
"minCount": 8,
"weight": 10
}
],
"axolotls": [],
"creature": [
{
"type": "minecraft:turtle",
"maxCount": 5,
"minCount": 2,
"weight": 5
}
],
"misc": [],
"monster": [],
"underground_water_creature": [
{
"type": "minecraft:glow_squid",
"maxCount": 6,
"minCount": 4,
"weight": 10
}
],
"water_ambient": [],
"water_creature": []
},
"temperature": 0.8
}

View file

@ -0,0 +1,128 @@
{
"carvers": [
"minecraft:cave",
"minecraft:cave_extra_underground",
"minecraft:canyon"
],
"downfall": 0.8,
"effects": {
"fog_color": 12638463,
"foliage_color": 11983713,
"grass_color": 11983713,
"mood_sound": {
"block_search_extent": 8,
"offset": 2,
"sound": "minecraft:ambient.cave",
"tick_delay": 6000
},
"music": [
{
"data": {
"max_delay": 24000,
"min_delay": 12000,
"replace_current_music": false,
"sound": "minecraft:music.overworld.cherry_grove"
},
"weight": 1
}
],
"music_volume": 1,
"sky_color": 8103167,
"water_color": 6141935,
"water_fog_color": 6141935
},
"features": [
[],
[
"minecraft:lake_lava_underground",
"minecraft:lake_lava_surface"
],
[
"minecraft:amethyst_geode"
],
[
"minecraft:monster_room",
"minecraft:monster_room_deep"
],
[],
[],
[
"minecraft:ore_dirt",
"minecraft:ore_gravel",
"minecraft:ore_granite_upper",
"minecraft:ore_granite_lower",
"minecraft:ore_diorite_upper",
"minecraft:ore_diorite_lower",
"minecraft:ore_andesite_upper",
"minecraft:ore_andesite_lower",
"minecraft:ore_tuff",
"minecraft:underwater_magma",
"minecraft:disk_sand",
"minecraft:disk_clay",
"minecraft:disk_gravel"
],
[
"minecraft:ore_infested"
],
[
"minecraft:spring_water",
"minecraft:spring_lava"
],
[
"minecraft:glow_lichen",
"minecraft:patch_tall_grass_2",
"minecraft:patch_grass_plain",
"minecraft:flower_cherry",
"minecraft:trees_cherry"
],
[
"minecraft:freeze_top_layer"
]
],
"has_precipitation": true,
"spawn_costs": {},
"spawners": {
"ambient": [
{
"type": "minecraft:bat",
"maxCount": 8,
"minCount": 8,
"weight": 10
}
],
"axolotls": [],
"creature": [
{
"type": "minecraft:pig",
"maxCount": 2,
"minCount": 1,
"weight": 1
},
{
"type": "minecraft:rabbit",
"maxCount": 6,
"minCount": 2,
"weight": 2
},
{
"type": "minecraft:sheep",
"maxCount": 4,
"minCount": 2,
"weight": 2
}
],
"misc": [],
"monster": [],
"underground_water_creature": [
{
"type": "minecraft:glow_squid",
"maxCount": 6,
"minCount": 4,
"weight": 10
}
],
"water_ambient": [],
"water_creature": []
},
"temperature": 0.5
}

View file

@ -0,0 +1,138 @@
{
"carvers": [
"minecraft:cave",
"minecraft:cave_extra_underground",
"minecraft:canyon"
],
"downfall": 0.8,
"effects": {
"dry_foliage_color": 8082228,
"fog_color": 12638463,
"grass_color_modifier": "dark_forest",
"mood_sound": {
"block_search_extent": 8,
"offset": 2,
"sound": "minecraft:ambient.cave",
"tick_delay": 6000
},
"music": [
{
"data": {
"max_delay": 24000,
"min_delay": 12000,
"replace_current_music": false,
"sound": "minecraft:music.overworld.forest"
},
"weight": 1
}
],
"music_volume": 1,
"sky_color": 7972607,
"water_color": 4159204,
"water_fog_color": 329011
},
"features": [
[],
[
"minecraft:lake_lava_underground",
"minecraft:lake_lava_surface"
],
[
"minecraft:amethyst_geode"
],
[
"minecraft:monster_room",
"minecraft:monster_room_deep"
],
[],
[],
[
"minecraft:ore_dirt",
"minecraft:ore_gravel",
"minecraft:ore_granite_upper",
"minecraft:ore_granite_lower",
"minecraft:ore_diorite_upper",
"minecraft:ore_diorite_lower",
"minecraft:ore_andesite_upper",
"minecraft:ore_andesite_lower",
"minecraft:ore_tuff",
"minecraft:underwater_magma",
"minecraft:disk_sand",
"minecraft:disk_clay",
"minecraft:disk_gravel"
],
[],
[
"minecraft:spring_water",
"minecraft:spring_lava"
],
[
"minecraft:glow_lichen",
"minecraft:dark_forest_vegetation",
"minecraft:forest_flowers",
"minecraft:flower_default",
"minecraft:patch_grass_forest",
"minecraft:brown_mushroom_normal",
"minecraft:red_mushroom_normal",
"minecraft:patch_leaf_litter",
"minecraft:patch_pumpkin",
"minecraft:patch_sugar_cane",
"minecraft:patch_firefly_bush_near_water"
],
[
"minecraft:freeze_top_layer"
]
],
"has_precipitation": true,
"spawn_costs": {},
"spawners": {
"ambient": [
{
"type": "minecraft:bat",
"maxCount": 8,
"minCount": 8,
"weight": 10
}
],
"axolotls": [],
"creature": [
{
"type": "minecraft:sheep",
"maxCount": 4,
"minCount": 4,
"weight": 12
},
{
"type": "minecraft:pig",
"maxCount": 4,
"minCount": 4,
"weight": 10
},
{
"type": "minecraft:chicken",
"maxCount": 4,
"minCount": 4,
"weight": 10
},
{
"type": "minecraft:cow",
"maxCount": 4,
"minCount": 4,
"weight": 8
}
],
"misc": [],
"monster": [],
"underground_water_creature": [
{
"type": "minecraft:glow_squid",
"maxCount": 6,
"minCount": 4,
"weight": 10
}
],
"water_ambient": [],
"water_creature": []
},
"temperature": 0.7
}

Some files were not shown because too many files have changed in this diff Show more