Skip to content

Try to update Milo for 1.19#63

Draft
Kan18 wants to merge 27 commits into
kepler155c:develop-1.8from
Kan18:develop-1.8
Draft

Try to update Milo for 1.19#63
Kan18 wants to merge 27 commits into
kepler155c:develop-1.8from
Kan18:develop-1.8

Conversation

@Kan18

@Kan18 Kan18 commented Dec 28, 2022

Copy link
Copy Markdown
Contributor

Removes Milo trying to access damage on items (nil because of The Flattening). Changes "getItemMeta" to "getItemDetail". We might also need to reimplement showing durability in the item's display name - I got a little too carried away with removing mentions of "damage". Also renames nbtHash to nbt to be consistent with new CC:T naming. I tried not to touch anything related to MiloRemote for now, and there are probably still many bugs remaining that need to be ironed out. Most of the basic functionality works now, though.

Removes Milo trying to access damage on items (`nil` because of The
Flattening). We might also need to reimplement showing durability in the
item's display name - I got a little too carried away with removing
mentions of "damage". Also renames nbtHash to nbt to be consistent with
new CC:T naming. I tried not to touch anything related to MiloRemote for
now, and there are probably still many bugs remaining that need to be
ironed out. Most of the basic functionality works now, though.
@Kan18

Kan18 commented Dec 28, 2022

Copy link
Copy Markdown
Contributor Author

We might also have to fix all the recipes as well, by removing the damage values

@Kan18

Kan18 commented Dec 29, 2022

Copy link
Copy Markdown
Contributor Author

Actually, half the recipes are broken because of renamed items; maybe dump them again or something

Comment thread milo/apis/init.lua
(v1.damage == v2.damage or
(v1.maxDamage > 0 and v2.maxDamage > 0 and
v1.damage ~= v2.damage)) then
v1.nbt == v2.nbt then

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Won't this still need to check the damage? For instance, a hammer used to turn an ingot into a plate, but uses durability.

Comment thread milo/apis/turtleInv.lua
function TurtleInv.list()
local list = {}
for slot = 1, inventorySize do
list[slot] = turtle.getItemDetail(slot)

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Only includes the NBT hash with the 'true' second arg. At least in my testing in 1.18.2; may be different in 1.19

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Instead of fixing this, I could just wait for cc-tweaked/CC-Tweaked#1306 😴

@Nerdpie Nerdpie left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just a couple thoughts; I was poking at updating for 1.18.2.

@Kan18
Kan18 marked this pull request as draft January 7, 2023 14:07
@Kan18

Kan18 commented Jan 7, 2023

Copy link
Copy Markdown
Contributor Author

Thanks for the feedback! Sorry I'm getting to this just now. The PR still has weird bugs involving items with NBT, so I am marking this as draft right now. Also, somebody brought up the issue of 1.12.2 compatibility on Discord - not exactly sure how to solve this (having two different branches/versions, maybe?)

@Kan18
Kan18 force-pushed the develop-1.8 branch 3 times, most recently from b9bf773 to 6247784 Compare July 7, 2023 17:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants