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

Puprose: Lua Enhanced Programmer for Ingame Control(EPIC) #3

Open
snowyu opened this issue Jul 24, 2022 · 3 comments
Open

Puprose: Lua Enhanced Programmer for Ingame Control(EPIC) #3

snowyu opened this issue Jul 24, 2022 · 3 comments

Comments

@snowyu
Copy link

snowyu commented Jul 24, 2022

I think it can be treat it as EPIC when codelevel is trusted. Maybe add a new codelevel: admin to do.

DONE(See PR):

  • Place any blocks: place("default:stone")
    • requires trusted(>=4) codelevel.
  • Set player environment(requires trusted(>=4) codelevel):
    • override_day_night_ratio(ratio)
    • set_clouds(new_cloud)
    • set_stars(new_star)
    • set_sun(new_sun)
    • set_moon(new_moon)
  • include lua file directive:
    • --include your-lua-file-without-extension-name
    • --include "your-lua-file-without-extension-name"
    • --include 'your-lua-file-with-extension.lua'

TODO:

  • code step-by-step to run
  • Get/Set player environment
  • Application(EPIC Starter) Block: can be executed repeatly.
  • Trigger Supports
snowyu added a commit to snowyu/codeblock that referenced this issue Jul 25, 2022
…y_night_ratio, set_clouds, set_stars, set_sun, set_moon. see gigaturbo#3

* Should not change the player privs. It should be a command to do this.
* Should not change the enviromnents. The enviromnents commands added.
* Should not change the player's inventory. It should be a command to do this.
@Pantyhose-X
Copy link

I think the code should use default:obsidian_block
lua edit Click on a block to automatically write default:obsidian_block.All blocks are obtained from Inventory, which can support any mods

ggg

Modern

for i = 1, 10 do
  place(blocks.obsidian)
  up(1)
end

Future

for i = 1, 10 do
  place(default:obsidian_block)
  up(1)
end

@snowyu
Copy link
Author

snowyu commented Aug 12, 2022

Currently I've used:

for i = 1, 10 do
  place("default:obsidian_block")
  up(1)
end

@Pantyhose-X
Copy link

feat 👍

snowyu added a commit to snowyu/codeblock that referenced this issue Feb 28, 2023
…y_night_ratio, set_clouds, set_stars, set_sun, set_moon. see gigaturbo#3

* Should not change the player privs. It should be a command to do this.
* Should not change the enviromnents. The enviromnents commands added.
* Should not change the player's inventory. It should be a command to do this.
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

No branches or pull requests

2 participants