Comments (12)
mainだけでなくcoreやwieldの方もメタデータを保持するべきなので、以下のようにまとめてもいいかもしれません。
for list_name, list in pairs(inventory:get_lists()) do
data["inventory"][list_name] = {}
for i, item in ipairs(list) do
data["inventory"][list_name][i] = item:to_string()
end
end
from maidroid.
明けましておめでとうございます。
本年もよろしくお願いいたします。
from maidroid.
ほほ~, ItemStack ってこんなに賢く使えるのか... 😓
from maidroid.
ついでに、復帰部分もこうでいいと思います。
for list_name, list in pairs(data["inventory"]) do
inventory:set_list(list_name, list)
end
from maidroid.
wield_item
と core
は一つしかないということで, テーブルを避けてたんですが,
確かにその方がまとまっていて良いですね 😄
from maidroid.
あ, あと明けましておめでとうございます.
from maidroid.
ついでに、復帰部分もこうでいいと思います。
これ, 動くんですね...
一つずつ辿って ItemStack 化しないとダメなのかと思っていました...
勉強になります.
from maidroid.
core_name と list とで, 二重にコアの情報を管理している意味が全然分からない.
どういう考えでこういう実装にしたのか...思い出せない...
直すか...
こういうの直すのが一番つらい.
from maidroid.
maidroid:dummy_itemのコードを見ていて思ったのですが、wielditemってtextureに{""}
を指定すれば透明になってくれた気がします。(間違っていたらすみません…)
from maidroid.
わお!
そうだったんですね...
最初 "air" を指定していてダメだったんで, ダメなのかぁと思ってました...
from maidroid.
0.4.13の頃は(おそらく)そうでした。
今通用するかは分からないので、お手数をおかけしますが、確認していただければと思います…。
from maidroid.
0.4.15 で試してみたのですが, textures={""}
では変な物体が表示されてしまいました...
textures=""
, textures=nil
では unknown な感じに表示されました.
とりあえず今のままにしておきます... 😢
from maidroid.
Related Issues (20)
- Change the directory structure.
- Maidroid の Inventory への制御が緩すぎる HOT 4
- Farming core bug for minetest v0.4.15.
- Improve maidroid's dummy item system. HOT 15
- Improve core entity and egg entity. HOT 1
- More customization HOT 3
- self.product_nameの必要性 HOT 1
- Basic Core などにワープ機能を付ける.
- Maidroidのプレイヤー追従アルゴリズムの改良
- Nametagによる名前の変更 HOT 2
- maidroid.maidroid.* という意味のないテーブルの関数 HOT 3
- Mod 名を変えたい(切実) HOT 10
- Rename "maidroid" to "maidbots". HOT 4
- 複数のコアを使用することによるカスタマイズ HOT 1
- 燃料・複数コアシステム(Multiple-Core System) HOT 1
- Maidroid model mapping is hard to use HOT 7
- Properly tag releases HOT 1
- Crash using the egg writer HOT 2
- No book with the title "main" found HOT 2
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 maidroid.