Skip to content
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

Weird computer behavior under /tick freeze #1876

Open
Bamberghh opened this issue Jun 24, 2024 · 1 comment
Open

Weird computer behavior under /tick freeze #1876

Bamberghh opened this issue Jun 24, 2024 · 1 comment
Labels
area-Core This affects CC's core (the Lua runtime, APIs, computer internals). area-Minecraft This affects CC's Minecraft-specific content. bug A problem or unexpected behaviour with the mod.

Comments

@Bamberghh
Copy link

Minecraft Version

1.20.x

Version

1.110.2

Details

Logs

I haven't found anything related to CC in the logs but I'm attaching them anyways just in case:

latest.log

Details

The /tick command, that was added in MC 1.20.3, allows for stopping/starting (most of) game ticking. However the computers behave weirdly when /tick freeze is active (note that the list below is in no way exhaustive):

  • The computers still respond to commands, however they shut down in 5 seconds and have to be turned on again. They repeat this the entire time the ticks are frozen.
    Steps to reproduce:
    1. Place a computer, turn it on, do something in the terminal
    2. Run /tick freeze
    3. Wait for 5 seconds for the computer to turn off by itself
      Video:
simple.mp4
  • The inventory peripheral item transfer still works (I discovered this current issue when trying to measure the item transfer time). Note that the computers still turn off after 5 seconds.

Video:

transfer.mp4

Program to reproduce the behavior shown in the video:

-- transfer.lua

local chestA = peripheral.wrap('left')
local chestB = peripheral.wrap('right')

local function transfer(a, b)
    for i = 1, 54 do
        a.pushItems(peripheral.getName(b), i)
    end
end

transfer(chestA, chestB)
transfer(chestB, chestA)
  • Turtles that try to drop/suck items into the world/chests, move or turn, freeze until the game shutdowns them after 5 seconds. After that you can still interact with them, and at the /tick unfreeze the queued actions execute one-by-one.

Video:

turtle.mp4

Additional details

Since I don't know whether any of the described behaviors are correct/incorrect, I've filed this issue partially for further discussion.

Just in case, here are all exact versions of MC or its mods:

  • Minecraft 1.20.4
  • Fabric 0.15.11
  • CC: Tweaked 1.20.4 1.110.2
  • Fabric API 1.20.4 0.97.1
@Bamberghh Bamberghh added the bug A problem or unexpected behaviour with the mod. label Jun 24, 2024
@zyxkad
Copy link
Contributor

zyxkad commented Jun 25, 2024

Related #1868

@SquidDev SquidDev added area-Minecraft This affects CC's Minecraft-specific content. area-Core This affects CC's core (the Lua runtime, APIs, computer internals). labels Jun 25, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area-Core This affects CC's core (the Lua runtime, APIs, computer internals). area-Minecraft This affects CC's Minecraft-specific content. bug A problem or unexpected behaviour with the mod.
Projects
None yet
Development

No branches or pull requests

3 participants