Comments (4)
I also have an idea for a method for the item class,
is_enchanted(item) will take an item object and check if the item is enchanted and return true if the
item is not enchanted will return false.
Something similar to this would work.
`
- def is_enchanted(item):
-
if "tag" in item:
-
if "ench" in item["tag"]:
-
return True
-
return False
-
return False
`
Also, there should be a way for users to get a look-up table for item names and block names in ingame format or internal format meaning this,
ingame = "Stone",
with prefix = "minecraft:stone",
without prefix = "stone",
number tuple = (1, 0)
but a collection of all say ingame for example names so we can call input block or item pickers ingame instead of users having to define them manually we can simply call a method that has two variables one for data_type and one for output_type.
from amulet-core.
I think that's a good idea! I'll work on that once #36 is completed impl-entities
branch is merged into master
from amulet-core.
I have been putting it off but I think it would make sense to do versioning for this in the translation library. As far as I am aware items are all blocks with some additions/modifications
from amulet-core.
After a bit more thought I think items should be left as NBT and the translation library should deal with them how it wants internally but should be given and return NBT.
I am going to close this issue because I don't think Amulet should have a specific class representation of an Item. This is partially due to it being stored within an NBT object and only NBT objects are allowed to be stored within other NBT objects
from amulet-core.
Related Issues (20)
- `bisect_left` not imported for Python version >= 3.10
- Spawn Entities
- [Bug Report] Blocks below 0 coordinates are not copied HOT 24
- Chunk file at [x, z] is in the wrong location; relocating. (Expected [x, z], got [0, 0]) HOT 5
- Pasting rotated Java schematic 180 degrees in .mcstructure causes 1 block of air on X-edge HOT 1
- blocks with number ids for color like glass panes cant be found when using the library for 1.12 worlds HOT 1
- [Feature Request] Better Level Management HOT 5
- [Feature Request] Disable Undo Point Option HOT 11
- [Feature Request] Chunk management improvement
- [Feature Request] Chunk ownership HOT 1
- Level wrapper load_root method
- [Feature Request] get_native_chunk
- [Feature Request] Improved Threading
- [Feature Request] Level API restructure
- [Feature Request] Level locking HOT 2
- [Feature Request] Signal System HOT 11
- Any new updates on the old lighting issue? HOT 2
- [Bug] Unable to read player's rotation in MC Java HOT 2
- Amulet Dont Support 1.20.2+ versions HOT 2
- cannot import name 'LevelDBException' from 'leveldb' (Possibly a packaging issue) HOT 3
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 amulet-core.