Comments (14)
maybe these kind of thing too https://github.com/AlexKvazos/MinecraftChat/blob/master/app/server/parsers/vanilla.js
from minecraft-data.
spawnedObjectTypes / mobTypes are integrated (entities.json)
from minecraft-data.
Wurstmineberg has a decent collection: https://github.com/wurstmineberg/assets.wurstmineberg.de/tree/master/json
from minecraft-data.
Those Physics constants are only true for Mineflayer's implementation of Physics which is divergent from the 20tps notchian standard (Mineflayer physics run at 50tps). Physics constants should probably come from the wiki
http://minecraft.gamepedia.com/Transportation
http://minecraft.gamepedia.com/Gravity#Motion_of_entities
from minecraft-data.
no, mineflayer physics run at 20tps https://github.com/andrewrk/mineflayer/blob/master/lib/plugins/physics.js#L12
(the position update run at 50tps but that's a separate thing)
Now minecraft-data should probably use the /tick unity yes.
from minecraft-data.
@Gjum yeah I saw that. Not sure what we need from what they have, not sure if taking what they have is a correct extraction process (what happens when they stop updating ?)
from minecraft-data.
@rom1504 You have your calculation backwards
Physics runs every 20ms, 1sec/20ms is 50tps
Position Update runs every 50ms, 1sec/50ms is 20tps
Which makes perfect sense, if Mineflayer was updating at 50tps it would get hungry and die very quickly. Notchian client runs Physics and Player Update at the same time, 20tps. I never understood why Mineflayer ran Physics so fast.
from minecraft-data.
Ah indeed you're right.
I don't know why we are running physics so fast, I think at some point I tried to change it to the same value as position and it didn't change much, I might try that again.
But anyway, mineflayer takes into account the deltaSecond before the last iteration (https://github.com/andrewrk/mineflayer/blob/master/lib/plugins/physics.js#L127), so our values are independent of the ticking speed.
Edit: it seems all of mineflayer's physics was done in this commit PrismarineJS/mineflayer@0e57f53
Idk where andrewrk was taking his values, but it might be related to an old minecraft version.
Edit: alright I did some digging and found this https://github.com/andrewrk/mineflayer/blob/8ad380b0226aa5c57835d73231cd9a6283519e93/src/PhysicsDoer.cpp#L5 back in mineflayer cpp days (that's the last commit before the switch to node.js)
This is the correct value (20 tps), so I believe the explanation is simple : the position update was (https://github.com/andrewrk/mineflayer/blob/8ad380b0226aa5c57835d73231cd9a6283519e93/src/Game.cpp#L24) in the ms format and the physics update was in the tps format. When converting he didn't think about it, and made the same mistake I just did up there, and here we are.
I'll try later to put everything to the correct ticking speed, I'm pretty sure it doesn't change anything.
from minecraft-data.
Please add http://wiki.vg/Entities#Mobs, as this is not the same as in #11.
from minecraft-data.
Seems both page have pbs (http://minecraft.gamepedia.com/Data_values/Entity_IDs and http://wiki.vg/Entities#Mobs), better fix them before doing anything.
from minecraft-data.
- Enums of http://wiki.vg/Protocol in general (the non packet table), a bit like instruments.json (http://wiki.vg/Block_Actions) see #56 (comment)
from minecraft-data.
from minecraft-data.
I came across another possible source of data http://technical-minecraft.wikia.com/
from minecraft-data.
This page lists containers that store items. This can be presented in windows.json
as a persistent
flag to indicate if an item that is deposited in there will drop when the window is closed or if it will still be in there when the container is reopened.
Also some windows send a Number Of Slots = 0 when getting opened, which is probably related to this persistent
flag.
from minecraft-data.
Related Issues (20)
- Review and fix protocol.json for 1.20.2 HOT 5
- blockMappings.json only available in v1.19.1?
- [1.20.2] Incorrect recipes, and inconsistent shape format HOT 2
- Support Minecraft PC 1.20.3 HOT 2
- Support Minecraft PC 1.20.4 HOT 1
- Several 1.20.2 recipes have invalid shape data (PC) HOT 2
- Create gh action bot to diff protocol files HOT 1
- 1.20.2 and 1.20.3 missing metadataKeys in entities.json. HOT 8
- Add sound id - sound name map for each version HOT 10
- Add blocks & items pc renames data HOT 1
- Add version: HOT 1
- Add version:
- Identifcation of experimental features/items? HOT 4
- why are the block IDs in this package different from the actual minecraft block IDs? HOT 2
- How can find the description for switches? HOT 4
- Issue with Block State (blocksB2J.json and blocksJ2B.json) Data in Version 1.20.30
- Tb
- Add version:
- Support Minecraft PC 1.20.5
- Support Minecraft PC 1.20.6
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 minecraft-data.