cngege / Mod

Minecraft 基岩版 win10 Mod
MIT License
24 stars 4 forks source link

Add Scaffold #2

Closed freezeOP closed 11 months ago

cngege commented 11 months ago

我不知道你所说的功能如何实现 I don't know how to implement the function you mentioned

freezeOP commented 11 months ago

To add Scaffold, add buildBlock to GameMode,

auto pos = player->getPosition(); GameMode::buildBlock(vec3_ti(pos.x, pos.y - 1, pos.z), 0, true);

This won't work with Hive, so I think you should use something like BlockSource to calculate the side of the block and create it.

I don't understand English, so I used translation software.

freezeOP commented 11 months ago

If Scaffold is not possible, please add a command (requires SendChatMessage hook)

freezeOP commented 11 months ago

virtual void startBuildBlock(vec3_ti const&, unsigned char); virtual void buildBlock(vec3_ti const&, unsigned char, bool); This is the old SDK for NukeClient. (1.20.30)

cngege commented 11 months ago

等我将dll兼容最新版之后,再尝试研究这个,之后考虑是否有添加的必要 After I make the dll compatible with the latest version, I will try to study this and then consider whether it is necessary to add it.

freezeOP commented 11 months ago

okay, good luck