#Custom block

1 messages · Page 1 of 1 (latest)

cyan cypress
#

I want to make a block that u give an enchanted item and emeralds it will level the enchants up even above max and the more emeralds the more levels it adds and u can give emerald blocks which = 9 emeralds if u were to give normal emerald

wide cryptBOT
#

-# (helpers summoned) <@&1166082198152159386> <@&1202694677766348840>

frosty badger
cyan cypress
#

No limit

frosty badger
#

Which would be 255 btw

frosty badger
#

okay so firstly datapacks can't make enchanting tables (or any other block for that matter) the job block unfortunately

cyan cypress
#

Yes

#

Why not

frosty badger
#

I mean there are ways to emulate a job block probably using extremely hacky solutions but that would be quite daunting for a beginner to implement

frosty badger
cyan cypress
#

Is there a way to make this how would u do it

frosty badger
cyan cypress
#

Oh

#

I want it for survival

#

Would it be easier to make it a block or a villager

frosty badger
#

Conversely, making the villager is easier but it's more difficult to implement your intended solution, so that would take time

frosty badger
cyan cypress
#

Idk how to code would u help me

frosty badger
#

And you can consider what you want

cyan cypress
#

Ok

frosty badger
#

Basically in the new upcoming update, 26.1, villager trades will finally be data driven i.e. influenced by datapacks so it will make your process significantly easier

#

But this method doesn't have any way to go like "okay he gave me sharpness 1 and 1 emerald so I need to make it sharpness 2"

cyan cypress
#

A lot of my plug-ins though may not go to that version straight away

frosty badger
#

But the best thing I thought of is that we need to individually include every single combination the villager can receive separately as a trade so

Sharpness 1 + 1 Emerald = Sharpness 2
Sharpness 1 + 2 Emerald= Sharpness 3
.
.
.
.
Sharpness 254 + 1 Emerald= Sharpness 255
(similar for every other enchantment + repeated for every single item with the enchantment)

#

And you can see how long that would take to type out

#

Luckily we could use a simple python script to generate the entire file (which would undoubtedly be very huge but it should work)

cyan cypress
#

I was thinking 16 per level

#

To make it slighy balanced

frosty badger
#

Well yea we can use a simple python (or similar) script to automate the process of generating the trades

cyan cypress
#

Would it be easier to make as plug-in or data pack

frosty badger
cyan cypress
#

I can’t do mods cause of my server type

#

I’m using paper

frosty badger
#

There are server types that let both mods and plugins run

#

Such as arclight

#

Iirc

#

Okay wait what version are you on right now?

cyan cypress
#

I’m using paper cause all my plug-ins r paper exclusive plus I have geyser also I’m on 1.21,11

frosty badger
#

I'll just give you a command to run that spawns in a villager and you can see how the trade interface would look like with my solution and see if you want that

#

Or else we could try making a block or something

cyan cypress
#

Block might be better make it a super enchanting table should it be emeralds or lapis

frosty badger
#

well I'm not really good at implementing custom blocks so you'd have to wait for somebody else to come along and help with that

cyan cypress
#

Do u know anyone who is

frosty badger
#

not really but there is bound to be someone eventually who sees this thread

#

since the helpers are all across different timezones and in their own schedules they're probably busy rn but someone will eventually come along

#

you should probably rename the thread to specify your new requirement now and edit the original message so people know what you now want

cyan cypress
#

I don’t wanna wait forever

#

Custom block

cyan cypress
#

@edgy osprey @normal lark @green sphinx

green sphinx
#

No

cyan cypress
frosty badger
#

You can't just go around spontaneously pinging people

#

in the worst scenario if this thread gets drowned out amongst others for a considerable amount of time you could create a new one

cyan cypress
#

Sry I know them I’ve worked with them before

#

Ok