I'm making a mod that forces you to survive in a desert with minimal resources. I would like to make the world all sand, but infinite world. I would be able to make my own map in an old world, however infinite would be awesome. So I know theres function newLevel, but that's every time the world is loaded. Is there a way to make it only the first time the world is generated? And is there a way to make a UI like a furnace? Any help would be greatly appreciated! Thanks in advance!!
Edit: Is there a way to make like a thirst bar? I'm looking through all the scripts and functions and nothing catches my eye on how to set it up. I know a way to make it work, like modTick to make it go down and if the thirst variable is 0, itll make u lose health, but idk how to make it go on screen. If there is a way, let me know because that would be awesome!
Heard of an app called AppNana? It's an app that rewards you for installing games, testing apps, watching adds, with Google Play, Amazon, and iTunes gift cards, and more! And the app, is completely free!
An easy way of earning Nanas is to add other people's Invite Codes. Whenever you invite someone or get invited, you get 2.5k nanas!
My code is t3305123, pm me your codes so we can just keep gettin nanas for doing pretty much nothing at all!
You didn't say much about where that UI should be, but this sounds like it may help.
It did help, but not in the way I had hoped. I was hoping for a UI pretty much exactly like a furnace, where you put it an item and get a different item out. It will help for an acheivement book of some sort! I was just going to use clientMessage to display the achievements, however this UI would probably be much better! So thanks!! I figure for the furnace issue, I'll just do useItem.
Rollback Post to RevisionRollBack
Heard of an app called AppNana? It's an app that rewards you for installing games, testing apps, watching adds, with Google Play, Amazon, and iTunes gift cards, and more! And the app, is completely free!
An easy way of earning Nanas is to add other people's Invite Codes. Whenever you invite someone or get invited, you get 2.5k nanas!
My code is t3305123, pm me your codes so we can just keep gettin nanas for doing pretty much nothing at all!
To create an infinite desert world maybe there is some way to port a modified pc world to pe, but i'm not sure. To run a function or anything only the first time a world is loaded you can check with newLevel if a file exist in the current world folder, and if not run the command and create the specific file. I usually use 2 functions to read and save data in mcpe, both uses the android java api, which you can also use to create graphic stuff and show a thirst bar, you can find all the documentations online.
Here you can find a lot of MODPE tempates, included the function for saving and reading files
Soooooo how does the read file thing work? I pretty much copy and pasted both of those functions under a newLevel, and then inside the read was an if saying if it read the file, then clientMessage of "working" just so I know. And then it was an else, do the thing and create the file, with a clientMessage of "file made!" And every time, Id get "file made!" So, I am quite confused.
Rollback Post to RevisionRollBack
Heard of an app called AppNana? It's an app that rewards you for installing games, testing apps, watching adds, with Google Play, Amazon, and iTunes gift cards, and more! And the app, is completely free!
An easy way of earning Nanas is to add other people's Invite Codes. Whenever you invite someone or get invited, you get 2.5k nanas!
My code is t3305123, pm me your codes so we can just keep gettin nanas for doing pretty much nothing at all!
I'm making a mod that forces you to survive in a desert with minimal resources. I would like to make the world all sand, but infinite world. I would be able to make my own map in an old world, however infinite would be awesome. So I know theres function newLevel, but that's every time the world is loaded. Is there a way to make it only the first time the world is generated? And is there a way to make a UI like a furnace? Any help would be greatly appreciated! Thanks in advance!!
Edit: Is there a way to make like a thirst bar? I'm looking through all the scripts and functions and nothing catches my eye on how to set it up. I know a way to make it work, like modTick to make it go down and if the thirst variable is 0, itll make u lose health, but idk how to make it go on screen. If there is a way, let me know because that would be awesome!
I don't know about most of that, but did you see this thread for your furnace question? http://www.minecraftforum.net/forums/minecraft-pocket-edition/mcpe-mods-tools/mcpe-mod-tool-help-requests/1988671-custom-ui-tutorial-popup-windows-and-dialogs
You didn't say much about where that UI should be, but this sounds like it may help.
It did help, but not in the way I had hoped. I was hoping for a UI pretty much exactly like a furnace, where you put it an item and get a different item out. It will help for an acheivement book of some sort! I was just going to use clientMessage to display the achievements, however this UI would probably be much better! So thanks!! I figure for the furnace issue, I'll just do useItem.
Soooooo how does the read file thing work? I pretty much copy and pasted both of those functions under a newLevel, and then inside the read was an if saying if it read the file, then clientMessage of "working" just so I know. And then it was an else, do the thing and create the file, with a clientMessage of "file made!" And every time, Id get "file made!" So, I am quite confused.