#Custom block
1 messages · Page 1 of 1 (latest)
You want it to go up to as many levels as possible?
No limit
Which would be 255 btw
Actually the game does have a limit of 255 so you want it to go up to that?
okay so firstly datapacks can't make enchanting tables (or any other block for that matter) the job block unfortunately
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
Because datapacks aren't nearly as powerful as mods
Is there a way to make this how would u do it
Well you could theoretically make this villager exist and make it spawn with commands
A block would be easier to implement your logic, but making custom blocks isn't that straightforward
Conversely, making the villager is easier but it's more difficult to implement your intended solution, so that would take time
Let me just explain what I have in mind for this
Idk how to code would u help me
And you can consider what you want
Ok
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"
A lot of my plug-ins though may not go to that version straight away
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)
Oh okay
Well yea we can use a simple python (or similar) script to automate the process of generating the trades
Would it be easier to make as plug-in or data pack
I'm not experienced with plugins, sorry, but it would be easier with mods for sure
There are server types that let both mods and plugins run
Such as arclight
Iirc
Okay wait what version are you on right now?
I’m using paper cause all my plug-ins r paper exclusive plus I have geyser also I’m on 1.21,11
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
Block might be better make it a super enchanting table should it be emeralds or lapis
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
Do u know anyone who is
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
@edgy osprey @normal lark @green sphinx
No
Y