Xenophilicy / OreGen

PocketMine plugin to spawn ores in a cobblestone generator!

Home Page:https://poggit.pmmp.io/p/OreGen

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Dont work

Nat392 opened this issue · comments

Hello, can you help me ?? Your plugin refuses to work when you config it

ERROR

[16:19:11] [Server thread/INFO]: Enabling OreGen v1.2.5
[16:19:11] [Server thread/CRITICAL]: TypeError: "explode() expects parameter 2 to be string, int given" (EXCEPTION) in "plugins/OreGen.phar/src/Xenophilicy/OreGen/OreGen" at line 117
[16:19:11] [Server thread/CRITICAL]: #0 plugins/OreGen.phar/src/Xenophilicy/OreGen/OreGen(117): explode(string[1] :, integer 153)
[16:19:11] [Server thread/CRITICAL]: #1 plugins/OreGen.phar/src/Xenophilicy/OreGen/OreGen(101): Xenophilicy\OreGen\OreGen->buildProbability()
[16:19:11] [Server thread/CRITICAL]: #2 src/pocketmine/plugin/PluginBase(116): Xenophilicy\OreGen\OreGen->onEnable()
[16:19:11] [Server thread/CRITICAL]: #3 src/pocketmine/plugin/PluginManager(552): pocketmine\plugin\PluginBase->setEnabled(boolean 1)
[16:19:11] [Server thread/CRITICAL]: #4 src/pocketmine/Server(1787): pocketmine\plugin\PluginManager->enablePlugin(object Xenophilicy\OreGen\OreGen)
[16:19:11] [Server thread/CRITICAL]: #5 src/pocketmine/Server(1773): pocketmine\Server->enablePlugin(object Xenophilicy\OreGen\OreGen)
[16:19:11] [Server thread/CRITICAL]: #6 src/pocketmine/Server(1586): pocketmine\Server->enablePlugins(integer 1)
[16:19:11] [Server thread/CRITICAL]: #7 src/pocketmine/PocketMine(273): pocketmine\Server->__construct(object BaseClassLoader, object pocketmine\utils\MainLogger, string[16] /home/container/, string[24] /home/container/plugins/)
[16:19:11] [Server thread/CRITICAL]: #8 src/pocketmine/PocketMine(304): pocketmine\server()
[16:19:11] [Server thread/CRITICAL]: #9 (11): require(string[71] phar:///home/container/PocketMine-MP.phar/src/pocketmine/PocketMine.php)
[16:19:11] [Server thread/INFO]: Disabling OreGen v1.2.5

CONFIG

MADE BY:

__ __ __ __ __ __

/ | / | / | / |/ |/ |

$$ | $$ | ______ _______ ______ ______ $$ |____ $$/ $$ |$$/ _______ __ __

$$ /$$/ / \ / \ / \ / \ $$ \ / |$$ |/ | / |/ | / |

$$ $$< /$$$$$$ |$$$$$$$ |/$$$$$$ |/$$$$$$ |$$$$$$$ |$$ |$$ |$$ |/$$$$$$$/ $$ | $$ |

$$$$ \ $$ $$ |$$ | $$ |$$ | $$ |$$ | $$ |$$ | $$ |$$ |$$ |$$ |$$ | $$ | $$ |

$$ /$$ |$$$$$$$$/ $$ | $$ |$$ _$$ |$$ |__$$ |$$ | $$ |$$ |$$ |$$ |$$ ____ $$ __$$ |

$$ | $$ |$$ |$$ | $$ |$$ $$/ $$ $$/ $$ | $$ |$$ |$$ |$$ |$$ |$$ $$ |

$$/ $$/ $$$$$$$/ $$/ $$/ $$$$$$/ $$$$$$$/ $$/ $$/ $$/ $$/ $$/ $$$$$$$/ $$$$$$$ |

$$ | / __$$ |

$$ | $$ $$/

$$/ $$$$$$/

VERSION: "1.2.0" # Internal use only

These are the settings that determine which worlds to enable OreGen in

Worlds:

This is where you can put the list of worlds which worlds to include/exclude OreGen in

List:
- "SpawnV3-2"

Choose the mode for the world list, options are blacklist, whitelist, or false

Set this to false if you want OreGen to function on all worlds

Mode: "blacklist"

This is where you set the probability (out of 100) that the player will get the default cobblestone

The cobble probability and all the blocks you list must have a sum of 100 for the plugin to function

Cobble-Probability: 78

Here you control which blocks you want players to have a chance of getting

Set any of them to false to disable their chance of being an outcome

Use this format below for the block listing

Blocks:

"Block-ID:Block-Damage": Block-Probability

"Block-ID:Block-Damage": Block-Probability

"Block-ID:Block-Damage": Block-Probability

Blocks:
"16:0": 3.5 # Coal Ore
"15:0": 5 # Iron Ore
"14:0": 1 # Gold Ore
"21:0": 1.5 # Lapis Lazuli Ore
"73:0": 3.5 # Redstone Ore
"129:0": 1 # Emerald
"56:0": 3 # Diamond Ore
"153": 3.5

can you send me your config file? I can't read any of that

your last block doesn't have a damage value. add a zero after the ID like the other blocks.

"153:0": 3.5