#PlaceholderAPI (BANNERS)

1 messages · Page 1 of 1 (latest)

indigo sail
#

I have a question, is there, in some way, a way that a player can create a "Banner" and it is saved as a "Placeholder" then, to be able to show this "Banner" in some menu of DeluxeMenus?

halcyon merlin
indigo sail
#

The problem here is, to find a way to identify the patterns and dye colors, to store them in those placeholders, something that helps me identify the banner

#

for example, a placeholder that tells me what patterns and dye colors the banner has in the user's hand, something like %banner_inhand_pattern_1% %banner_inhand_dye_1%

fossil flare
#

might be able to do it with checkitem

#

/papi parse me %checkitem_getinfo:mainhand% to start

indigo sail
#

i get this

fossil flare
#

I guess I should colorize that 😂

#

so it would be possible to extract... but it might be easier to have somebody make an expansion for it

indigo sail
#

hmmmm

fossil flare
indigo sail
#

hmmmm

fossil flare
#

oof it uses numbers

#

gotta translate that to colors

indigo sail
#

idk

#

let me see

fossil flare
#

also have to translate the banner codes to pattern types

#

idk what mr is

indigo sail
#

what?

fossil flare
#

aha it's Middle Rhombus

indigo sail
#

ah

fossil flare
#
banner_meta:
- BLACK;RHOMBUS_MIDDLE
#

from (maybe) {Color:0,Pattern:"mr"}

#

which you can parse the nbt as a json actually with javascript

indigo sail
#

how?

fossil flare
#
indigo sail
fossil flare
#

😮

#

I just copied that from excel and it's a picture

#
var checkitem = "%checkitem_getinfo:mainhand_nbtstrings:%"
var data = JSON.parse(checkitem)
var patterns = data.BlockEntityTag.Patterns
#

starting it out here

#

really nice to use the forum post as a "workspace"

indigo sail
#

😮

#

qwq

#

so ...qwq what i must do? .w.

fossil flare
#

i'm setting up a server to test

indigo sail
#

😮 ❤️

#

ty uwu

fossil flare
#

ya... prob would be easier to have somebody make an expansion

indigo sail
#

😮

#

nice!

#

uwu