Comments (4)
you probably have https://www.curseforge.com/minecraft/mc-mods/minecraft-transit-railway which breaks the lander for some reason
from ad-astra.
samething happens with the fabric version 1.19.2 fabric loader 1.14.10 v1.11.9
from ad-astra.
Quick scarpet script to fix this temporarily:
distance_horizontal(p1, p2) -> sqrt((p2:0 - p1:0)^2 + (p2:2 - p1:2)^2);
try_find_lander(player, try_count) -> (
// if player is already on a lander, ensure they remain on it
current_mount = player ~ 'mount';
if(current_mount != null, (
print(player, str('rocket-fix: player already on lander %s', current_mount ~ 'uuid'));
schedule(5, 'ensure_player_on_lander', player, lander, 1);
return();
));
// attempt to find lander
landers = entity_area('ad_astra:lander', player, [10, 200, 10]);
// exclude landers already with passengers
landers_filtered = filter(landers, length(_ ~ 'passengers') == 0);
if(length(landers_filtered) < 1, (
if(try_count > 10, (
print(player, str('rocket-fix: no lander found after %d tries', try_count));
return();
));
schedule(5, 'try_find_lander', player, try_count + 1);
return();
));
// sort all found landers by horizontal distance to player
player_pos = player ~ 'pos';
landers_sorted = sort_key(landers, distance_horizontal(_ ~ 'pos', player_pos));
lander = landers_sorted:0;
print(player, str('rocket-fix: found lander %s (try %d), mounting player', lander ~ 'uuid', try_count));
modify(lander, 'mount_passengers', player);
schedule(5, 'ensure_player_on_lander', player, lander, 1);
);
ensure_player_on_lander(player, lander, try_count) -> (
if(player ~ 'mount' != null, (
// still on lander, probably
// print(player, str('rocket-fix: mount still exists (try %d)', try_count));
null
), (
print(player, str('rocket-fix: re-mounting player (try %d)', try_count));
modify(lander, 'mount_passengers', player);
));
if(try_count > 10, (
print(player, 'rocket-fix: done, have fun not being dead');
return();
));
schedule(5, 'ensure_player_on_lander', player, lander, try_count + 1);
);
__on_player_changes_dimension(player, from_pos, from_dimension, to_pos, to_dimension) -> (
// players coming from rockets spawn well above height limit
if(to_pos:1 <= 320, return());
print(player, 'rocket-fix: attempting to put you back on your lander');
try_find_lander(player, 1);
);
from ad-astra.
Quick scarpet script to fix this temporarily:
distance_horizontal(p1, p2) -> sqrt((p2:0 - p1:0)^2 + (p2:2 - p1:2)^2); try_find_lander(player, try_count) -> ( // if player is already on a lander, ensure they remain on it current_mount = player ~ 'mount'; if(current_mount != null, ( print(player, str('rocket-fix: player already on lander %s', current_mount ~ 'uuid')); schedule(5, 'ensure_player_on_lander', player, lander, 1); return(); )); // attempt to find lander landers = entity_area('ad_astra:lander', player, [10, 200, 10]); // exclude landers already with passengers landers_filtered = filter(landers, length(_ ~ 'passengers') == 0); if(length(landers_filtered) < 1, ( if(try_count > 10, ( print(player, str('rocket-fix: no lander found after %d tries', try_count)); return(); )); schedule(5, 'try_find_lander', player, try_count + 1); return(); )); // sort all found landers by horizontal distance to player player_pos = player ~ 'pos'; landers_sorted = sort_key(landers, distance_horizontal(_ ~ 'pos', player_pos)); lander = landers_sorted:0; print(player, str('rocket-fix: found lander %s (try %d), mounting player', lander ~ 'uuid', try_count)); modify(lander, 'mount_passengers', player); schedule(5, 'ensure_player_on_lander', player, lander, 1); ); ensure_player_on_lander(player, lander, try_count) -> ( if(player ~ 'mount' != null, ( // still on lander, probably // print(player, str('rocket-fix: mount still exists (try %d)', try_count)); null ), ( print(player, str('rocket-fix: re-mounting player (try %d)', try_count)); modify(lander, 'mount_passengers', player); )); if(try_count > 10, ( print(player, 'rocket-fix: done, have fun not being dead'); return(); )); schedule(5, 'ensure_player_on_lander', player, lander, try_count + 1); ); __on_player_changes_dimension(player, from_pos, from_dimension, to_pos, to_dimension) -> ( // players coming from rockets spawn well above height limit if(to_pos:1 <= 320, return()); print(player, 'rocket-fix: attempting to put you back on your lander'); try_find_lander(player, 1); );
how do i use this code i have searched google and haven't got any results that would help... i have carpet installed but can't make any sence of this code on how to get it to work
from ad-astra.
Related Issues (20)
- [Bug]: Tesseract incompatibility, crash on fluid insert
- [Feature Request]: Consider Day/Night cycle in planet temperature
- [Bug]: Game crash exit code 1
- [Bug]: Use create Brass funnel Collapse HOT 1
- [Feature Request]: Swap chest and leg armor values. HOT 1
- [Feature Request]: Add c & forge tags for wrench/wrenches for compatability
- All ores are missing standard item tags
- [Bug]: Еhrown out of the lander (1.19.2) HOT 2
- [1.20.1] [Bug]: Fuel Refinery has 2 categories in REI HOT 4
- [Bug]: I can't jump because the gravity is insanly high on earth HOT 1
- [Bug]: Issue with shaders in orbit HOT 1
- [Bug]: Scrolling not working on 1.15.18 HOT 1
- [Bug]: Astrodux is non existent for beta .18 and .17 and steel cannot be smelted HOT 1
- [Bug]: lava turns to ice in space when placed from a bucket HOT 2
- [Bug]: Oxygen and Fuel don't show up in Tanks and are fully transparental. ViewBug. HOT 2
- NASA Workbench guide in the book [Feature Request]:
- [Feature Request]: Add common tags for moon cheese
- [Bug]: armor item being invisible
- [Bug]: Netherite Enchants Remove While Upgrading To Space Suits
- [Feature Request]: Add setting to disable oil spawning
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 ad-astra.