New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Adding Loottables for item grids #4842
base: master
Are you sure you want to change the base?
Conversation
There are some errors in some travis-ci build caused from ossupport/file.h It says that it doesn't know what type AString is. Edit: I didn't change that file - no clue why it only fails here Edit 2: Now I know... did the wrong order in the headers in the cpp file... facepalm |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Some random comments, I know this isn't ready for a full review.
Any help is appreciated - thank you |
added loot table json files removed unwanted types from binary
added loot tables to symlink CMakeLists.txt added loot tables to WindowsExecutables.list and UnixExecutables.list added cLootTableProvider to World.cpp added file reading for loot tables - no parsing at this point
added custom loot tables
start of filling with loot
Ok, so now everything is working again. Time to finish the last functions and rip it apart |
added some more functions
I need a way to check the Entity Type (Monsters, And "Normal" entities) from string... Do you have any Idea? |
fixed wrong abs method
…ace serializer PR
waiting for #4941 for the string <-> monster enum conversion |
I'll look tomorrow if no one else beats me to it |
I need some help @cuberite/core-team |
Things that need to be done:
Things i am waiting for: |
tests/LootTable/CMakeLists.txt
Outdated
) | ||
|
||
|
||
target_link_libraries(jsoncpp_lib) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
is this needed? if so, I think it's now jsoncpp_static
There is the problem :o At this point yes - but it's gonna be removed soon. I just want to make it compile for now |
As discussed here we'd like to add loot tables to the server
Minecraft Wiki
Fixes #3803
Fixes #2399
this is work in progress
This is only for item grids. The other ones can be based on this also but are not yet supported
Things i would do
The loot tables are quite powerfull so it takes some time/effort and many enums to actually implement them.
At this point the cosole spamms some error messages because there are some features added in the loot tables that are not in cuberite and this is told to the user
Todo:
Note: this pull request is quite big because it contains the json files