内容发布更新时间 : 2025/7/15 10:15:22星期一 下面是文章的全部内容请认真阅读。
Delete Item Under Mouse
TheInput:GetWorldEntityUnderMouse():Remove() c_select() c_sel():Remove()
After pressing enter, it deletes the item under your mouse. Use the second command on dedicated servers, the first command will not work.
Reveal Map
TheWorld.minimap.MiniMap:ShowArea(0,0,0,10000)
Note that this is a local command, but will not work if you are a client.
Skip day
?TheWorld:PushEvent(\
Skips the current day. Change the value to skip more days or parts of days (e.g. 16*30*4.5 to skip 4.5 days) WARNING: Too big values may freeze the game. (Depending on computer speed)
Skip time
TheWorld.net.components.clock:OnUpdate(16*30*x)
Skips the current day. Change x to skip more days or parts of days (e.g. 16*30*4.5 to skip 4.5 days) WARNING: Too big values may freeze the game. (Depending on computer speed)
Skip time units and update LongUpdate(X)
Skips X time units and performs the \
Note: There are 30 time units per segment. To skip a whole day one can either use LongUpdate(480) or use multiplicative values such as LongUpdate(X*16*30) or LongUpdate(X*TUNING.TOTAL_DAY_TIME), with X=days to skip.
Skip phase
TheWorld:PushEvent(\Skips the current phase.
Set segments
TheWorld:PushEvent(\
Sets amount of segments. Errors if x + y + z adds up to over 16. Note that this will get reset the next day. Example:
TheWorld:PushEvent(\
Very long day, very short dusk and night (one segment for dusk and one for night)
Set season segments
?TheWorld:PushEvent(\{summer={day=sx,dusk=sy,night=sz},
15
winter={day=wx,dusk=wy,night=wz}})
Se