Move blocks, items, mcdata, mobs to info/ folder
This commit is contained in:
parent
23891066c0
commit
ae2b0f4875
|
@ -24,17 +24,17 @@ from mosfet.protocol.managers import DataManager, ChunksManager, ChatManager, Ch
|
||||||
|
|
||||||
from munch import Munch
|
from munch import Munch
|
||||||
|
|
||||||
from mosfet import blocks
|
|
||||||
from mosfet import game
|
from mosfet import game
|
||||||
from mosfet import items
|
|
||||||
from mosfet import job
|
from mosfet import job
|
||||||
from mosfet import mcdata
|
|
||||||
from mosfet import mobs
|
|
||||||
from mosfet import path
|
from mosfet import path
|
||||||
from mosfet import print_help
|
from mosfet import print_help
|
||||||
from mosfet import utils
|
from mosfet import utils
|
||||||
from mosfet import vector
|
from mosfet import vector
|
||||||
from mosfet import world
|
from mosfet import world
|
||||||
|
from mosfet.info import blocks
|
||||||
|
from mosfet.info import items
|
||||||
|
from mosfet.info import mcdata
|
||||||
|
from mosfet.info import mobs
|
||||||
|
|
||||||
for module in [
|
for module in [
|
||||||
blocks,
|
blocks,
|
||||||
|
|
|
@ -25,12 +25,12 @@ from mosfet.protocol.types import Slot
|
||||||
from mosfet import print_help
|
from mosfet import print_help
|
||||||
from mosfet import utils
|
from mosfet import utils
|
||||||
from mosfet import path
|
from mosfet import path
|
||||||
from mosfet import blocks
|
|
||||||
from mosfet import items
|
|
||||||
from mosfet import mcdata
|
|
||||||
from mosfet import mobs
|
|
||||||
from mosfet import bot
|
from mosfet import bot
|
||||||
from mosfet import vector
|
from mosfet import vector
|
||||||
|
from mosfet.info import blocks
|
||||||
|
from mosfet.info import items
|
||||||
|
from mosfet.info import mcdata
|
||||||
|
from mosfet.info import mobs
|
||||||
|
|
||||||
class Game:
|
class Game:
|
||||||
def __init__(self, global_state):
|
def __init__(self, global_state):
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
import json
|
import json
|
||||||
import importlib
|
import importlib
|
||||||
|
|
||||||
from mosfet import mcdata
|
from mosfet.info import mcdata
|
||||||
|
|
||||||
MCD_BLOCKS = {}
|
MCD_BLOCKS = {}
|
||||||
for d in mcdata.mcd.blocks.values():
|
for d in mcdata.mcd.blocks.values():
|
|
@ -11,10 +11,10 @@ from mosfet.protocol.managers import ChunkNotLoadedException
|
||||||
|
|
||||||
from mosfet import utils
|
from mosfet import utils
|
||||||
from mosfet import path
|
from mosfet import path
|
||||||
from mosfet import blocks
|
from mosfet.info import blocks
|
||||||
from mosfet import items
|
from mosfet.info import items
|
||||||
from mosfet import mcdata
|
from mosfet.info import mcdata
|
||||||
from mosfet import mobs
|
from mosfet.info import mobs
|
||||||
|
|
||||||
from mosfet.jobs import (
|
from mosfet.jobs import (
|
||||||
cache_items,
|
cache_items,
|
||||||
|
|
|
@ -11,10 +11,10 @@ from mosfet.protocol.managers import ChunkNotLoadedException
|
||||||
|
|
||||||
from mosfet import utils
|
from mosfet import utils
|
||||||
from mosfet import path
|
from mosfet import path
|
||||||
from mosfet import blocks
|
from mosfet.info import blocks
|
||||||
from mosfet import items
|
from mosfet.info import items
|
||||||
from mosfet import mcdata
|
from mosfet.info import mcdata
|
||||||
from mosfet import mobs
|
from mosfet.info import mobs
|
||||||
|
|
||||||
class CacheItemsStates:
|
class CacheItemsStates:
|
||||||
def idle(self):
|
def idle(self):
|
||||||
|
|
|
@ -11,10 +11,10 @@ from mosfet.protocol.managers import ChunkNotLoadedException
|
||||||
|
|
||||||
from mosfet import utils
|
from mosfet import utils
|
||||||
from mosfet import path
|
from mosfet import path
|
||||||
from mosfet import blocks
|
from mosfet.info import blocks
|
||||||
from mosfet import items
|
from mosfet.info import items
|
||||||
from mosfet import mcdata
|
from mosfet.info import mcdata
|
||||||
from mosfet import mobs
|
from mosfet.info import mobs
|
||||||
|
|
||||||
class CheckThreatsStates:
|
class CheckThreatsStates:
|
||||||
def idle(self):
|
def idle(self):
|
||||||
|
|
|
@ -11,10 +11,10 @@ from mosfet.protocol.managers import ChunkNotLoadedException
|
||||||
|
|
||||||
from mosfet import utils
|
from mosfet import utils
|
||||||
from mosfet import path
|
from mosfet import path
|
||||||
from mosfet import blocks
|
from mosfet.info import blocks
|
||||||
from mosfet import items
|
from mosfet.info import items
|
||||||
from mosfet import mcdata
|
from mosfet.info import mcdata
|
||||||
from mosfet import mobs
|
from mosfet.info import mobs
|
||||||
|
|
||||||
class ClearLeavesStates:
|
class ClearLeavesStates:
|
||||||
def idle(self):
|
def idle(self):
|
||||||
|
|
|
@ -11,10 +11,10 @@ from mosfet.protocol.managers import ChunkNotLoadedException
|
||||||
|
|
||||||
from mosfet import utils
|
from mosfet import utils
|
||||||
from mosfet import path
|
from mosfet import path
|
||||||
from mosfet import blocks
|
from mosfet.info import blocks
|
||||||
from mosfet import items
|
from mosfet.info import items
|
||||||
from mosfet import mcdata
|
from mosfet.info import mcdata
|
||||||
from mosfet import mobs
|
from mosfet.info import mobs
|
||||||
|
|
||||||
class EatFoodStates:
|
class EatFoodStates:
|
||||||
def idle(self):
|
def idle(self):
|
||||||
|
|
|
@ -11,10 +11,10 @@ from mosfet.protocol.managers import ChunkNotLoadedException
|
||||||
|
|
||||||
from mosfet import utils
|
from mosfet import utils
|
||||||
from mosfet import path
|
from mosfet import path
|
||||||
from mosfet import blocks
|
from mosfet.info import blocks
|
||||||
from mosfet import items
|
from mosfet.info import items
|
||||||
from mosfet import mcdata
|
from mosfet.info import mcdata
|
||||||
from mosfet import mobs
|
from mosfet.info import mobs
|
||||||
|
|
||||||
class FillBlocksStates:
|
class FillBlocksStates:
|
||||||
def idle(self):
|
def idle(self):
|
||||||
|
|
|
@ -11,10 +11,10 @@ from mosfet.protocol.managers import ChunkNotLoadedException
|
||||||
|
|
||||||
from mosfet import utils
|
from mosfet import utils
|
||||||
from mosfet import path
|
from mosfet import path
|
||||||
from mosfet import blocks
|
from mosfet.info import blocks
|
||||||
from mosfet import items
|
from mosfet.info import items
|
||||||
from mosfet import mcdata
|
from mosfet.info import mcdata
|
||||||
from mosfet import mobs
|
from mosfet.info import mobs
|
||||||
|
|
||||||
class FindGappleStates:
|
class FindGappleStates:
|
||||||
def idle(self):
|
def idle(self):
|
||||||
|
|
|
@ -11,10 +11,10 @@ from mosfet.protocol.managers import ChunkNotLoadedException
|
||||||
|
|
||||||
from mosfet import utils
|
from mosfet import utils
|
||||||
from mosfet import path
|
from mosfet import path
|
||||||
from mosfet import blocks
|
from mosfet.info import blocks
|
||||||
from mosfet import items
|
from mosfet.info import items
|
||||||
from mosfet import mcdata
|
from mosfet.info import mcdata
|
||||||
from mosfet import mobs
|
from mosfet.info import mobs
|
||||||
|
|
||||||
class GatherCropStates:
|
class GatherCropStates:
|
||||||
def idle(self):
|
def idle(self):
|
||||||
|
|
|
@ -11,10 +11,10 @@ from mosfet.protocol.managers import ChunkNotLoadedException
|
||||||
|
|
||||||
from mosfet import utils
|
from mosfet import utils
|
||||||
from mosfet import path
|
from mosfet import path
|
||||||
from mosfet import blocks
|
from mosfet.info import blocks
|
||||||
from mosfet import items
|
from mosfet.info import items
|
||||||
from mosfet import mcdata
|
from mosfet.info import mcdata
|
||||||
from mosfet import mobs
|
from mosfet.info import mobs
|
||||||
|
|
||||||
class GatherSandStates:
|
class GatherSandStates:
|
||||||
def bair(self, p):
|
def bair(self, p):
|
||||||
|
|
|
@ -11,10 +11,10 @@ from mosfet.protocol.managers import ChunkNotLoadedException
|
||||||
|
|
||||||
from mosfet import utils
|
from mosfet import utils
|
||||||
from mosfet import path
|
from mosfet import path
|
||||||
from mosfet import blocks
|
from mosfet.info import blocks
|
||||||
from mosfet import items
|
from mosfet.info import items
|
||||||
from mosfet import mcdata
|
from mosfet.info import mcdata
|
||||||
from mosfet import mobs
|
from mosfet.info import mobs
|
||||||
|
|
||||||
class GatherWartStates:
|
class GatherWartStates:
|
||||||
def idle(self):
|
def idle(self):
|
||||||
|
@ -48,7 +48,7 @@ class GatherWartStates:
|
||||||
navpath = w.path_to_place(p, self.wart)
|
navpath = w.path_to_place(p, self.wart)
|
||||||
|
|
||||||
if navpath:
|
if navpath:
|
||||||
print('Going to wart', self.crop)
|
print('Going to wart', self.wart)
|
||||||
self.g.path = navpath
|
self.g.path = navpath
|
||||||
self.g.look_at = utils.padd(self.wart, path.BLOCK_BELOW)
|
self.g.look_at = utils.padd(self.wart, path.BLOCK_BELOW)
|
||||||
self.state = self.going_to_wart
|
self.state = self.going_to_wart
|
||||||
|
|
|
@ -11,10 +11,10 @@ from mosfet.protocol.managers import ChunkNotLoadedException
|
||||||
|
|
||||||
from mosfet import utils
|
from mosfet import utils
|
||||||
from mosfet import path
|
from mosfet import path
|
||||||
from mosfet import blocks
|
from mosfet.info import blocks
|
||||||
from mosfet import items
|
from mosfet.info import items
|
||||||
from mosfet import mcdata
|
from mosfet.info import mcdata
|
||||||
from mosfet import mobs
|
from mosfet.info import mobs
|
||||||
|
|
||||||
class GatherWoodStates:
|
class GatherWoodStates:
|
||||||
def bair(self, p):
|
def bair(self, p):
|
||||||
|
|
|
@ -11,10 +11,10 @@ from mosfet.protocol.managers import ChunkNotLoadedException
|
||||||
|
|
||||||
from mosfet import utils
|
from mosfet import utils
|
||||||
from mosfet import path
|
from mosfet import path
|
||||||
from mosfet import blocks
|
from mosfet.info import blocks
|
||||||
from mosfet import items
|
from mosfet.info import items
|
||||||
from mosfet import mcdata
|
from mosfet.info import mcdata
|
||||||
from mosfet import mobs
|
from mosfet.info import mobs
|
||||||
|
|
||||||
class GrabSandStates:
|
class GrabSandStates:
|
||||||
def idle(self):
|
def idle(self):
|
||||||
|
|
|
@ -11,10 +11,10 @@ from mosfet.protocol.managers import ChunkNotLoadedException
|
||||||
|
|
||||||
from mosfet import utils
|
from mosfet import utils
|
||||||
from mosfet import path
|
from mosfet import path
|
||||||
from mosfet import blocks
|
from mosfet.info import blocks
|
||||||
from mosfet import items
|
from mosfet.info import items
|
||||||
from mosfet import mcdata
|
from mosfet.info import mcdata
|
||||||
from mosfet import mobs
|
from mosfet.info import mobs
|
||||||
|
|
||||||
class GrabSaplingStates:
|
class GrabSaplingStates:
|
||||||
def idle(self):
|
def idle(self):
|
||||||
|
|
|
@ -11,10 +11,10 @@ from mosfet.protocol.managers import ChunkNotLoadedException
|
||||||
|
|
||||||
from mosfet import utils
|
from mosfet import utils
|
||||||
from mosfet import path
|
from mosfet import path
|
||||||
from mosfet import blocks
|
from mosfet.info import blocks
|
||||||
from mosfet import items
|
from mosfet.info import items
|
||||||
from mosfet import mcdata
|
from mosfet.info import mcdata
|
||||||
from mosfet import mobs
|
from mosfet.info import mobs
|
||||||
|
|
||||||
class GrabSuppliesStates:
|
class GrabSuppliesStates:
|
||||||
def idle(self):
|
def idle(self):
|
||||||
|
|
|
@ -11,10 +11,10 @@ from mosfet.protocol.managers import ChunkNotLoadedException
|
||||||
|
|
||||||
from mosfet import utils
|
from mosfet import utils
|
||||||
from mosfet import path
|
from mosfet import path
|
||||||
from mosfet import blocks
|
from mosfet.info import blocks
|
||||||
from mosfet import items
|
from mosfet.info import items
|
||||||
from mosfet import mcdata
|
from mosfet.info import mcdata
|
||||||
from mosfet import mobs
|
from mosfet.info import mobs
|
||||||
|
|
||||||
class PlantTreeStates:
|
class PlantTreeStates:
|
||||||
def idle(self):
|
def idle(self):
|
||||||
|
|
|
@ -11,10 +11,10 @@ from mosfet.protocol.managers import ChunkNotLoadedException
|
||||||
|
|
||||||
from mosfet import utils
|
from mosfet import utils
|
||||||
from mosfet import path
|
from mosfet import path
|
||||||
from mosfet import blocks
|
from mosfet.info import blocks
|
||||||
from mosfet import items
|
from mosfet.info import items
|
||||||
from mosfet import mcdata
|
from mosfet.info import mcdata
|
||||||
from mosfet import mobs
|
from mosfet.info import mobs
|
||||||
|
|
||||||
class SellToVillagerStates:
|
class SellToVillagerStates:
|
||||||
def idle(self):
|
def idle(self):
|
||||||
|
|
|
@ -11,10 +11,10 @@ from mosfet.protocol.managers import ChunkNotLoadedException
|
||||||
|
|
||||||
from mosfet import utils
|
from mosfet import utils
|
||||||
from mosfet import path
|
from mosfet import path
|
||||||
from mosfet import blocks
|
from mosfet.info import blocks
|
||||||
from mosfet import items
|
from mosfet.info import items
|
||||||
from mosfet import mcdata
|
from mosfet.info import mcdata
|
||||||
from mosfet import mobs
|
from mosfet.info import mobs
|
||||||
|
|
||||||
class SleepWithBedStates:
|
class SleepWithBedStates:
|
||||||
def idle(self):
|
def idle(self):
|
||||||
|
|
|
@ -5,7 +5,7 @@ from math import hypot, sqrt
|
||||||
|
|
||||||
from astar import AStar
|
from astar import AStar
|
||||||
|
|
||||||
from mosfet import blocks
|
from mosfet.info import blocks
|
||||||
from mosfet import utils
|
from mosfet import utils
|
||||||
|
|
||||||
class AStarTimeout(Exception):
|
class AStarTimeout(Exception):
|
||||||
|
|
|
@ -10,7 +10,7 @@ from minecraft.networking.types import (
|
||||||
|
|
||||||
from .types import Nbt, Slot, Entry, Trade
|
from .types import Nbt, Slot, Entry, Trade
|
||||||
|
|
||||||
from mosfet import blocks
|
from mosfet.info import blocks
|
||||||
|
|
||||||
|
|
||||||
class ChunkDataPacket(Packet):
|
class ChunkDataPacket(Packet):
|
||||||
|
|
|
@ -2,8 +2,8 @@ import importlib
|
||||||
import collections
|
import collections
|
||||||
from math import floor, ceil, sqrt, hypot
|
from math import floor, ceil, sqrt, hypot
|
||||||
|
|
||||||
from mosfet import blocks
|
from mosfet.info import blocks
|
||||||
from mosfet import mcdata
|
from mosfet.info import mcdata
|
||||||
|
|
||||||
TICK = 0.05
|
TICK = 0.05
|
||||||
|
|
||||||
|
|
|
@ -8,8 +8,8 @@ from copy import copy
|
||||||
|
|
||||||
from mosfet import utils
|
from mosfet import utils
|
||||||
from mosfet import path
|
from mosfet import path
|
||||||
from mosfet import blocks
|
from mosfet.info import blocks
|
||||||
from mosfet import mobs
|
from mosfet.info import mobs
|
||||||
|
|
||||||
class World:
|
class World:
|
||||||
def __init__(self, global_state):
|
def __init__(self, global_state):
|
||||||
|
|
Loading…
Reference in New Issue
Block a user