Minebench/Pipes

Do you want to work on this issue?

You can request for a bounty in order to promote it!

New Line not working on the item lore of pipe in/output, settings book... #10

BijuuKrunos posted onGitHub

What is happening?

Using newest Version on paper 1.21.1, i am not sure if that even worked in the past but how ever i try i cant get it to work.

Tried:

lore: '&bItem&8-&bOutput for an Item&8-&bPipe&8. \n &7You can find help at &8/&6pipe'

lore: -| '&bItem&8-&bOutput for an Item&8-&bPipe&8.' '&7You can find help at &8/&6pipe'

lore: | &bItem&8-&bOutput for an Item&8-&bPipe&8. &7You can find help at &8/&6pipe

What did you expect to happen?

that the text of the item lore get to a new line.

Version

Pipe 324

Config

pipeCacheDuration: 600 #s
pipeCacheSize: 1000 #number of cached inputs
transferCooldown: 60 #ticks
transferCount: 10 #max amounts of stacks that one pipe can transfer
inputToOutputRatio: 0.0 #ratio for max transfers per pipe per move task
pistonUpdateCheck: true
convertToBlockInfoOnChunkLoad: false
customModelDataOffset: 1
defaultLocale: en
dispenserRecipe:
  DISPENSER: 1
  HOPPER: 1
  BOOK: 1
dropperRecipe:
  DROPPER: 1
  HOPPER: 1
  BOOK: 1
chunkLoaderRecipe:
  FURNACE: 1
  OBSIDIAN: 1
  GOLD_BLOCK: 1
maxPipeLength: 256
maxPipeOutputs: 128
gui:
  true: "PRISMARINE_SHARD:63"
  false: "PRISMARINE_SHARD:67"
  input: "PRISMARINE_SHARD:62"
  whitelist:
    true: "PRISMARINE_SHARD:23"
    false: "PRISMARINE_SHARD:21"
  filler: "PRISMARINE_SHARD:1"
  copy: "WRITABLE_BOOK"

Server/system Version

paper-196

Log

[Put your log here]

What other programs/plugins are you running?

dont think you need this :)

Additional context

Ohh and how do i use the language key feature you added in? For Ressourcepacks? tried it, but did not worked.


another example:

settings-book:
      name: '&e{0} Settings book'
      lore: |
        &bSettings for a &a{0}&8:
        {1}

        &7Sneak and leftclick with this book on a
        &a{0} &7to apply them&8!

image

posted by BijuuKrunos 4 months ago

The format used should work (and is the same in the default config)

From the screenshot it looks like your file-encoding is wrong. Make sure you use UTF8.

posted by Phoenix616 4 months ago

Just used the default settings-book config. I am using Notepad++ and the encoding is UTF-8. Is still wrong :) image image

posted by BijuuKrunos 4 months ago

Also make sure your line-endings are lf, not crlf. Windows tends to mess with those.

posted by Phoenix616 4 months ago

image looks fine to me ;P

posted by BijuuKrunos 4 months ago

No idea how you managed that then. Make sure your java also expects lf and utf8 I guess. The default config included in the jar works fine on a normal Debian as well as Windows with -Dfile.encoding=UTF8 to enforce UTF8.

posted by Phoenix616 4 months ago

but why does i only have this problem with pipes? no other plugin has a problem with something like that. Using Pterodactyl paper Egg. Java 21

startup command: java -Xms24576M -Xmx24576M -Dterminal.jline=false -Dterminal.ansi=true -XX:+AlwaysPreTouch -XX:+DisableExplicitGC -XX:+ParallelRefProcEnabled -XX:+PerfDisableSharedMem -XX:+UnlockExperimentalVMOptions -XX:+UseG1GC -XX:G1HeapRegionSize=8M -XX:G1HeapWastePercent=5 -XX:G1MaxNewSizePercent=40 -XX:G1MixedGCCountTarget=4 -XX:G1MixedGCLiveThresholdPercent=90 -XX:G1NewSizePercent=30 -XX:G1RSetUpdatingPauseTimePercent=5 -XX:G1ReservePercent=20 -XX:InitiatingHeapOccupancyPercent=15 -XX:MaxGCPauseMillis=200 -XX:MaxTenuringThreshold=1 -XX:SurvivorRatio=32 -Dusing.aikars.flags=https://mcflags.emc.gs -Daikars.new.flags=true -jar paper-1.21.1-132.jar

dont see a reason why it should not work mhhhh

posted by BijuuKrunos 4 months ago

I don't use Pterodactyl so I wouldn't know. (From my experience it causes several really weird issues though) Try forcing it to use UTF8 for all files via the system property I guess.

Also make sure whatever way you are using to upload that file doesn't mess with the content or edit the default one directly in pterodactyl.

posted by Phoenix616 4 months ago

Fund this Issue

$0.00
Funded
Only logged in users can fund an issue

Pull requests