@@ -23,15 +23,18 @@ It supports flexible teleportation modes, multi-language localization, and fully
2323
2424## Commands
2525
26- | Command | Description |
27- | --------------------------------| -------------------------------------------------|
28- | ` /ptp <x> <y> <z> ` | Teleport to specified coordinates |
29- | ` /ptp <dimension> <x> <y> <z> ` | Teleport to coordinates in a specific dimension |
30- | ` /ptpaccept ` | Accept a teleport request |
31- | ` /ptpdeny ` | Deny a teleport request |
32- | ` /ptpcancel ` | Cancel a pending teleport request |
33- | ` /ptpback ` | Return to the previous location |
34- | ` /ptphome ` | Teleport to your home (if configured) |
26+ | Command | Description |
27+ | --------------------------------| -------------------------------------------------------------|
28+ | ` /ptp ` | Get command guide for PayTp. |
29+ | ` /ptp (dimension) <x> <y> <z> ` | Teleport to specified coordinates (in a specific dimension) |
30+ | ` /ptpto <player> ` | Send request to teleport to a player |
31+ | ` /ptphere <player> ` | Send request to a player to teleport to you |
32+ | ` /ptpaccept (player) ` | Accept a teleport request (from a specific player) |
33+ | ` /ptpdeny (player) ` | Deny a teleport request (from a specific player) |
34+ | ` /ptpcancel (player) ` | Cancel a pending teleport request (to a specific player) |
35+ | ` /ptpback ` | Return to the previous location |
36+ | ` /ptphome ` | Teleport to your home (if configured) |
37+ | ` /ptphome set ` | Set your home to your current position |
3538
3639---
3740
@@ -54,6 +57,8 @@ It supports flexible teleportation modes, multi-language localization, and fully
5457 },
5558 "request" : {
5659 "requestCommand" : {
60+ "toCommand" : " ptpto" ,
61+ "here" : " ptphere" ,
5762 "acceptCommand" : " ptpaccept" ,
5863 "denyCommand" : " ptpdeny" ,
5964 "cancelCommand" : " ptpcancel"
@@ -110,11 +115,13 @@ It supports flexible teleportation modes, multi-language localization, and fully
110115
111116#### Request Commands
112117
113- | Field | Type | Description |
114- | -----------------| ----------| ----------------------------------------------------------|
115- | ` acceptCommand ` | ` string ` | Command to accept a request (default ` /ptpaccept ` ). |
116- | ` denyCommand ` | ` string ` | Command to deny a request (default ` /ptpdeny ` ). |
117- | ` cancelCommand ` | ` string ` | Command to cancel a sent request (default ` /ptpcancel ` ). |
118+ | Field | Type | Description |
119+ | -----------------| ----------| -----------------------------------------------------------------------------------------|
120+ | ` toCommand ` | ` string ` | Command to request teleporting to the target player (default ` /ptpto ` ). |
121+ | ` hereCommand ` | ` string ` | Command to request the target player to teleport to your location (default ` /ptphere ` ). |
122+ | ` acceptCommand ` | ` string ` | Command to accept a request (default ` /ptpaccept ` ). |
123+ | ` denyCommand ` | ` string ` | Command to deny a request (default ` /ptpdeny ` ). |
124+ | ` cancelCommand ` | ` string ` | Command to cancel a sent request (default ` /ptpcancel ` ). |
118125
119126#### Configuration
120127
@@ -190,11 +197,11 @@ It supports flexible teleportation modes, multi-language localization, and fully
190197 - Same dimension:
191198 - Use direct Euclidean distance.
192199 - Cross-dimension:
193- - Overworld → Nether: ×8
194- - Nether → Overworld: × 0.125
195- - Entering/leaving The End: use distance from origin ` (0,0,0) ` .
200+ - Overworld × 8 → Nether;
201+ - Nether × 0.125 → Overworld;
202+ - Entering/leaving The End: use the distance from whichever coordinate is in The End to the End center ` (0,0,0) ` .
196203 - Other dimensions:
197- - Use Euclidean distance by default. Can customize in ` PayTpCalculator#calculatePrice ` .
204+ - Use Euclidean distance by default. Can customize in ` PayTpCalculator#calculateDistance ` .
198205
1992062 . ** Formula** :
200207
@@ -218,11 +225,11 @@ Default `price` configuration:
218225
219226``` json
220227{
221- "minPrice" : 1 ,
222- "maxPrice" : 64 ,
223- "baseRadius" : 10.0 ,
224- "rate" : 0.01 ,
225- "crossDimMultiplier" : 1.5
228+ "minPrice" : 1 ,
229+ "maxPrice" : 64 ,
230+ "baseRadius" : 10.0 ,
231+ "rate" : 0.01 ,
232+ "crossDimMultiplier" : 1.5
226233}
227234```
228235
@@ -253,14 +260,14 @@ If the **Cloth Config API** is installed, all settings can be adjusted directly
253260| Fabric Loader | ✅ |
254261| Server Only | ✅ |
255262| Client UI (Cloth Config) | ✅ |
256- | Multi-language Support | zh_cn / zh_tw / en_us |
257- | Minecraft Version | 1.21+ |
263+ | Multi-language Support | en_us / zh_cn / zh_tw |
264+ | Minecraft Version | 1.21.4+ |
258265
259266---
260267
261268## Credits
262269
263- This mod is inspired by early economy-style teleport plugins. The request logic references the TPA mod.
270+ This mod is inspired by early economy-style teleport plugins. The request logic references the ** Teleport Command ** mod.
264271Developed using Fabric API and fully compatible with vanilla saves.
265272Feel free to submit issues or pull requests on GitHub to improve configuration and calculation algorithms.
266273
0 commit comments