Comments (3)
I believe Bukkit API already has what you're looking for
from purpur.
This isn't a simple change to one value. Changing maximum repair cost alone doesn't work - unlike most inventory interaction, the client actually will not send packets if it doesn't think it can withdraw the result. It will only send the click for levels over 40 if it is in creative. Additionally, the client uses a short to represent the repair cost, which means numbers over 32767 are not rendered properly under any circumstances, though the server can technically support them.
I wrote AnvilUnlocker as an experiment to see if I could trick the client into sending the packet anyway. Requires ProtocolLib because I have no plans to maintain or develop it further.
from purpur.
Unfortunately, Jikoo is correct. The client doesn't send any click events to the server if the cost is not 1-39. You'll have to trick the client by setting the window property to 1-39 and use the method from Bukkit API I mentioned before. Not a clean solution, I know :(
from purpur.
Related Issues (20)
- Armadillo not added to ridables
- Entities do not travel with the player into the portal
- java.util.zip.ZipException: zip END header not found HOT 4
- Bukkit API implementation HOT 4
- TPS Problem HOT 3
- Attempted Double World add on EntityCow
- Trial spawner interaction issues HOT 3
- Cannot Prohibit Reinforcements HOT 8
- Shulkers riding boats not teleporting through end gateways HOT 1
- Snowballs and eggs do knockback to players
- Using essentialsx /kit featuring a signed book causes an insta discconect, can be abused to duplicate items. HOT 2
- 22/10000 实时翻译 划译 Where to adjust the Hell's Gate repair for the new feature 1.21.0 HOT 1
- Cactus does not break at new growth rate HOT 3
- Where is pufferfish.yml HOT 3
- ChunkLoadEvent and ChunkUnloadEvent never fire after upstream changes HOT 8
- Circular plugin loading Server Crash from plugin AdvancedChat HOT 1
- Certain consumables are not being consumed right HOT 1
- This error occurs when starting the server HOT 12
- Infinity not working on spectral and tipped arrows HOT 1
- Above Vanilla enchants. HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from purpur.